@@ -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 | } |
@@ -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 toRunMultipleTasksViaACollectionBuilder(CliGuy $I) |
@@ -150,7 +150,7 @@ discard block |
||
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 |
||
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 | ); |
@@ -4,7 +4,7 @@ |
||
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) |
@@ -8,6 +8,6 @@ |
||
8 | 8 | ->run(); |
9 | 9 | $I->dontSeeFileFound('box', 'sandbox'); |
10 | 10 | $I->dontSeeFileFound('robo.txt', 'sandbox'); |
11 | -$I->dontSeeFileFound('a.txt' , 'sandbox'); |
|
11 | +$I->dontSeeFileFound('a.txt', 'sandbox'); |
|
12 | 12 | |
13 | 13 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | $I = new CliGuy($scenario); |
4 | 4 | |
5 | 5 | $I->wantTo('minify a css file'); |
6 | -$I->amInPath(codecept_data_dir().'sandbox'); |
|
6 | +$I->amInPath(codecept_data_dir() . 'sandbox'); |
|
7 | 7 | |
8 | 8 | $sampleCss = dirname(__DIR__) . '/_data/sample.css'; |
9 | 9 | $outputCss = 'minifiedSample.css'; |
@@ -2,9 +2,9 @@ |
||
2 | 2 | $I = new CliGuy($scenario); |
3 | 3 | |
4 | 4 | $I->wantTo('flatten dir with FlattenDir task including parents'); |
5 | -$I->amInPath(codecept_data_dir().'sandbox'); |
|
5 | +$I->amInPath(codecept_data_dir() . 'sandbox'); |
|
6 | 6 | $I->taskFlattenDir('some/deeply/nested/*.re') |
7 | - ->includeParents(array(1,1)) |
|
7 | + ->includeParents(array(1, 1)) |
|
8 | 8 | ->parentDir('some') |
9 | 9 | ->to('flattened') |
10 | 10 | ->run(); |
@@ -3,7 +3,7 @@ |
||
3 | 3 | $I = new CliGuy($scenario); |
4 | 4 | |
5 | 5 | $I->wantTo('minify a css file'); |
6 | -$I->amInPath(codecept_data_dir().'sandbox'); |
|
6 | +$I->amInPath(codecept_data_dir() . 'sandbox'); |
|
7 | 7 | |
8 | 8 | $sampleCss = dirname(__DIR__) . '/_data/sample.css'; |
9 | 9 | $outputCss = 'minifiedSample.css'; |
@@ -3,7 +3,7 @@ |
||
3 | 3 | $I = new CliGuy($scenario); |
4 | 4 | |
5 | 5 | $I->wantTo('minify a css file'); |
6 | -$I->amInPath(codecept_data_dir().'sandbox'); |
|
6 | +$I->amInPath(codecept_data_dir() . 'sandbox'); |
|
7 | 7 | |
8 | 8 | $sampleCss = dirname(__DIR__) . '/_data/sample.css'; |
9 | 9 | $outputCss = 'minifiedSample.css'; |
@@ -4,7 +4,7 @@ |
||
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) |