Passed
Push — 2.x ( c080f0...5968ae )
by Terry
02:07
created
src/Firewall/Driver/FileDriver.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
                     $it = new RecursiveDirectoryIterator($dir, RecursiveDirectoryIterator::SKIP_DOTS);
113 113
                     $files = new RecursiveIteratorIterator($it, RecursiveIteratorIterator::CHILD_FIRST);
114 114
     
115
-                    foreach($files as $file) {
115
+                    foreach ($files as $file) {
116 116
                         if ($file->isFile()) {
117 117
     
118 118
                             $content = json_decode(file_get_contents($file->getPath() . '/' . $file->getFilename()), true);
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
                 $it = new RecursiveDirectoryIterator($dir, RecursiveDirectoryIterator::SKIP_DOTS);
251 251
                 $files = new RecursiveIteratorIterator($it, RecursiveIteratorIterator::CHILD_FIRST);
252 252
     
253
-                foreach($files as $file) {
253
+                foreach ($files as $file) {
254 254
                     if ($file->isDir()) {
255 255
                         // @codeCoverageIgnoreStart
256 256
                         rmdir($file->getRealPath());
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
         // Check if are Shieldon directories removed or not.
277 277
         $result = (
278 278
             !is_dir($this->getDirectory('filter_log')) && 
279
-            !is_dir($this->getDirectory('rule'))       && 
279
+            !is_dir($this->getDirectory('rule')) && 
280 280
             !is_dir($this->getDirectory('session'))
281 281
         );
282 282
 
@@ -367,8 +367,8 @@  discard block
 block discarded – undo
367 367
         $path = [];
368 368
 
369 369
         $path['filter_log'] = $this->directory . '/' . $this->tableFilterLogs . '/' . $ip . '.' . $this->extension;
370
-        $path['session'] = $this->directory . '/' . $this->tableSessions   . '/' . $ip . '.' . $this->extension;
371
-        $path['rule'] = $this->directory . '/' . $this->tableRuleList   . '/' . $ip . '.' . $this->extension;
370
+        $path['session'] = $this->directory . '/' . $this->tableSessions . '/' . $ip . '.' . $this->extension;
371
+        $path['rule'] = $this->directory . '/' . $this->tableRuleList . '/' . $ip . '.' . $this->extension;
372 372
 
373 373
         return $path[$type] ?? '';
374 374
     }
Please login to merge, or discard this patch.