Completed
Pull Request — master (#499)
by .
03:00
created
src/Task/File/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/Filesystem/loadShortcuts.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.
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/CliHelper.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use Robo\Robo;
5 5
 use Symfony\Component\Console\Output\ConsoleOutput;
6
-use Symfony\Component\Console\Output\NullOutput;
7
-
8 6
 use League\Container\ContainerAwareInterface;
9 7
 use League\Container\ContainerAwareTrait;
10 8
 
Please login to merge, or discard this patch.
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.
tests/_helpers/SeeInOutputTrait.php 2 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Codeception\Module;
3 3
 
4 4
 use Robo\Robo;
5
-use Symfony\Component\Console\Output\ConsoleOutput;
6 5
 use Symfony\Component\Console\Output\BufferedOutput;
7 6
 use Symfony\Component\Console\Output\OutputInterface;
8 7
 
Please login to merge, or discard this patch.
tests/cli/CollectionCest.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,7 @@
 block discarded – undo
3 3
 
4 4
 use \CliGuy;
5 5
 
6
-use Robo\Contract\TaskInterface;
7 6
 use Robo\Collection\Temporary;
8
-use Robo\Result;
9 7
 
10 8
 class CollectionCest
11 9
 {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function _before(CliGuy $I)
13 13
     {
14
-        $I->amInPath(codecept_data_dir().'sandbox');
14
+        $I->amInPath(codecept_data_dir() . 'sandbox');
15 15
     }
16 16
 
17 17
     public function toRunMultipleTasksViaACollectionBuilder(CliGuy $I)
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
                 ->mkdir('stuff')
151 151
             ->taskForEach($processList)
152 152
                 ->withBuilder(
153
-                    function ($builder, $key, $value) {
153
+                    function($builder, $key, $value) {
154 154
                         return $builder
155 155
                             ->taskFilesystemStack()
156 156
                                 ->touch("stuff/{$value}.txt");
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
         $collection = $I->getContainer()->get('collection');
399 399
 
400 400
         $collection->addCode(
401
-            function () {
401
+            function() {
402 402
                 throw new \RuntimeException('Error');
403 403
             }
404 404
         );
Please login to merge, or discard this patch.
tests/cli/GenerateMarkdownDocCest.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
4 4
 use \CliGuy;
5 5
 
6 6
 use Robo\Contract\TaskInterface;
7
-use Robo\Collection\Temporary;
8
-use Robo\Result;
9 7
 
10 8
 class GenerateMarkdownDocCest
11 9
 {
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function _before(CliGuy $I)
13 13
     {
14
-        $I->amInPath(codecept_data_dir().'sandbox');
14
+        $I->amInPath(codecept_data_dir() . 'sandbox');
15 15
     }
16 16
 
17 17
     public function toGenerateDocumentation(CliGuy $I)
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
 
24 24
         $collection = $I->collectionBuilder();
25 25
         $taskGenerator = $collection->taskGenDoc("TestedRoboTask.md");
26
-        $taskGenerator->filterClasses(function (\ReflectionClass $r) {
26
+        $taskGenerator->filterClasses(function(\ReflectionClass $r) {
27 27
             return !($r->isAbstract() || $r->isTrait()) && $r->implementsInterface('Robo\Contract\TaskInterface');
28 28
         })->prepend("# TestedRoboTask Tasks");
29 29
         $taskGenerator->docClass('TestedRoboTask');
30 30
 
31 31
         $taskGenerator->filterMethods(
32
-            function (\ReflectionMethod $m) {
32
+            function(\ReflectionMethod $m) {
33 33
                 if ($m->isConstructor() || $m->isDestructor() || $m->isStatic()) {
34 34
                     return false;
35 35
                 }
@@ -55,21 +55,21 @@  discard block
 block discarded – undo
55 55
                 return !in_array($m->name, $undocumentedMethods) && $m->isPublic(); // methods are not documented
56 56
             }
57 57
         )->processClassSignature(
58
-            function ($c) {
58
+            function($c) {
59 59
                 return "## " . preg_replace('~Task$~', '', $c->getShortName()) . "\n";
60 60
             }
61 61
         )->processClassDocBlock(
62
-            function (\ReflectionClass $c, $doc) {
62
+            function(\ReflectionClass $c, $doc) {
63 63
                 $doc = preg_replace('~@method .*?(.*?)\)~', '* `$1)` ', $doc);
64
-                $doc = str_replace('\\'.$c->name, '', $doc);
64
+                $doc = str_replace('\\' . $c->name, '', $doc);
65 65
                 return $doc;
66 66
             }
67 67
         )->processMethodSignature(
68
-            function (\ReflectionMethod $m, $text) {
68
+            function(\ReflectionMethod $m, $text) {
69 69
                 return str_replace('#### *public* ', '* `', $text) . '`';
70 70
             }
71 71
         )->processMethodDocBlock(
72
-            function (\ReflectionMethod $m, $text) {
72
+            function(\ReflectionMethod $m, $text) {
73 73
 
74 74
                 return $text ? ' ' . trim(strtok($text, "\n"), "\n") : '';
75 75
             }
Please login to merge, or discard this patch.
tests/cli/SimulatedCest.php 2 patches
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -3,10 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use \CliGuy;
5 5
 
6
-use Robo\Contract\TaskInterface;
7
-use Robo\Collection\Temporary;
8
-use Robo\Result;
9
-
10 6
 class SimulatedCest
11 7
 {
12 8
     public function _before(CliGuy $I)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 {
5 5
     public function _before(CliGuy $I)
6 6
     {
7
-        $I->amInPath(codecept_data_dir().'sandbox');
7
+        $I->amInPath(codecept_data_dir() . 'sandbox');
8 8
     }
9 9
 
10 10
     public function toCreateDir(CliGuy $I)
Please login to merge, or discard this patch.
tests/src/RoboFileFixture.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -3,12 +3,8 @@
 block discarded – undo
3 3
 namespace Robo;
4 4
 
5 5
 use Robo\Result;
6
-use Robo\ResultData;
7
-use Robo\Collection\CollectionBuilder;
8 6
 use Psr\Log\LoggerAwareTrait;
9 7
 use Psr\Log\LoggerAwareInterface;
10
-
11
-use Consolidation\OutputFormatters\StructuredData\RowsOfFields;
12 8
 use Symfony\Component\Console\Output\OutputInterface;
13 9
 
14 10
 /**
Please login to merge, or discard this patch.