Test Failed
Push — master ( ca159c...8f4401 )
by Sebastian
03:00
created
src/FileHelper/JSONFile.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -101,8 +101,7 @@  discard block
 block discarded – undo
101 101
                 512,
102 102
                 JSON_THROW_ON_ERROR
103 103
             );
104
-        }
105
-        catch (JsonException $e)
104
+        } catch (JsonException $e)
106 105
         {
107 106
             throw new FileHelper_Exception(
108 107
                 'Cannot decode json data',
@@ -162,8 +161,7 @@  discard block
 block discarded – undo
162 161
             $this->putContents($json);
163 162
 
164 163
             return $this;
165
-        }
166
-        catch (JsonException $e)
164
+        } catch (JsonException $e)
167 165
         {
168 166
             throw new FileHelper_Exception(
169 167
                 'An error occurred while encoding a data set to JSON.',
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
@@ -42,8 +42,7 @@  discard block
 block discarded – undo
42 42
         {
43 43
             $info->delete();
44 44
             return true;
45
-        }
46
-        catch (FileHelper_Exception $e)
45
+        } catch (FileHelper_Exception $e)
47 46
         {
48 47
 
49 48
         }
@@ -78,8 +77,7 @@  discard block
 block discarded – undo
78 77
             try
79 78
             {
80 79
                 FileHelper::deleteFile($item);
81
-            }
82
-            catch (FileHelper_Exception $e)
80
+            } catch (FileHelper_Exception $e)
83 81
             {
84 82
                 return false;
85 83
             }
@@ -125,8 +123,7 @@  discard block
 block discarded – undo
125 123
         if ($item->isFolder())
126 124
         {
127 125
             self::copy($item, $target . '/' . $item->getName());
128
-        }
129
-        else if($item->isFile())
126
+        } else if($item->isFile())
130 127
         {
131 128
             $item
132 129
                 ->requireIsFile()
Please login to merge, or discard this patch.