Passed
Branch master (576d7a)
by Paweł
01:36
created
src/Helpers/Url.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         $encodedUrl = preg_replace_callback(
24 24
             '%[^:/@?&=#]+%usD',
25
-            function ($matches) {
25
+            function($matches) {
26 26
                 return urlencode($matches[0]);
27 27
             },
28 28
             $url
@@ -60,6 +60,6 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $domain = idn_to_ascii($domain, IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46);
62 62
 
63
-        return (bool)filter_var($domain, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME);
63
+        return (bool) filter_var($domain, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME);
64 64
     }
65 65
 }
Please login to merge, or discard this patch.
src/Items/Url.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
             $this->lastMod = $lastMod;
157 157
         }
158 158
 
159
-        if ($this->lastMod && (int)$this->lastMod->format("Y") < 0) {
159
+        if ($this->lastMod && (int) $this->lastMod->format("Y") < 0) {
160 160
             $this->lastMod = null;
161 161
         }
162 162
 
Please login to merge, or discard this patch.
src/Items/Video.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -839,7 +839,7 @@
 block discarded – undo
839 839
     {
840 840
         $accepted = ['allow', 'deny'];
841 841
 
842
-        return (bool)in_array($value, $accepted);
842
+        return (bool) in_array($value, $accepted);
843 843
     }
844 844
 
845 845
     /**
Please login to merge, or discard this patch.
src/Drivers/DataCollectors/Memory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
      */
142 142
     public function isLast(string $group): bool
143 143
     {
144
-        return (bool)!isset($this->items[$group][$this->getGroupElement($group) + 1]);
144
+        return (bool) !isset($this->items[$group][$this->getGroupElement($group) + 1]);
145 145
     }
146 146
 
147 147
     /**
Please login to merge, or discard this patch.
src/Items/News.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
             $this->publicationDate = $publicationDate;
115 115
         }
116 116
 
117
-        if (($this->publicationDate && (int)$this->publicationDate->format("Y") < 0) || empty($this->publicationDate)) {
117
+        if (($this->publicationDate && (int) $this->publicationDate->format("Y") < 0) || empty($this->publicationDate)) {
118 118
             throw new InvalidArgumentException('Invalid publication date parameter.');
119 119
         }
120 120
 
Please login to merge, or discard this patch.
src/Drivers/XML/XMLWriter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     private function addElement(string $element, $value, ?string $namespace = null): void
215 215
     {
216 216
         if (!is_array($value)) {
217
-            $this->getXMLWriter()->writeElement(($namespace ? $namespace . ':' : '') . $element, (string)$value);
217
+            $this->getXMLWriter()->writeElement(($namespace ? $namespace . ':' : '') . $element, (string) $value);
218 218
         } else {
219 219
             if (isset($value['_namespace'])) {
220 220
                 $this->addElementNS($value['_element'], $value[$value['_element']], $namespace);
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
                             $this->addElement($el, $val);
265 265
                         }
266 266
                     } else {
267
-                        $this->getXMLWriter()->text((string)$value['_value']);
267
+                        $this->getXMLWriter()->text((string) $value['_value']);
268 268
                     }
269 269
                 }
270 270
             } else {
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
                     if (is_array($val)) {
273 273
                         $this->addElement($el, $val, $namespace);
274 274
                     } else {
275
-                        $this->getXMLWriter()->writeElement(($namespace ? $namespace . ':' : '') . $el, (string)$val);
275
+                        $this->getXMLWriter()->writeElement(($namespace ? $namespace . ':' : '') . $el, (string) $val);
276 276
                     }
277 277
                 }
278 278
             }
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
         }
353 353
 
354 354
         if (!is_array($value)) {
355
-            $this->getXMLWriter()->writeElement($begin . $element, (string)$value);
355
+            $this->getXMLWriter()->writeElement($begin . $element, (string) $value);
356 356
         } else {
357 357
             if (isset($value['_namespace'])) {
358 358
                 $this->addElementNS($value);
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
                                     $this->addElement($el, $val);
372 372
                                 }
373 373
                             } else {
374
-                                $this->getXMLWriter()->text((string)$value['_value']);
374
+                                $this->getXMLWriter()->text((string) $value['_value']);
375 375
                             }
376 376
                         }
377 377
                     } else {
Please login to merge, or discard this patch.