@@ -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 | } |
@@ -388,8 +388,7 @@ |
||
| 388 | 388 | if(!in_array($extension, $include, true)) { |
| 389 | 389 | return false; |
| 390 | 390 | } |
| 391 | - } |
|
| 392 | - else if(!empty($exclude)) |
|
| 391 | + } else if(!empty($exclude)) |
|
| 393 | 392 | { |
| 394 | 393 | if(in_array($extension, $exclude, true)) { |
| 395 | 394 | return false; |
@@ -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() |
@@ -92,8 +92,7 @@ discard block |
||
| 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 |
||
| 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.', |
@@ -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', |