Passed
Push — master ( e76473...8d6fb4 )
by Sebastian
09:39
created
src/FileHelper/FolderFinder.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@
 block discarded – undo
31 31
         if($path instanceof FolderInfo)
32 32
         {
33 33
             $this->folder = $path;
34
-        }
35
-        else
34
+        } else
36 35
         {
37 36
             $this->folder = FileHelper::getFolderInfo(FileHelper::getPathInfo($path)->getPath());
38 37
         }
Please login to merge, or discard this patch.
src/FileHelper/FileFinder.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -388,8 +388,7 @@
 block discarded – undo
388 388
             if(!in_array($extension, $include, true)) {
389 389
                 return false;
390 390
             }
391
-        }
392
-        else if(!empty($exclude))
391
+        } else if(!empty($exclude))
393 392
         {
394 393
             if(in_array($extension, $exclude, true)) {
395 394
                 return false;
Please login to merge, or discard this patch.
src/FileHelper/FileInfo.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -255,8 +255,7 @@
 block discarded – undo
255 255
         if($this->exists())
256 256
         {
257 257
             $this->requireWritable();
258
-        }
259
-        else
258
+        } else
260 259
         {
261 260
             FolderInfo::factory(dirname($this->path))
262 261
                 ->create()
Please login to merge, or discard this patch.
src/FileHelper/JSONFile.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -92,8 +92,7 @@  discard block
 block discarded – undo
92 92
                 512,
93 93
                 JSON_THROW_ON_ERROR
94 94
             );
95
-        }
96
-        catch (JsonException $e)
95
+        } catch (JsonException $e)
97 96
         {
98 97
             throw new FileHelper_Exception(
99 98
                 'Cannot decode json data',
@@ -158,8 +157,7 @@  discard block
 block discarded – undo
158 157
             $this->file->putContents($json);
159 158
 
160 159
             return $this;
161
-        }
162
-        catch (JsonException $e)
160
+        } catch (JsonException $e)
163 161
         {
164 162
             throw new FileHelper_Exception(
165 163
                 'An error occurred while encoding a data set to JSON.',
Please login to merge, or discard this patch.
src/FileHelper.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -516,8 +516,7 @@
 block discarded – undo
516 516
         if(isset($options['relative-path']) && $options['relative-path'] === true) 
517 517
         {
518 518
             $finder->setPathmodeRelative();
519
-        } 
520
-        else if(isset($options['absolute-path']) && $options['absolute-path'] === true)
519
+        } else if(isset($options['absolute-path']) && $options['absolute-path'] === true)
521 520
         {
522 521
             $finder->setPathmodeAbsolute();
523 522
         }
Please login to merge, or discard this patch.