Passed
Branch master (07c3bf)
by Paweł
01:33
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.