Completed
Push — master ( 33ff9f...a074ca )
by Kevin
12:19 queued 09:07
created
tests/Generators/BlobGeneratorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Generators/BlobGenerator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)];
Please login to merge, or discard this patch.