Completed
Push — master ( 2fa00d...5efdd3 )
by Greg
03:04
created
tests/unit/Task/BowerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     // tests
22 22
     public function testBowerInstall()
23 23
     {
24
-        $bower = test::double('Robo\Task\Bower\Install', ['executeCommand' => null, 'logger' => new \Psr\Log\NullLogger(),]);
24
+        $bower = test::double('Robo\Task\Bower\Install', ['executeCommand' => null, 'logger' => new \Psr\Log\NullLogger(), ]);
25 25
         (new \Robo\Task\Bower\Install('bower'))->run();
26 26
         $bower->verifyInvoked('executeCommand', ['bower install']);
27 27
     }
Please login to merge, or discard this patch.
tests/_data/parascript.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 $message = $argv[1];
4 4
 $iterations = $argv[2];
5
-for ($i=0; $i < $iterations; ++$i) {
5
+for ($i = 0; $i < $iterations; ++$i) {
6 6
     print "$message\n";
7 7
     sleep(1);
8 8
 }
Please login to merge, or discard this patch.
tests/_bootstrap.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 $kernel->init([
6 6
     'debug' => true,
7 7
     'includePaths' => [
8
-        __DIR__.'/../src',
9
-        __DIR__.'/../vendor/symfony/process',
10
-        __DIR__.'/../vendor/symfony/console',
8
+        __DIR__ . '/../src',
9
+        __DIR__ . '/../vendor/symfony/process',
10
+        __DIR__ . '/../vendor/symfony/console',
11 11
     ]
12 12
 ]);
Please login to merge, or discard this patch.
tests/cli/GenerateMarkdownDocCest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function _before(CliGuy $I)
13 13
     {
14
-        $I->amInPath(codecept_data_dir().'sandbox');
14
+        $I->amInPath(codecept_data_dir() . 'sandbox');
15 15
     }
16 16
 
17 17
     public function toGenerateDocumentation(CliGuy $I)
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
 
24 24
         $collection = $I->collectionBuilder();
25 25
         $taskGenerator = $collection->taskGenDoc("TestedRoboTask.md");
26
-        $taskGenerator->filterClasses(function (\ReflectionClass $r) {
26
+        $taskGenerator->filterClasses(function(\ReflectionClass $r) {
27 27
             return !($r->isAbstract() || $r->isTrait()) && $r->implementsInterface('Robo\Contract\TaskInterface');
28 28
         })->prepend("# TestedRoboTask Tasks");
29 29
         $taskGenerator->docClass('TestedRoboTask');
30 30
 
31 31
         $taskGenerator->filterMethods(
32
-            function (\ReflectionMethod $m) {
32
+            function(\ReflectionMethod $m) {
33 33
                 if ($m->isConstructor() || $m->isDestructor() || $m->isStatic()) {
34 34
                     return false;
35 35
                 }
@@ -55,21 +55,21 @@  discard block
 block discarded – undo
55 55
                 return !in_array($m->name, $undocumentedMethods) && $m->isPublic(); // methods are not documented
56 56
             }
57 57
         )->processClassSignature(
58
-            function ($c) {
58
+            function($c) {
59 59
                 return "## " . preg_replace('~Task$~', '', $c->getShortName()) . "\n";
60 60
             }
61 61
         )->processClassDocBlock(
62
-            function (\ReflectionClass $c, $doc) {
62
+            function(\ReflectionClass $c, $doc) {
63 63
                 $doc = preg_replace('~@method .*?(.*?)\)~', '* `$1)` ', $doc);
64
-                $doc = str_replace('\\'.$c->name, '', $doc);
64
+                $doc = str_replace('\\' . $c->name, '', $doc);
65 65
                 return $doc;
66 66
             }
67 67
         )->processMethodSignature(
68
-            function (\ReflectionMethod $m, $text) {
68
+            function(\ReflectionMethod $m, $text) {
69 69
                 return str_replace('#### *public* ', '* `', $text) . '`';
70 70
             }
71 71
         )->processMethodDocBlock(
72
-            function (\ReflectionMethod $m, $text) {
72
+            function(\ReflectionMethod $m, $text) {
73 73
 
74 74
                 return $text ? ' ' . trim(strtok($text, "\n"), "\n") : '';
75 75
             }
Please login to merge, or discard this patch.
tests/cli/PackExtractCept.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 $I = new CliGuy($scenario);
4 4
 
5 5
 $I->wantTo('archive directory and then extract it again with Archive and Extract tasks');
6
-$I->amInPath(codecept_data_dir().'sandbox');
6
+$I->amInPath(codecept_data_dir() . 'sandbox');
7 7
 $I->seeDirFound('some/deeply/nested');
8 8
 $I->seeFileFound('structu.re', 'some/deeply/nested');
9 9
 $I->seeFileFound('existing_file', 'some/deeply');
Please login to merge, or discard this patch.
tests/cli/SimulatedCest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function _before(CliGuy $I)
13 13
     {
14
-        $I->amInPath(codecept_data_dir().'sandbox');
14
+        $I->amInPath(codecept_data_dir() . 'sandbox');
15 15
     }
16 16
 
17 17
     public function toSimulateDirCreation(CliGuy $I)
Please login to merge, or discard this patch.
tests/cli/CollectionCest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function _before(CliGuy $I)
13 13
     {
14
-        $I->amInPath(codecept_data_dir().'sandbox');
14
+        $I->amInPath(codecept_data_dir() . 'sandbox');
15 15
     }
16 16
 
17 17
     public function toRunMultipleTasksViaACollectionBuilder(CliGuy $I)
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
                 ->mkdir('stuff')
151 151
             ->taskForEach($processList)
152 152
                 ->withBuilder(
153
-                    function ($builder, $key, $value) {
153
+                    function($builder, $key, $value) {
154 154
                         return $builder
155 155
                             ->taskFilesystemStack()
156 156
                                 ->touch("stuff/{$value}.txt");
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
         $collection = $I->getContainer()->get('collection');
399 399
 
400 400
         $collection->addCode(
401
-            function () {
401
+            function() {
402 402
                 throw new \RuntimeException('Error');
403 403
             }
404 404
         );
Please login to merge, or discard this patch.
tests/cli/WriteFileCest.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@  discard block
 block discarded – undo
11 11
     {
12 12
         $I->wantTo('write lines with WriteToFile task');
13 13
         $I->taskWriteToFile('blogpost.md')
14
-           ->line('****')
15
-           ->line('hello world')
16
-           ->line('****')
17
-           ->run();
14
+            ->line('****')
15
+            ->line('hello world')
16
+            ->line('****')
17
+            ->run();
18 18
         $I->seeFileFound('blogpost.md');
19 19
         $I->seeFileContentsEqual(<<<HERE
20 20
 ****
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
     public function appendToFile(CliGuy $I)
29 29
     {
30 30
         $I->taskWriteToFile('a.txt')
31
-           ->append()
32
-           ->line('hello world')
33
-           ->run();
31
+            ->append()
32
+            ->line('hello world')
33
+            ->run();
34 34
         $I->seeFileFound('a.txt');
35 35
         $I->seeFileContentsEqual(<<<HERE
36 36
 Ahello world
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     public function testWouldChange(CliGuy $I)
43 43
     {
44 44
         $writeTask = $I->taskWriteToFile('a.txt')
45
-           ->append();
45
+            ->append();
46 46
         $I->assertEquals(false, $writeTask->wouldChange(), "No changes to test file.");
47 47
         $writeTask->line('hello world');
48 48
         $I->assertEquals(true, $writeTask->wouldChange(), "Test file would change.");
@@ -68,15 +68,15 @@  discard block
 block discarded – undo
68 68
     {
69 69
         $I->wantTo('append lines with WriteToFile task, but only if pattern does not match');
70 70
         $I->taskWriteToFile('blogpost.md')
71
-           ->line('****')
72
-           ->line('hello world')
73
-           ->line('****')
74
-           ->appendUnlessMatches('/hello/', 'Should not add this')
75
-           ->appendUnlessMatches('/goodbye/', 'Should add this')
76
-           ->appendIfMatches('/hello/', ' and should also add this')
77
-           ->appendIfMatches('/goodbye/', ' but should not add this')
78
-           ->appendIfMatches('/should/', '!')
79
-           ->run();
71
+            ->line('****')
72
+            ->line('hello world')
73
+            ->line('****')
74
+            ->appendUnlessMatches('/hello/', 'Should not add this')
75
+            ->appendUnlessMatches('/goodbye/', 'Should add this')
76
+            ->appendIfMatches('/hello/', ' and should also add this')
77
+            ->appendIfMatches('/goodbye/', ' but should not add this')
78
+            ->appendIfMatches('/should/', '!')
79
+            ->run();
80 80
         $I->seeFileFound('blogpost.md');
81 81
         $I->seeFileContentsEqual(<<<HERE
82 82
 ****
Please login to merge, or discard this patch.
tests/cli/FlattenDirCept.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 $I = new CliGuy($scenario);
3 3
 
4 4
 $I->wantTo('flatten dir with FlattenDir task');
5
-$I->amInPath(codecept_data_dir().'sandbox');
5
+$I->amInPath(codecept_data_dir() . 'sandbox');
6 6
 $I->taskFlattenDir([
7 7
     'some/deeply/nested/*.re' => 'flattened',
8 8
     '*.txt' => 'flattened'
Please login to merge, or discard this patch.