@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * URL parser |
|
| 4 | - * |
|
| 5 | - * @author Jan-Petter Gundersen ([email protected]) |
|
| 6 | - */ |
|
| 3 | + * URL parser |
|
| 4 | + * |
|
| 5 | + * @author Jan-Petter Gundersen ([email protected]) |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | namespace vipnytt\XRobotsTagParser; |
| 9 | 9 | |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * User-Agent parser |
|
| 4 | - * |
|
| 5 | - * @author Jan-Petter Gundersen ([email protected]) |
|
| 6 | - */ |
|
| 3 | + * User-Agent parser |
|
| 4 | + * |
|
| 5 | + * @author Jan-Petter Gundersen ([email protected]) |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | namespace vipnytt\XRobotsTagParser; |
| 9 | 9 | |
@@ -64,7 +64,9 @@ |
||
| 64 | 64 | while (mb_strlen($string) > 0) { |
| 65 | 65 | foreach ($this->supportedDateFormats as $format) { |
| 66 | 66 | $dateTime = date_create_from_format($format, $string); |
| 67 | - if ($dateTime === false) continue; |
|
| 67 | + if ($dateTime === false) { |
|
| 68 | + continue; |
|
| 69 | + } |
|
| 68 | 70 | $result[self::DIRECTIVE] = $dateTime->format(DATE_RFC850); |
| 69 | 71 | return $result; |
| 70 | 72 | } |
@@ -1,17 +1,17 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * X-Robots-Tag HTTP header parser class |
|
| 4 | - * |
|
| 5 | - * @author VIP nytt ([email protected]) |
|
| 6 | - * @author Jan-Petter Gundersen ([email protected]) |
|
| 7 | - * |
|
| 8 | - * Project: |
|
| 9 | - * @link https://github.com/VIPnytt/X-Robots-Tag-parser |
|
| 10 | - * @license https://opensource.org/licenses/MIT MIT license |
|
| 11 | - * |
|
| 12 | - * Specification: |
|
| 13 | - * @link https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#using-the-x-robots-tag-http-header |
|
| 14 | - */ |
|
| 3 | + * X-Robots-Tag HTTP header parser class |
|
| 4 | + * |
|
| 5 | + * @author VIP nytt ([email protected]) |
|
| 6 | + * @author Jan-Petter Gundersen ([email protected]) |
|
| 7 | + * |
|
| 8 | + * Project: |
|
| 9 | + * @link https://github.com/VIPnytt/X-Robots-Tag-parser |
|
| 10 | + * @license https://opensource.org/licenses/MIT MIT license |
|
| 11 | + * |
|
| 12 | + * Specification: |
|
| 13 | + * @link https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#using-the-x-robots-tag-http-header |
|
| 14 | + */ |
|
| 15 | 15 | |
| 16 | 16 | namespace vipnytt; |
| 17 | 17 | |