@@ -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', |
@@ -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', |
@@ -372,8 +372,7 @@ |
||
| 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 | } |
@@ -475,8 +475,7 @@ |
||
| 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 | } |