Completed
Push — master ( 2804db...120f67 )
by Julien
05:28 queued 02:34
created
src/Registry/RegistryClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
         $response = \GuzzleHttp\json_decode($res->getBody(), true);
20 20
 
21
-        $tags = \array_map(function (array $item) {
21
+        $tags = \array_map(function(array $item) {
22 22
             return $item['name'];
23 23
         }, $response);
24 24
 
Please login to merge, or discard this patch.
tests/Yaml/DumperTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $this->parser = new Parser();
39 39
         $this->dumper = new Dumper();
40
-        $this->path = __DIR__.'/Fixtures';
40
+        $this->path = __DIR__ . '/Fixtures';
41 41
     }
42 42
 
43 43
     protected function tearDown()
@@ -75,9 +75,9 @@  discard block
 block discarded – undo
75 75
 
76 76
     public function testSpecifications()
77 77
     {
78
-        $files = $this->parser->parse(file_get_contents($this->path.'/index.yml'));
78
+        $files = $this->parser->parse(file_get_contents($this->path . '/index.yml'));
79 79
         foreach ($files as $file) {
80
-            $yamls = file_get_contents($this->path.'/'.$file.'.yml');
80
+            $yamls = file_get_contents($this->path . '/' . $file . '.yml');
81 81
 
82 82
             // split YAMLs documents
83 83
             foreach (preg_split('/^---( %YAML\:1\.0)?/m', $yamls) as $yaml) {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                 } elseif (isset($test['todo']) && $test['todo']) {
92 92
                     // TODO
93 93
                 } else {
94
-                    eval('$expected = '.trim($test['php']).';');
94
+                    eval('$expected = ' . trim($test['php']) . ';');
95 95
                     $this->assertSame($expected, $this->parser->parse($this->dumper->dump($expected, 10)), $test['test']);
96 96
                 }
97 97
             }
@@ -230,8 +230,8 @@  discard block
 block discarded – undo
230 230
 
231 231
     public function testBinaryDataIsDumpedBase64Encoded()
232 232
     {
233
-        $binaryData = file_get_contents(__DIR__.'/Fixtures/arrow.gif');
234
-        $expected = '{ data: !!binary '.base64_encode($binaryData).' }';
233
+        $binaryData = file_get_contents(__DIR__ . '/Fixtures/arrow.gif');
234
+        $expected = '{ data: !!binary ' . base64_encode($binaryData) . ' }';
235 235
 
236 236
         $this->assertSame($expected, $this->dumper->dump(array('data' => $binaryData)));
237 237
     }
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
             ),
382 382
         );
383 383
 
384
-        $this->assertSame(file_get_contents(__DIR__.'/Fixtures/multiple_lines_as_literal_block.yml'), $this->dumper->dump($data, 2, 0, Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK));
384
+        $this->assertSame(file_get_contents(__DIR__ . '/Fixtures/multiple_lines_as_literal_block.yml'), $this->dumper->dump($data, 2, 0, Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK));
385 385
     }
386 386
 
387 387
     public function testDumpMultiLineStringAsScalarBlockWhenFirstLineHasLeadingSpace()
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
             ),
393 393
         );
394 394
 
395
-        $this->assertSame(file_get_contents(__DIR__.'/Fixtures/multiple_lines_as_literal_block_leading_space_in_first_line.yml'), $this->dumper->dump($data, 2, 0, Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK));
395
+        $this->assertSame(file_get_contents(__DIR__ . '/Fixtures/multiple_lines_as_literal_block_leading_space_in_first_line.yml'), $this->dumper->dump($data, 2, 0, Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK));
396 396
     }
397 397
 
398 398
     public function testCarriageReturnIsMaintainedWhenDumpingAsMultiLineLiteralBlock()
Please login to merge, or discard this patch.
src/Service/Environment/EnvVariable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             'value' => $this->value,
62 62
             'type' => $this->type,
63 63
             'comment' => $this->comment
64
-        ], function ($v) {
64
+        ], function($v) {
65 65
             return null !== $v;
66 66
         });
67 67
     }
Please login to merge, or discard this patch.
src/Service/Environment/SharedEnvVariable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             'type' => $this->getType(),
38 38
             'comment' => $this->getComment(),
39 39
             'containerId' => $this->containerId
40
-        ], function ($v) {
40
+        ], function($v) {
41 41
             return null !== $v;
42 42
         });
43 43
     }
Please login to merge, or discard this patch.
src/Service/Volume/TmpfsVolume.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             'type' => $this->getType(),
28 28
             'source' => $this->source,
29 29
             'comment' => $this->comment,
30
-        ], function ($v) {
30
+        ], function($v) {
31 31
             return null !== $v;
32 32
         });
33 33
     }
Please login to merge, or discard this patch.
src/Service/Volume/NamedVolume.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
             'readOnly' => $this->readOnly,
58 58
             'comment' => $this->comment,
59 59
             'requestStorage' => $this->requestStorage,
60
-        ], function ($v) {
60
+        ], function($v) {
61 61
             return null !== $v;
62 62
         });
63 63
     }
Please login to merge, or discard this patch.
src/Service/Volume/BindVolume.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
             'target' => $this->target,
50 50
             'readOnly' => $this->readOnly,
51 51
             'comment' => $this->comment
52
-        ], function ($v) {
52
+        ], function($v) {
53 53
             return null !== $v;
54 54
         });
55 55
     }
Please login to merge, or discard this patch.
src/Docker/ImageService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             $config = $this->docker->imageInspect($imageName)->getConfig();
68 68
         }
69 69
         if ($config === null) {
70
-            throw new AenthillException('Cannot inspect container '.$imageName.'. Missing config key.');
70
+            throw new AenthillException('Cannot inspect container ' . $imageName . '. Missing config key.');
71 71
         }
72 72
         return $config;
73 73
     }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             'fromImage' => $imageName
89 89
         ]);
90 90
 
91
-        $result->onFrame(function (CreateImageInfo $frame) {
91
+        $result->onFrame(function(CreateImageInfo $frame) {
92 92
             $this->logger->info($frame->getStatus());
93 93
         });
94 94
         $result->wait();
Please login to merge, or discard this patch.
tests/Docker/ImageServiceTest.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
         try {
17 17
             $imageService->rmi('busybox:1.29.2');
18
-        } catch(ImageDeleteNotFoundException $e) {
18
+        } catch (ImageDeleteNotFoundException $e) {
19 19
             // Try to delete. If this fails, it's ok.
20 20
         }
21 21
 
Please login to merge, or discard this patch.