Completed
Push — master ( 2d2a4f...6d125c )
by Greg
01:53
created
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.
tests/phpunit/ClassDiscovery/RelativeNamespaceDiscoveryTest.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
     public function convertPathToNamespaceData()
60 60
     {
61 61
         return [
62
-          ['/A/B/C', 'A\B\C'],
63
-          ['A/B/C', 'A\B\C'],
64
-          ['A/B/C', 'A\B\C'],
65
-          ['A/B/C.php', 'A\B\C'],
62
+            ['/A/B/C', 'A\B\C'],
63
+            ['A/B/C', 'A\B\C'],
64
+            ['A/B/C', 'A\B\C'],
65
+            ['A/B/C.php', 'A\B\C'],
66 66
         ];
67 67
     }
68 68
 
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
     public function convertNamespaceToPathData()
84 84
     {
85 85
         return [
86
-          ['A\B\C', '/A/B/C'],
87
-          ['\A\B\C\\', '/A/B/C'],
88
-          ['A\B\C\\', '/A/B/C'],
86
+            ['A\B\C', '/A/B/C'],
87
+            ['\A\B\C\\', '/A/B/C'],
88
+            ['A\B\C\\', '/A/B/C'],
89 89
         ];
90 90
     }
91 91
 
Please login to merge, or discard this patch.