@@ -15,7 +15,7 @@ |
||
| 15 | 15 | { |
| 16 | 16 | $column = new Column('foo', Type::getType(Type::BINARY)); |
| 17 | 17 | $column->setLength(255); |
| 18 | - $blobGenerator = new BlobGenerator(__DIR__.'/../fixtures/blob/*.png', $column); |
|
| 18 | + $blobGenerator = new BlobGenerator(__DIR__ . '/../fixtures/blob/*.png', $column); |
|
| 19 | 19 | $this->expectException(FileTooLargeException::class); |
| 20 | 20 | $blobGenerator->__invoke(); |
| 21 | 21 | } |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | public function __invoke() |
| 31 | 31 | { |
| 32 | 32 | $files = glob($this->globExpression, GLOB_MARK); |
| 33 | - $files = array_filter($files, function ($fileName){ |
|
| 33 | + $files = array_filter($files, function($fileName) { |
|
| 34 | 34 | return strrpos($fileName, DIRECTORY_SEPARATOR) !== \strlen($fileName) - 1; |
| 35 | 35 | }); |
| 36 | 36 | foreach ($files as $file) { |
@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | throw FileTooLargeException::create($file, $this->column); |
| 40 | 40 | } |
| 41 | 41 | } |
| 42 | - if (\count($files) === 0){ |
|
| 43 | - throw new NoTestFilesFoundException("No files found for glob expression '".$this->globExpression."'"); |
|
| 42 | + if (\count($files) === 0) { |
|
| 43 | + throw new NoTestFilesFoundException("No files found for glob expression '" . $this->globExpression . "'"); |
|
| 44 | 44 | } |
| 45 | 45 | $files = array_values($files); |
| 46 | 46 | $chosenFile = $files[random_int(0, \count($files) - 1)]; |