@@ -73,7 +73,10 @@ |
||
73 | 73 | '.min.'.$this->file->getExtension() |
74 | 74 | ); |
75 | 75 | |
76 | - if (!file_exists($min_path)) return false; |
|
76 | + if (!file_exists($min_path)) |
|
77 | + { |
|
78 | + return false; |
|
79 | + } |
|
77 | 80 | |
78 | 81 | return file_get_contents($min_path); |
79 | 82 | } |
@@ -282,7 +282,10 @@ discard block |
||
282 | 282 | */ |
283 | 283 | protected function getSourceType(SplFileInfo $file): string |
284 | 284 | { |
285 | - if ($file->isDir()) return 'folder'; |
|
285 | + if ($file->isDir()) |
|
286 | + { |
|
287 | + return 'folder'; |
|
288 | + } |
|
286 | 289 | return $file->getExtension(); |
287 | 290 | } |
288 | 291 | |
@@ -412,11 +415,20 @@ discard block |
||
412 | 415 | } |
413 | 416 | else |
414 | 417 | { |
415 | - if (!is_array($input)) $input = [$input]; |
|
418 | + if (!is_array($input)) |
|
419 | + { |
|
420 | + $input = [$input]; |
|
421 | + } |
|
416 | 422 | |
417 | - if (count($input) === 0) throw new \UnexpectedValueException; |
|
423 | + if (count($input) === 0) |
|
424 | + { |
|
425 | + throw new \UnexpectedValueException; |
|
426 | + } |
|
418 | 427 | |
419 | - if (!is_string($input[0])) throw new \UnexpectedValueException; |
|
428 | + if (!is_string($input[0])) |
|
429 | + { |
|
430 | + throw new \UnexpectedValueException; |
|
431 | + } |
|
420 | 432 | |
421 | 433 | $output = $input; |
422 | 434 | } |