Completed
Push — master ( efd4b5...cdc15c )
by Greg
11s
created
tests/unit/Task/GulpTest.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@
 block discarded – undo
16 16
         ]);
17 17
     }
18 18
 
19
+    /**
20
+     * @param string $expected
21
+     */
19 22
     protected function adjustQuotes($expected)
20 23
     {
21 24
         $isWindows = defined('PHP_WINDOWS_VERSION_MAJOR');
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -30,27 +30,27 @@  discard block
 block discarded – undo
30 30
     public function testGulpGetCommand()
31 31
     {
32 32
         verify(
33
-            (new \Robo\Task\Gulp\Run('default','gulp'))->getCommand()
33
+            (new \Robo\Task\Gulp\Run('default', 'gulp'))->getCommand()
34 34
         )->equals($this->adjustQuotes('gulp "default"'));
35 35
 
36 36
         verify(
37
-            (new \Robo\Task\Gulp\Run('another','gulp'))->getCommand()
37
+            (new \Robo\Task\Gulp\Run('another', 'gulp'))->getCommand()
38 38
         )->equals($this->adjustQuotes('gulp "another"'));
39 39
 
40 40
         verify(
41
-            (new \Robo\Task\Gulp\Run('default','gulp'))->silent()->getCommand()
41
+            (new \Robo\Task\Gulp\Run('default', 'gulp'))->silent()->getCommand()
42 42
         )->equals($this->adjustQuotes('gulp "default" --silent'));
43 43
 
44 44
         verify(
45
-            (new \Robo\Task\Gulp\Run('default','gulp'))->noColor()->getCommand()
45
+            (new \Robo\Task\Gulp\Run('default', 'gulp'))->noColor()->getCommand()
46 46
         )->equals($this->adjustQuotes('gulp "default" --no-color'));
47 47
 
48 48
         verify(
49
-            (new \Robo\Task\Gulp\Run('default','gulp'))->color()->getCommand()
49
+            (new \Robo\Task\Gulp\Run('default', 'gulp'))->color()->getCommand()
50 50
         )->equals($this->adjustQuotes('gulp "default" --color'));
51 51
 
52 52
         verify(
53
-            (new \Robo\Task\Gulp\Run('default','gulp'))->simple()->getCommand()
53
+            (new \Robo\Task\Gulp\Run('default', 'gulp'))->simple()->getCommand()
54 54
         )->equals($this->adjustQuotes('gulp "default" --tasks-simple'));
55 55
     }
56 56
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $gulp = test::double('Robo\Task\Gulp\Run', ['executeCommand' => null, 'getConfig' => new \Robo\Config(), 'logger' => new \Psr\Log\NullLogger()]);
60 60
 
61
-        $task = (new \Robo\Task\Gulp\Run('default','gulp'))->simple();
61
+        $task = (new \Robo\Task\Gulp\Run('default', 'gulp'))->simple();
62 62
         verify($task->getCommand())->equals($this->adjustQuotes('gulp "default" --tasks-simple'));
63 63
         $task->run();
64 64
         $gulp->verifyInvoked('executeCommand', [$this->adjustQuotes('gulp "default" --tasks-simple')]);
@@ -71,13 +71,13 @@  discard block
 block discarded – undo
71 71
         if ($isWindows) {
72 72
 
73 73
             verify(
74
-                (new \Robo\Task\Gulp\Run('anotherWith weired!("\') Chars','gulp'))->getCommand()
74
+                (new \Robo\Task\Gulp\Run('anotherWith weired!("\') Chars', 'gulp'))->getCommand()
75 75
             )->equals('gulp "anotherWith weired!(\"\') Chars"');
76 76
 
77 77
         } else {
78 78
 
79 79
             verify(
80
-                (new \Robo\Task\Gulp\Run('anotherWith weired!("\') Chars','gulp'))->getCommand()
80
+                (new \Robo\Task\Gulp\Run('anotherWith weired!("\') Chars', 'gulp'))->getCommand()
81 81
             )->equals("gulp 'anotherWith weired!(\"'\\'') Chars'");
82 82
 
83 83
         }
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   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use Robo\Robo;
5 5
 use Symfony\Component\Console\Output\ConsoleOutput;
6
-
7 6
 use League\Container\ContainerAwareInterface;
8 7
 use League\Container\ContainerAwareTrait;
9 8
 
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.
tests/_bootstrap.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 $kernel->init([
6 6
     'debug' => true,
7 7
     'includePaths' => [
8
-        __DIR__.'/../src',
9
-        __DIR__.'/../vendor/symfony/process',
10
-        __DIR__.'/../vendor/symfony/console',
8
+        __DIR__ . '/../src',
9
+        __DIR__ . '/../vendor/symfony/process',
10
+        __DIR__ . '/../vendor/symfony/console',
11 11
     ]
12 12
 ]);
Please login to merge, or discard this patch.
tests/cli/GenerateMarkdownDocCest.php 1 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/PackExtractCept.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 $I = new CliGuy($scenario);
4 4
 
5 5
 $I->wantTo('archive directory and then extract it again with Archive and Extract tasks');
6
-$I->amInPath(codecept_data_dir().'sandbox');
6
+$I->amInPath(codecept_data_dir() . 'sandbox');
7 7
 $I->seeDirFound('some/deeply/nested');
8 8
 $I->seeFileFound('structu.re', 'some/deeply/nested');
9 9
 $I->seeFileFound('existing_file', 'some/deeply');
Please login to merge, or discard this patch.