Completed
Pull Request — master (#924)
by Greg
02:09
created
tests/integration/AssetsTest.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -25,29 +25,29 @@
 block discarded – undo
25 25
     public function testCssMinification()
26 26
     {
27 27
         if (version_compare(PHP_VERSION, '7.2.0') >= 0) {
28
-          $this->markTestSkipped('natxet/cssmin uses deprecated "each()" function (PHP 7.2+)');
28
+            $this->markTestSkipped('natxet/cssmin uses deprecated "each()" function (PHP 7.2+)');
29 29
         }
30 30
 
31 31
         $this->fixtures->createAndCdToSandbox();
32 32
 
33
-				$sampleCss = $this->fixtures->dataFile('sample.css');
34
-				$outputCss = 'minifiedSample.css';
33
+                $sampleCss = $this->fixtures->dataFile('sample.css');
34
+                $outputCss = 'minifiedSample.css';
35 35
 
36
-				$initialFileSize = filesize($sampleCss);
36
+                $initialFileSize = filesize($sampleCss);
37 37
 
38
-				$result = $this->taskMinify($sampleCss)
39
-				  ->to('minifiedSample.css')
40
-				  ->run();
38
+                $result = $this->taskMinify($sampleCss)
39
+                    ->to('minifiedSample.css')
40
+                    ->run();
41 41
         $this->assertTrue($result->wasSuccessful(), $result->getMessage());
42 42
 
43
-				$this->assertFileExists($outputCss);
44
-				$minifiedFileSize = filesize($outputCss);
45
-				$outputCssContents = file_get_contents($outputCss);
43
+                $this->assertFileExists($outputCss);
44
+                $minifiedFileSize = filesize($outputCss);
45
+                $outputCssContents = file_get_contents($outputCss);
46 46
 
47
-				$this->assertLessThan($initialFileSize, $minifiedFileSize, 'Minified file is smaller than the source file');
48
-				$this->assertGreaterThan(0, $minifiedFileSize, 'Minified file is not empty');
49
-				$this->assertContains('body', $outputCssContents, 'Minified file has some content from the source file');
50
-				$this->assertNotContains('Sample css file', $outputCssContents, 'Minified file does not contain comment from source file');
47
+                $this->assertLessThan($initialFileSize, $minifiedFileSize, 'Minified file is smaller than the source file');
48
+                $this->assertGreaterThan(0, $minifiedFileSize, 'Minified file is not empty');
49
+                $this->assertContains('body', $outputCssContents, 'Minified file has some content from the source file');
50
+                $this->assertNotContains('Sample css file', $outputCssContents, 'Minified file does not contain comment from source file');
51 51
     }
52 52
 
53 53
 }
Please login to merge, or discard this patch.
tests/integration/CollectionTest.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
             ->rollback(
162 162
                 $this->taskDeleteDir('j')
163 163
             )
164
-            ->rollbackCode(function () {
164
+            ->rollbackCode(function() {
165 165
                 throw new AbortTasksException('Aborting rollback.');
166 166
             })
167 167
             ->taskFilesystemStack()
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
                 ->mkdir('stuff')
221 221
             ->taskForEach($processList)
222 222
                 ->withBuilder(
223
-                    function ($builder, $key, $value) {
223
+                    function($builder, $key, $value) {
224 224
                         return $builder
225 225
                             ->taskFilesystemStack()
226 226
                                 ->touch("stuff/{$value}.txt");
@@ -277,32 +277,32 @@  discard block
 block discarded – undo
277 277
 
278 278
     public function testRollbackInCorrectOrder()
279 279
     {
280
-        $expected_order = [6,5,4,3,2,1];
280
+        $expected_order = [6, 5, 4, 3, 2, 1];
281 281
         $actual_order = [];
282 282
         $collection = $this->collectionBuilder();
283
-        $collection->rollbackCode(function () use (&$actual_order) {
283
+        $collection->rollbackCode(function() use (&$actual_order) {
284 284
             $actual_order[] = 1;
285 285
         });
286
-        $collection->rollbackCode(function () use (&$actual_order) {
286
+        $collection->rollbackCode(function() use (&$actual_order) {
287 287
             $actual_order[] = 2;
288 288
         });
289
-        $collection->rollbackCode(function () use (&$actual_order) {
289
+        $collection->rollbackCode(function() use (&$actual_order) {
290 290
             $actual_order[] = 3;
291 291
         });
292 292
         // Add a nested collection with rollbacks.
293 293
         $nested_collection = $this->collectionBuilder();
294
-        $nested_collection->rollbackCode(function () use (&$actual_order) {
294
+        $nested_collection->rollbackCode(function() use (&$actual_order) {
295 295
             $actual_order[] = 4;
296 296
         });
297
-        $nested_collection->rollbackCode(function () use (&$actual_order) {
297
+        $nested_collection->rollbackCode(function() use (&$actual_order) {
298 298
             $actual_order[] = 5;
299 299
         });
300 300
         $collection->addTask($nested_collection);
301 301
 
302
-        $collection->rollbackCode(function () use (&$actual_order) {
302
+        $collection->rollbackCode(function() use (&$actual_order) {
303 303
             $actual_order[] = 6;
304 304
         });
305
-        $collection->addCode(function () {
305
+        $collection->addCode(function() {
306 306
             return Result::EXITCODE_ERROR;
307 307
         });
308 308
         $result = $collection->run();
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
         $collection = $this->collectionBuilder();
506 506
 
507 507
         $collection->addCode(
508
-            function () {
508
+            function() {
509 509
                 throw new \RuntimeException('Error');
510 510
             }
511 511
         );
Please login to merge, or discard this patch.