Completed
Pull Request — master (#924)
by Greg
02:14
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/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/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/FilesystemStackCest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 {
5 5
     public function _before(CliGuy $I)
6 6
     {
7
-        $I->amInPath(codecept_data_dir().'sandbox');
7
+        $I->amInPath(codecept_data_dir() . 'sandbox');
8 8
     }
9 9
 
10 10
     public function toCreateDir(CliGuy $I)
Please login to merge, or discard this patch.
src/Task/Archive/Extract.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@
 block discarded – undo
206 206
     /**
207 207
      * @param string $filename
208 208
      *
209
-     * @return bool|string
209
+     * @return string|false
210 210
      */
211 211
     protected static function archiveType($filename)
212 212
     {
Please login to merge, or discard this patch.
src/Task/Base/loadShortcuts.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
     /**
7 7
      * Executes shell command
8 8
      *
9
-     * @param string|\Robo\Contract\CommandInterface $command
9
+     * @param string $command
10 10
      *
11 11
      * @return \Robo\Result
12 12
      */
Please login to merge, or discard this patch.
src/Task/Docker/Exec.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     protected $run = '';
48 48
 
49 49
     /**
50
-     * @param string|\Robo\Result $cidOrResult
50
+     * @param string $cidOrResult
51 51
      */
52 52
     public function __construct($cidOrResult)
53 53
     {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     }
74 74
 
75 75
     /**
76
-     * @param string|\Robo\Contract\CommandInterface $command
76
+     * @param string $command
77 77
      *
78 78
      * @return $this
79 79
      */
Please login to merge, or discard this patch.
src/Task/Docker/Run.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
     }
125 125
 
126 126
     /**
127
-     * @param string|\Robo\Contract\CommandInterface $run
127
+     * @param string $run
128 128
      *
129 129
      * @return $this
130 130
      */
Please login to merge, or discard this patch.