Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
JanPetterMG committed May 6, 2016
1 parent 17bce54 commit b3545a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/XRobotsTagParser/Directives/Generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@
final class Generic implements DirectiveInterface
{
/**
* Current directive
* Directive
* @param string
*/
protected $directive;

/**
* Rule string
* @param string
*/
protected $rule;

/**
* Constructor
*
Expand All @@ -23,6 +29,7 @@ final class Generic implements DirectiveInterface
public function __construct($directive, $rule)
{
$this->directive = mb_strtolower($directive);
$this->rule = $rule;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/XRobotsTagParser/RobotsTagInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ interface RobotsTagInterface
const DIRECTIVE_UNAVAILABLE_AFTER = 'unavailable_after';

/**
* Directive meanings
* Directives and meanings
* @link https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives
*/
const DIRECTIVES = [
Expand Down

0 comments on commit b3545a6

Please sign in to comment.