Completed
Pull Request — master (#499)
by .
03:00
created
src/Collection/Collection.php 2 patches
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.
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.
src/Collection/Temporary.php 2 patches
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.
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/Log/ResultPrinter.php 1 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.
src/Result.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Robo;
3 3
 
4 4
 use Robo\Contract\TaskInterface;
5
-use Robo\Contract\LogResultInterface;
6 5
 use Robo\Exception\TaskExitException;
7 6
 
8 7
 class Result extends ResultData
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
 
131 131
     public function cloneTask()
132 132
     {
133
-        $reflect  = new \ReflectionClass(get_class($this->task));
133
+        $reflect = new \ReflectionClass(get_class($this->task));
134 134
         return $reflect->newInstanceArgs(func_get_args());
135 135
     }
136 136
 
Please login to merge, or discard this patch.
src/Task/Development/PackPhar.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Robo\Task\Development;
3 3
 
4 4
 use Robo\Contract\ProgressIndicatorAwareInterface;
5
-use Robo\Common\ProgressIndicatorAwareTrait;
6 5
 use Robo\Contract\PrintedInterface;
7 6
 use Robo\Result;
8 7
 use Robo\Task\BaseTask;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
     {
100 100
         // run() will call advanceProgressIndicator() once for each
101 101
         // file, one after calling stopBuffering, and again after compression.
102
-        return count($this->files)+2;
102
+        return count($this->files) + 2;
103 103
     }
104 104
 
105 105
     public function run()
Please login to merge, or discard this patch.
src/Task/File/TmpFile.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Robo\Task\File;
4 4
 
5
-use Robo\Collection\Collection;
6 5
 use Robo\Contract\CompletionInterface;
7 6
 
8 7
 /**
Please login to merge, or discard this patch.
src/Task/Filesystem/loadTasks.php 1 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
 namespace Robo\Task\Filesystem;
3 3
 
4
-use Robo\Collection\Temporary;
5
-
6 4
 trait loadTasks
7 5
 {
8 6
     /**
Please login to merge, or discard this patch.
src/Task/Simulator.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Robo\Contract\TaskInterface;
7 7
 use Robo\Contract\SimulatedInterface;
8 8
 use Robo\Log\RoboLogLevel;
9
-use Psr\Log\LogLevel;
10 9
 use Robo\Contract\CommandInterface;
11 10
 
12 11
 class Simulator extends BaseTask implements CommandInterface
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
             return $this->shortenParameter(var_export($item, true));
97 97
         }
98 98
         if (is_object($item)) {
99
-            return '[' . get_class($item). ' object]';
99
+            return '[' . get_class($item) . ' object]';
100 100
         }
101 101
         if (is_string($item)) {
102 102
             return $this->shortenParameter("'$item'");
Please login to merge, or discard this patch.
src/Common/TimeKeeper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,6 @@
 block discarded – undo
53 53
         if ($duration > self::MINUTE) {
54 54
             return gmdate("i:s", $duration);
55 55
         }
56
-        return round($duration, 3).'s';
56
+        return round($duration, 3) . 's';
57 57
     }
58 58
 }
Please login to merge, or discard this patch.