Passed
Push — master ( 9659dd...570b25 )
by Bernardo
04:11
created
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
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $this->assertEquals(1, $this->commandTester->getStatusCode());
56 56
         $this->assertContains('Compiling "apib" files to mock', $this->commandTester->getDisplay());
57 57
         $this->assertContains('Creating documentation from mock files compiled', $this->commandTester->getDisplay());
58
-        $this->assertDirectoryNotExists($this->getPathErrorFixtures() . 'Build');
58
+        $this->assertDirectoryNotExists($this->getPathErrorFixtures().'Build');
59 59
     }
60 60
 
61 61
     /**
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     protected function getPathFixtures()
85 85
     {
86
-        return dirname(__DIR__) . '/Fixtures';
86
+        return dirname(__DIR__).'/Fixtures';
87 87
     }
88 88
 
89 89
     /**
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     protected function getPathSuccessFixtures()
93 93
     {
94
-        return $this->getPathFixtures() . '/Success';
94
+        return $this->getPathFixtures().'/Success';
95 95
     }
96 96
 
97 97
     /**
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     protected function getPathErrorFixtures()
101 101
     {
102
-        return $this->getPathFixtures() . '/Error';
102
+        return $this->getPathFixtures().'/Error';
103 103
     }
104 104
 
105 105
     /**
Please login to merge, or discard this patch.
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.