Completed
Push — master ( 26bda2...b142f3 )
by Jan-Petter
02:30
created
src/XRobotsTagParser/directive.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -9,6 +9,10 @@
 block discarded – undo
9 9
 {
10 10
     private $object;
11 11
 
12
+    /**
13
+     * @param string $directive
14
+     * @param string $value
15
+     */
12 16
     public function __construct($directive, $value)
13 17
     {
14 18
         $class = __NAMESPACE__ . "\\directives\\$directive";
Please login to merge, or discard this patch.
src/XRobotsTagParser/directives/unavailable_after.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,9 @@
 block discarded – undo
36 36
     {
37 37
         foreach (array_unique($this->supportedDateFormats) as $format) {
38 38
             $dateTime = date_create_from_format($format, $this->value);
39
-            if ($dateTime === false) continue;
39
+            if ($dateTime === false) {
40
+                continue;
41
+            }
40 42
             $result[self::DIRECTIVE] = $dateTime->format(DATE_RFC850);
41 43
             if (time() >= $dateTime->getTimestamp()) {
42 44
                 $noindex = new noindex();
Please login to merge, or discard this patch.