Passed
Push — master ( 6080f3...d98100 )
by Sebastian
03:12
created
src/Microtime.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -119,8 +119,7 @@  discard block
 block discarded – undo
119 119
         if($datetime instanceof Microtime_ParseResult)
120 120
         {
121 121
             $parsed = $datetime;
122
-        }
123
-        else
122
+        } else
124 123
         {
125 124
             $parsed = $this->parseDate($datetime, $timeZone);
126 125
         }
@@ -128,8 +127,7 @@  discard block
 block discarded – undo
128 127
         try
129 128
         {
130 129
             parent::__construct($parsed->getDateTime(), $parsed->getTimeZone());
131
-        }
132
-        catch (Exception $e)
130
+        } catch (Exception $e)
133 131
         {
134 132
             throw new Microtime_Exception(
135 133
                 'Failed to create date from string.',
Please login to merge, or discard this patch.
src/ConvertHelper/ThrowableInfo.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,8 +83,7 @@  discard block
 block discarded – undo
83 83
         if(is_array($subject))
84 84
         {
85 85
             $this->parseSerialized($subject);
86
-        }
87
-        else
86
+        } else
88 87
         {
89 88
             $this->parseException($subject);
90 89
         }
@@ -432,8 +431,7 @@  discard block
 block discarded – undo
432 431
         if (is_integer($code))
433 432
         {
434 433
             $this->code = $code;
435
-        }
436
-        else
434
+        } else
437 435
         {
438 436
             $this->message = 'Original error code: [' . $code . ']. ' . $this->message;
439 437
         }
Please login to merge, or discard this patch.
src/XMLHelper/Converter.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -130,8 +130,7 @@
 block discarded – undo
130 130
             unset($this->xml);
131 131
 
132 132
             return $this->json;
133
-        }
134
-        catch (Exception $e)
133
+        } catch (Exception $e)
135 134
         {
136 135
             throw new XMLHelper_Exception(
137 136
                 'Could not convert the XML source to JSON',
Please login to merge, or discard this patch.
src/StringBuilder.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -500,8 +500,7 @@
 block discarded – undo
500 500
         try
501 501
         {
502 502
             return $content();
503
-        }
504
-        catch (Exception $e)
503
+        } catch (Exception $e)
505 504
         {
506 505
             throw new StringBuilder_Exception(
507 506
                 'The callable has thrown an error.',
Please login to merge, or discard this patch.
src/RGBAColor/PresetsManager.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,7 @@
 block discarded – undo
92 92
         if(isset($this->customPresets[$name]))
93 93
         {
94 94
             $preset = $this->customPresets[$name];
95
-        }
96
-        else if(isset(self::$globalPresets[$name]))
95
+        } else if(isset(self::$globalPresets[$name]))
97 96
         {
98 97
             $preset = self::$globalPresets[$name];
99 98
         }
Please login to merge, or discard this patch.
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/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.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.