@@ -119,8 +119,7 @@ discard block |
||
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 |
||
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.', |
@@ -83,8 +83,7 @@ discard block |
||
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 |
||
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 | } |
@@ -130,8 +130,7 @@ |
||
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', |
@@ -500,8 +500,7 @@ |
||
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.', |
@@ -92,8 +92,7 @@ |
||
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 | } |
@@ -31,8 +31,7 @@ |
||
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 | } |
@@ -255,8 +255,7 @@ |
||
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() |
@@ -516,8 +516,7 @@ |
||
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 | } |
@@ -35,8 +35,7 @@ |
||
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', |