Completed
Push — master ( 2fa00d...5efdd3 )
by Greg
03:04
created
src/Config/Config.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      * Return the default value for a given configuration item.
140 140
      *
141 141
      * @param string $key
142
-     * @param mixed $defaultOverride
142
+     * @param string|null $defaultOverride
143 143
      *
144 144
      * @return mixed
145 145
      */
@@ -190,7 +190,6 @@  discard block
 block discarded – undo
190 190
     }
191 191
 
192 192
     /**
193
-     * @param bool $simulated
194 193
      *
195 194
      * @return $this
196 195
      */
Please login to merge, or discard this patch.
tests/unit/Task/ComposerTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 use AspectMock\Test as test;
3
-
4 3
 use Robo\Traits\Common\AdjustQuotes;
5 4
 
6 5
 class ComposerTest extends \Codeception\TestCase\Test
Please login to merge, or discard this patch.
tests/unit/Task/GulpTest.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 use AspectMock\Test as test;
3
-
4 3
 use Robo\Traits\Common\AdjustQuotes;
5 4
 
6 5
 class GulpTest extends \Codeception\TestCase\Test
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,27 +23,27 @@  discard block
 block discarded – undo
23 23
     public function testGulpGetCommand()
24 24
     {
25 25
         verify(
26
-            (new \Robo\Task\Gulp\Run('default','gulp'))->getCommand()
26
+            (new \Robo\Task\Gulp\Run('default', 'gulp'))->getCommand()
27 27
         )->equals($this->adjustQuotes("gulp 'default'"));
28 28
 
29 29
         verify(
30
-            (new \Robo\Task\Gulp\Run('another','gulp'))->getCommand()
30
+            (new \Robo\Task\Gulp\Run('another', 'gulp'))->getCommand()
31 31
         )->equals($this->adjustQuotes("gulp 'another'"));
32 32
 
33 33
         verify(
34
-            (new \Robo\Task\Gulp\Run('default','gulp'))->silent()->getCommand()
34
+            (new \Robo\Task\Gulp\Run('default', 'gulp'))->silent()->getCommand()
35 35
         )->equals($this->adjustQuotes("gulp 'default' --silent"));
36 36
 
37 37
         verify(
38
-            (new \Robo\Task\Gulp\Run('default','gulp'))->noColor()->getCommand()
38
+            (new \Robo\Task\Gulp\Run('default', 'gulp'))->noColor()->getCommand()
39 39
         )->equals($this->adjustQuotes("gulp 'default' --no-color"));
40 40
 
41 41
         verify(
42
-            (new \Robo\Task\Gulp\Run('default','gulp'))->color()->getCommand()
42
+            (new \Robo\Task\Gulp\Run('default', 'gulp'))->color()->getCommand()
43 43
         )->equals($this->adjustQuotes("gulp 'default' --color"));
44 44
 
45 45
         verify(
46
-            (new \Robo\Task\Gulp\Run('default','gulp'))->simple()->getCommand()
46
+            (new \Robo\Task\Gulp\Run('default', 'gulp'))->simple()->getCommand()
47 47
         )->equals($this->adjustQuotes("gulp 'default' --tasks-simple"));
48 48
     }
49 49
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     {
52 52
         $gulp = test::double('Robo\Task\Gulp\Run', ['executeCommand' => null, 'getConfig' => new \Robo\Config(), 'logger' => new \Psr\Log\NullLogger()]);
53 53
 
54
-        $task = (new \Robo\Task\Gulp\Run('default','gulp'))->simple();
54
+        $task = (new \Robo\Task\Gulp\Run('default', 'gulp'))->simple();
55 55
         verify($task->getCommand())->equals($this->adjustQuotes("gulp 'default' --tasks-simple"));
56 56
         $task->run();
57 57
         $gulp->verifyInvoked('executeCommand', [$this->adjustQuotes("gulp 'default' --tasks-simple")]);
@@ -64,13 +64,13 @@  discard block
 block discarded – undo
64 64
         if ($isWindows) {
65 65
 
66 66
             verify(
67
-                (new \Robo\Task\Gulp\Run('anotherWith weired!("\') Chars','gulp'))->getCommand()
67
+                (new \Robo\Task\Gulp\Run('anotherWith weired!("\') Chars', 'gulp'))->getCommand()
68 68
             )->equals('gulp "anotherWith weired!(\"\') Chars"');
69 69
 
70 70
         } else {
71 71
 
72 72
             verify(
73
-                (new \Robo\Task\Gulp\Run('anotherWith weired!("\') Chars','gulp'))->getCommand()
73
+                (new \Robo\Task\Gulp\Run('anotherWith weired!("\') Chars', 'gulp'))->getCommand()
74 74
             )->equals("gulp 'anotherWith weired!(\"'\\'') Chars'");
75 75
 
76 76
         }
Please login to merge, or discard this patch.
src/Task/Composer/RequireDependency.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
         if (isset($version)) {
30 30
             $project = array_map(
31
-                function ($item) use ($version) {
31
+                function($item) use ($version) {
32 32
                     return "$item:$version";
33 33
                 },
34 34
                 $project
Please login to merge, or discard this patch.