@@ -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 | } |