Completed
Branch master (a69c65)
by Greg
04:32
created
examples/RoboFile.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -348,6 +348,9 @@
 block discarded – undo
348 348
 {
349 349
     protected $message;
350 350
 
351
+    /**
352
+     * @param string $message
353
+     */
351 354
     public function __construct($message)
352 355
     {
353 356
         $this->message = $message;
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 use Robo\Result;
3 3
 use Robo\ResultData;
4
-use Robo\Collection\CollectionBuilder;
5
-
6 4
 use Consolidation\OutputFormatters\StructuredData\RowsOfFields;
7 5
 
8 6
 /**
Please login to merge, or discard this patch.
RoboFile.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 use Symfony\Component\Finder\Finder;
3
-use Robo\Result;
4
-use Robo\Collection\CollectionBuilder;
5 3
 
6 4
 class RoboFile extends \Robo\Tasks
7 5
 {
Please login to merge, or discard this patch.
src/Collection/Collection.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -171,6 +171,8 @@  discard block
 block discarded – undo
171 171
 
172 172
     /**
173 173
      * Add either a 'before' or 'after' function or task.
174
+     * @param string $method
175
+     * @param integer $nameOfTaskToAdd
174 176
      */
175 177
     protected function addBeforeOrAfter($method, $name, $task, $nameOfTaskToAdd)
176 178
     {
@@ -276,6 +278,7 @@  discard block
 block discarded – undo
276 278
 
277 279
     /**
278 280
      * Add the provided task to our task list.
281
+     * @param integer $name
279 282
      */
280 283
     protected function addToTaskList($name, TaskInterface $task)
281 284
     {
@@ -548,6 +551,9 @@  discard block
 block discarded – undo
548 551
         return $taskResult;
549 552
     }
550 553
 
554
+    /**
555
+     * @param CollectionInterface $parentCollection
556
+     */
551 557
     protected function setParentCollectionForTask($task, $parentCollection)
552 558
     {
553 559
         if ($task instanceof NestedCollectionInterface) {
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -11,9 +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
-
16
-use Robo\Common\ProgressIndicatorAwareTrait;
17 14
 use Robo\Contract\InflectionInterface;
18 15
 
19 16
 /**
Please login to merge, or discard this patch.
src/Collection/CollectionBuilder.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
 
206 206
     /**
207 207
      * Create a new builder with its own task collection
208
-     * @return type
208
+     * @return CollectionBuilder
209 209
      */
210 210
     public function newBuilder()
211 211
     {
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@  discard block
 block discarded – undo
2 2
 namespace Robo\Collection;
3 3
 
4 4
 use Robo\Config;
5
-use Robo\Common\Timer;
6 5
 use Psr\Log\LogLevel;
7 6
 use Robo\Contract\TaskInterface;
8 7
 use Robo\Contract\CompletionInterface;
@@ -12,13 +11,10 @@  discard block
 block discarded – undo
12 11
 use Robo\Task\Simulator;
13 12
 use Robo\Collection\CompletionWrapper;
14 13
 use Robo\Collection\Temporary;
15
-use Robo\Contract\ConfigAwareInterface;
16
-use Robo\Common\ConfigAwareTrait;
17 14
 use ReflectionClass;
18 15
 use Robo\Task\BaseTask;
19 16
 use Robo\Contract\BuilderAwareInterface;
20 17
 use Robo\Contract\CommandInterface;
21
-use Robo\Exception\TaskException;
22 18
 
23 19
 /**
24 20
  * Creates a collection, and adds tasks to it.  The collection builder
Please login to merge, or discard this patch.
src/Collection/Temporary.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Robo\Collection;
4 4
 
5
-use Robo\Contract\TaskInterface;
6
-
7 5
 /**
8 6
  * The temporary collection keeps track of the global collection of
9 7
  * temporary cleanup tasks in instances where temporary-generating
Please login to merge, or discard this patch.
src/Common/CommandArguments.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * Pass argument to executable. Its value will be automatically escaped.
15 15
      *
16
-     * @param $arg
16
+     * @param string $arg
17 17
      * @return $this
18 18
      */
19 19
     public function arg($arg)
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * Pass multiple options to executable. Value can be a string or array.
87 87
      * Option values are automatically escaped.
88 88
      *
89
-     * @param $option
89
+     * @param string $option
90 90
      * @param string|array $value
91 91
      * @return $this
92 92
      */
Please login to merge, or discard this patch.
src/Common/ResourceExistenceChecker.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      *
43 43
      * @param string $resource File or folder.
44 44
      * @param string $type "file", "dir", "fileAndDir"
45
-     * @return boolean
45
+     * @return boolean|null
46 46
      */
47 47
     protected function checkResource($resource, $type)
48 48
     {
Please login to merge, or discard this patch.
src/Common/TaskIO.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -85,6 +85,7 @@  discard block
 block discarded – undo
85 85
      * execution can continue.
86 86
      *
87 87
      * Warning messages are displayed at VERBOSITY_NORMAL.
88
+     * @param string $text
88 89
      */
89 90
     protected function printTaskWarning($text, $context = null)
90 91
     {
@@ -96,6 +97,7 @@  discard block
 block discarded – undo
96 97
      * and the task cannot continue.
97 98
      *
98 99
      * Error messages are displayed at VERBOSITY_NORMAL.
100
+     * @param string $text
99 101
      */
100 102
     protected function printTaskError($text, $context = null)
101 103
     {
@@ -148,6 +150,7 @@  discard block
 block discarded – undo
148 150
 
149 151
     /**
150 152
      * Format a quantity of bytes.
153
+     * @param integer $size
151 154
      */
152 155
     protected function formatBytes($size, $precision = 2)
153 156
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Consolidation\Log\ConsoleLogLevel;
7 7
 use Robo\Common\ConfigAwareTrait;
8 8
 use Psr\Log\LoggerAwareTrait;
9
-use Psr\Log\LoggerInterface;
10 9
 use Psr\Log\LogLevel;
11 10
 use Robo\Contract\ProgressIndicatorAwareInterface;
12 11
 
Please login to merge, or discard this patch.
src/Log/ResultPrinter.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -81,6 +81,9 @@
 block discarded – undo
81 81
         return false;
82 82
     }
83 83
 
84
+    /**
85
+     * @param string $message
86
+     */
84 87
     protected function printMessage($level, $message, $context = [])
85 88
     {
86 89
         $inProgress = $this->hideProgressIndicator();
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,13 +2,10 @@
 block discarded – undo
2 2
 namespace Robo\Log;
3 3
 
4 4
 use Robo\Result;
5
-use Robo\TaskInfo;
6 5
 use Robo\Contract\PrintedInterface;
7 6
 use Robo\Contract\ProgressIndicatorAwareInterface;
8 7
 use Robo\Common\ProgressIndicatorAwareTrait;
9
-
10 8
 use Psr\Log\LogLevel;
11
-use Psr\Log\LoggerInterface;
12 9
 use Psr\Log\LoggerAwareInterface;
13 10
 use Psr\Log\LoggerAwareTrait;
14 11
 use Consolidation\Log\ConsoleLogLevel;
Please login to merge, or discard this patch.