Test Failed
Push — master ( c6159a...ad222e )
by Sebastian
03:11
created
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.
src/Traits/RenderableTrait.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,7 @@
 block discarded – undo
35 35
         try
36 36
         {
37 37
             return $this->render();
38
-        }
39
-        catch (Throwable $e)
38
+        } catch (Throwable $e)
40 39
         {
41 40
             return sprintf(
42 41
                 'Exception while rendering [%s]: %s',
Please login to merge, or discard this patch.
src/Traits/RenderableBufferedTrait.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,7 @@
 block discarded – undo
35 35
         try
36 36
         {
37 37
             return $this->render();
38
-        }
39
-        catch (Throwable $e)
38
+        } catch (Throwable $e)
40 39
         {
41 40
             return sprintf(
42 41
                 'Exception while rendering [%s]: %s',
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
@@ -372,8 +372,7 @@
 block discarded – undo
372 372
             if(!in_array($extension, $include, true)) {
373 373
                 return false;
374 374
             }
375
-        }
376
-        else if(!empty($exclude) && in_array($extension, $exclude, true))
375
+        } else if(!empty($exclude) && in_array($extension, $exclude, true))
377 376
         {
378 377
             return false;
379 378
         }
Please login to merge, or discard this patch.
src/Request.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -475,8 +475,7 @@
 block discarded – undo
475 475
             try
476 476
             {
477 477
                 $data = json_decode($value, $assoc, 512, JSON_THROW_ON_ERROR);
478
-            }
479
-            catch (JsonException $e)
478
+            } catch (JsonException $e)
480 479
             {
481 480
                 return array();
482 481
             }
Please login to merge, or discard this patch.
src/FileHelper/FolderTree.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@  discard block
 block discarded – undo
41 41
         {
42 42
             $info->delete();
43 43
             return true;
44
-        }
45
-        catch (FileHelper_Exception $e)
44
+        } catch (FileHelper_Exception $e)
46 45
         {
47 46
 
48 47
         }
@@ -79,8 +78,7 @@  discard block
 block discarded – undo
79 78
             try
80 79
             {
81 80
                 FileHelper::deleteFile($itemPath);
82
-            }
83
-            catch (FileHelper_Exception $e)
81
+            } catch (FileHelper_Exception $e)
84 82
             {
85 83
                 return false;
86 84
             }
@@ -126,8 +124,7 @@  discard block
 block discarded – undo
126 124
         if ($item->isFolder())
127 125
         {
128 126
             self::copy($item, $target . '/' . $item->getName());
129
-        }
130
-        else if($item->isFile())
127
+        } else if($item->isFile())
131 128
         {
132 129
             $item
133 130
                 ->requireIsFile()
Please login to merge, or discard this patch.