Skip to content

Commit

Permalink
Remove unused import and add missing throws docblock.
Browse files Browse the repository at this point in the history
  • Loading branch information
otsch committed Nov 7, 2021
1 parent 6588a1f commit 090dcb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/RobotsTxt.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Crwlr\RobotsTxt;

use Crwlr\RobotsTxt\Exceptions\InvalidRobotsTxtFileException;
use InvalidArgumentException;

final class RobotsTxt
Expand All @@ -27,6 +28,9 @@ public function __construct(array $userAgentGroups)
$this->userAgentGroups = $userAgentGroups;
}

/**
* @throws InvalidRobotsTxtFileException
*/
public static function parse(string $robotsTxtContent): RobotsTxt
{
return (new Parser())->parse($robotsTxtContent);
Expand Down
1 change: 0 additions & 1 deletion src/RulePattern.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Crwlr\RobotsTxt;

use Crwlr\RobotsTxt\Exceptions\EncodingException;
use Crwlr\Url\Url;
use InvalidArgumentException;

Expand Down

0 comments on commit 090dcb3

Please sign in to comment.