Passed
Push — master ( 570b25...29883e )
by Bernardo
04:53
created
src/Command/CompileCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $workingDirectory = dirname($fileName);
155 155
 
156 156
         if ('Build' != basename($workingDirectory)) {
157
-            $pathBuild = $workingDirectory . DIRECTORY_SEPARATOR . 'Build';
157
+            $pathBuild = $workingDirectory.DIRECTORY_SEPARATOR.'Build';
158 158
             $fileSystem = new Filesystem();
159 159
             try {
160 160
                 $fileSystem->mkdir($pathBuild);
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         $workingDirectory = dirname($fileName);
197 197
 
198 198
         if ('Build' != basename($workingDirectory)) {
199
-            $pathBuild = $workingDirectory . DIRECTORY_SEPARATOR . 'Build';
199
+            $pathBuild = $workingDirectory.DIRECTORY_SEPARATOR.'Build';
200 200
             $fileSystem = new Filesystem();
201 201
             try {
202 202
                 $fileSystem->mkdir($pathBuild);
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
         $files = $finder
257 257
             ->files()
258 258
             ->ignoreDotFiles(true)
259
-            ->filter(function (SplFileInfo $file) use ($filter) {
259
+            ->filter(function(SplFileInfo $file) use ($filter) {
260 260
                 if ($file->getFilename() != $filter) {
261 261
                     return false;
262 262
                 }
Please login to merge, or discard this patch.
tests/Integration/CompileCommandTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     protected function tearDown()
21 21
     {
22 22
         $fileSystem = new FileSystem();
23
-        $fileSystem->remove($this->getPathFixtures() . '/Success/Compile/Build');
23
+        $fileSystem->remove($this->getPathFixtures().'/Success/Compile/Build');
24 24
     }
25 25
 
26 26
     /**
@@ -32,17 +32,17 @@  discard block
 block discarded – undo
32 32
         $this->assertEquals(0, $this->commandTester->getStatusCode());
33 33
         $this->assertContains('Compiling "apib" files to mock', $this->commandTester->getDisplay());
34 34
         $this->assertContains('Creating documentation from mock files compiled', $this->commandTester->getDisplay());
35
-        $this->assertFileExists($this->getPathFixtures() . '/Success/Compile/Build/out.apib');
36
-        $this->assertFileExists($this->getPathFixtures() . '/Success/Compile/Build/out.html');
35
+        $this->assertFileExists($this->getPathFixtures().'/Success/Compile/Build/out.apib');
36
+        $this->assertFileExists($this->getPathFixtures().'/Success/Compile/Build/out.html');
37 37
 
38 38
         $this->assertContains(
39 39
             $this->getStringJSONFileIncluded(),
40
-            file_get_contents($this->getPathFixtures() . '/Success/Compile/Build/out.apib')
40
+            file_get_contents($this->getPathFixtures().'/Success/Compile/Build/out.apib')
41 41
         );
42 42
 
43 43
         $this->assertContains(
44 44
             $this->getStringXMLFileIncluded(),
45
-            file_get_contents($this->getPathFixtures() . '/Success/Compile/Build/out.apib')
45
+            file_get_contents($this->getPathFixtures().'/Success/Compile/Build/out.apib')
46 46
         );
47 47
     }
48 48
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $this->commandTester->execute($this->getErrorArgumentsCommand());
55 55
         $this->assertEquals(1, $this->commandTester->getStatusCode());
56 56
         $this->assertContains('There are not index files to generate mock or doc files', $this->commandTester->getDisplay());
57
-        $this->assertDirectoryNotExists($this->getPathErrorFixtures() . 'Build');
57
+        $this->assertDirectoryNotExists($this->getPathErrorFixtures().'Build');
58 58
     }
59 59
 
60 60
     /**
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      */
83 83
     protected function getPathFixtures()
84 84
     {
85
-        return dirname(__DIR__) . '/Fixtures';
85
+        return dirname(__DIR__).'/Fixtures';
86 86
     }
87 87
 
88 88
     /**
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     protected function getPathSuccessFixtures()
92 92
     {
93
-        return $this->getPathFixtures() . '/Success';
93
+        return $this->getPathFixtures().'/Success';
94 94
     }
95 95
 
96 96
     /**
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     protected function getPathErrorFixtures()
100 100
     {
101
-        return $this->getPathFixtures() . '/Error';
101
+        return $this->getPathFixtures().'/Error';
102 102
     }
103 103
 
104 104
     /**
Please login to merge, or discard this patch.