Completed
Push — master ( efd4b5...cdc15c )
by Greg
11s
created
src/Task/Development/GitHubRelease.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
         $body = $this->description;
95 95
         if (!empty($this->changes)) {
96 96
             $changes = array_map(
97
-                function ($line) {
97
+                function($line) {
98 98
                     return "* $line";
99 99
                 },
100 100
                 $this->changes
Please login to merge, or discard this patch.
src/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,10 +31,10 @@
 block discarded – undo
31 31
     {
32 32
         $createRoboFile = new Command('init');
33 33
         $createRoboFile->setDescription("Intitalizes basic RoboFile in current dir");
34
-        $createRoboFile->setCode(function () use ($roboClass, $roboFile) {
34
+        $createRoboFile->setCode(function() use ($roboClass, $roboFile) {
35 35
             $output = Robo::output();
36 36
             $output->writeln("<comment>  ~~~ Welcome to Robo! ~~~~ </comment>");
37
-            $output->writeln("<comment>  ". basename($roboFile) ." will be created in the current directory </comment>");
37
+            $output->writeln("<comment>  " . basename($roboFile) . " will be created in the current directory </comment>");
38 38
             file_put_contents(
39 39
                 $roboFile,
40 40
                 '<?php'
Please login to merge, or discard this patch.
src/Robo.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
             ->withMethodCall(
144 144
                 'setDisplayErrorFunction',
145 145
                 [
146
-                    function ($output, $message) use ($container) {
146
+                    function($output, $message) use ($container) {
147 147
                         $logger = $container->get('logger');
148 148
                         $logger->error($message);
149 149
                     }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@
 block discarded – undo
258 258
      * @param string $id
259 259
      *   The ID of the service to retrieve.
260 260
      *
261
-     * @return mixed
261
+     * @return \Symfony\Component\Console\Output\OutputInterface
262 262
      *   The specified service.
263 263
      */
264 264
     public static function service($id)
Please login to merge, or discard this patch.
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.
src/Collection/Collection.php 3 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     {
108 108
         $collection = $this;
109 109
         $completionRegistrationTask = new CallableTask(
110
-            function () use ($collection, $completionTask) {
110
+            function() use ($collection, $completionTask) {
111 111
 
112 112
                 $collection->registerCompletion($completionTask);
113 113
             },
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         $context += ['name' => 'Progress'];
151 151
         $context += TaskInfo::getTaskContext($this);
152 152
         return $this->addCode(
153
-            function () use ($level, $text, $context) {
153
+            function() use ($level, $text, $context) {
154 154
                 $this->printTaskOutput($level, $text, $context);
155 155
             }
156 156
         );
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     {
161 161
         $collection = $this;
162 162
         $rollbackRegistrationTask = new CallableTask(
163
-            function () use ($collection, $rollbackTask) {
163
+            function() use ($collection, $rollbackTask) {
164 164
                 $collection->registerRollback($rollbackTask);
165 165
             },
166 166
             $this
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         if ($task instanceof StackBasedTask) {
203 203
             $task->stopOnFail(false);
204 204
         }
205
-        $ignoreErrorsInTask = function () use ($task) {
205
+        $ignoreErrorsInTask = function() use ($task) {
206 206
             $data = [];
207 207
             try {
208 208
                 $result = $this->runSubtask($task);
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      *
194 194
      * @param string $method
195 195
      * @param string $name
196
-     * @param callable|TaskInterface $task
196
+     * @param callable $task
197 197
      * @param string $nameOfTaskToAdd
198 198
      *
199 199
      * @return $this
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
     /**
263 263
      * Return the list of task names added to this collection.
264 264
      *
265
-     * @return array
265
+     * @return integer[]
266 266
      */
267 267
     public function taskNames()
268 268
     {
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
     }
336 336
 
337 337
     /**
338
-     * @param int|string $name
338
+     * @param string $name
339 339
      * @param \Robo\Collection\Element $taskGroup
340 340
      *
341 341
      * @return $this
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
     }
622 622
 
623 623
     /**
624
-     * @param TaskInterface|NestedCollectionInterface|WrappedTaskInterface $task
624
+     * @param TaskInterface $task
625 625
      *
626 626
      * @return \Robo\Result
627 627
      */
@@ -638,7 +638,7 @@  discard block
 block discarded – undo
638 638
 
639 639
     /**
640 640
      * @param TaskInterface|NestedCollectionInterface|WrappedTaskInterface $task
641
-     * @param $parentCollection
641
+     * @param CollectionInterface $parentCollection
642 642
      */
643 643
     protected function setParentCollectionForTask($task, $parentCollection)
644 644
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 use Robo\Exception\TaskException;
12 12
 use Robo\Exception\TaskExitException;
13 13
 use Robo\Contract\CommandInterface;
14
-
15 14
 use Robo\Contract\InflectionInterface;
16 15
 
17 16
 /**
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/_helpers/SeeInOutputTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@
 block discarded – undo
12 12
     protected $capturedOutput;
13 13
     protected $logger;
14 14
 
15
+    /**
16
+     * @param \League\Container\Container $container
17
+     */
15 18
     public function initSeeInOutputTrait($container, $input = null)
16 19
     {
17 20
         $this->capturedOutput = '';
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.