Completed
Push — master ( 2a3e96...8b8afe )
by Greg
03:03
created
src/Collection/Temporary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     {
37 37
         if (!static::$collection) {
38 38
             static::$collection = \Robo\Robo::getContainer()->get('collection');
39
-            register_shutdown_function(function () {
39
+            register_shutdown_function(function() {
40 40
                 static::complete();
41 41
             });
42 42
         }
Please login to merge, or discard this patch.
src/Collection/TaskForEach.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     public function call(callable $fn)
60 60
     {
61 61
         return $this->withEachKeyValueCall(
62
-            function ($key, $value) use ($fn) {
62
+            function($key, $value) use ($fn) {
63 63
                 return call_user_func($fn, $value);
64 64
             }
65 65
         );
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     public function withBuilder(callable $fn)
69 69
     {
70 70
         $this->countingStack[] =
71
-            function ($key, $value) use ($fn) {
71
+            function($key, $value) use ($fn) {
72 72
                 // Create a new builder for every iteration
73 73
                 $builder = $this->collectionBuilder();
74 74
                 // The user function should build task operations using
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                 return $builder->getCollection()->progressIndicatorSteps();
79 79
             };
80 80
         return $this->withEachKeyValueCall(
81
-            function ($key, $value) use ($fn) {
81
+            function($key, $value) use ($fn) {
82 82
                 // Create a new builder for every iteration
83 83
                 $builder = $this->collectionBuilder()
84 84
                     ->setParentCollection($this->parentCollection);
Please login to merge, or discard this patch.
tests/_data/TestedRoboTask.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,6 @@  discard block
 block discarded – undo
33 33
     /**
34 34
      * Constructor. This should not be documented
35 35
      *
36
-     * @param array|Iterator $files
37 36
      */
38 37
     public function __construct()
39 38
     {
@@ -44,7 +43,7 @@  discard block
 block discarded – undo
44 43
      *
45 44
      * @param string $dst
46 45
      *
47
-     * @return Concat The current instance
46
+     * @return TestedRoboTask The current instance
48 47
      */
49 48
     public function to($dst)
50 49
     {
Please login to merge, or discard this patch.
tests/unit/ApplicationTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -132,6 +132,9 @@
 block discarded – undo
132 132
         $this->assertNotNull($this->app->find('generate:user-avatar'));
133 133
     }
134 134
 
135
+    /**
136
+     * @param string $name
137
+     */
135 138
     protected function createCommand($name)
136 139
     {
137 140
         $commandInfo = new CommandInfo($this->roboCommandFileInstance, $name);
Please login to merge, or discard this patch.
tests/_helpers/CliHelper.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,11 +55,11 @@
 block discarded – undo
55 55
         Robo::setContainer($container);
56 56
         $this->setContainer($container);
57 57
 
58
-        $this->getModule('Filesystem')->copyDir(codecept_data_dir().'claypit', codecept_data_dir().'sandbox');
58
+        $this->getModule('Filesystem')->copyDir(codecept_data_dir() . 'claypit', codecept_data_dir() . 'sandbox');
59 59
     }
60 60
 
61 61
     public function _after(\Codeception\TestCase $test) {
62
-        $this->getModule('Filesystem')->deleteDir(codecept_data_dir().'sandbox');
62
+        $this->getModule('Filesystem')->deleteDir(codecept_data_dir() . 'sandbox');
63 63
         $this->getContainer()->add('output', new ConsoleOutput());
64 64
         chdir(codecept_root_dir());
65 65
     }
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,10 +3,7 @@
 block discarded – undo
3 3
 
4 4
 use Robo\Robo;
5 5
 use Robo\Collection\CollectionBuilder;
6
-use Robo\Task\ValueProviderTask;
7
-
8 6
 use Symfony\Component\Console\Output\ConsoleOutput;
9
-
10 7
 use League\Container\ContainerAwareInterface;
11 8
 use League\Container\ContainerAwareTrait;
12 9
 
Please login to merge, or discard this patch.
tests/_helpers/CodeGuy.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 {
21 21
     use _generated\CodeGuyActions;
22 22
 
23
-   /**
24
-    * Define custom actions here
25
-    */
23
+    /**
24
+     * Define custom actions here
25
+     */
26 26
 }
Please login to merge, or discard this patch.
tests/unit/Task/ApiGenTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             ->extensions('php') // single string value of List
38 38
             ->exclude(array('test', 'tmp')) // array value of Traversable
39 39
             ->skipDocPath($skippedPaths) // multi-value of Traversable
40
-            ->charset(array('utf8','iso88591')) // array of List
40
+            ->charset(array('utf8', 'iso88591')) // array of List
41 41
             ->internal('no') // boolean as supported "no"
42 42
             ->php(true) // boolean as boolean
43 43
             ->tree('Y') // boolean as string
Please login to merge, or discard this patch.
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.