@@ -36,7 +36,7 @@ |
||
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 | } |
@@ -59,7 +59,7 @@ discard block |
||
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 |
||
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 |
||
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); |
@@ -55,11 +55,11 @@ |
||
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 | } |
@@ -37,7 +37,7 @@ |
||
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 |
@@ -21,7 +21,7 @@ |
||
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 | } |
@@ -2,7 +2,7 @@ |
||
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 | } |
@@ -11,7 +11,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -3,7 +3,7 @@ |
||
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'); |
@@ -11,7 +11,7 @@ |
||
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 toSimulateDirCreation(CliGuy $I) |