@@ -94,7 +94,7 @@ |
||
94 | 94 | $body = $this->description; |
95 | 95 | if (!empty($this->changes)) { |
96 | 96 | $changes = array_map( |
97 | - function ($line) { |
|
97 | + function($line) { |
|
98 | 98 | return "* $line"; |
99 | 99 | }, |
100 | 100 | $this->changes |
@@ -31,10 +31,10 @@ |
||
31 | 31 | { |
32 | 32 | $createRoboFile = new Command('init'); |
33 | 33 | $createRoboFile->setDescription("Intitalizes basic RoboFile in current dir"); |
34 | - $createRoboFile->setCode(function () use ($roboClass, $roboFile) { |
|
34 | + $createRoboFile->setCode(function() use ($roboClass, $roboFile) { |
|
35 | 35 | $output = Robo::output(); |
36 | 36 | $output->writeln("<comment> ~~~ Welcome to Robo! ~~~~ </comment>"); |
37 | - $output->writeln("<comment> ". basename($roboFile) ." will be created in the current directory </comment>"); |
|
37 | + $output->writeln("<comment> " . basename($roboFile) . " will be created in the current directory </comment>"); |
|
38 | 38 | file_put_contents( |
39 | 39 | $roboFile, |
40 | 40 | '<?php' |
@@ -143,7 +143,7 @@ |
||
143 | 143 | ->withMethodCall( |
144 | 144 | 'setDisplayErrorFunction', |
145 | 145 | [ |
146 | - function ($output, $message) use ($container) { |
|
146 | + function($output, $message) use ($container) { |
|
147 | 147 | $logger = $container->get('logger'); |
148 | 148 | $logger->error($message); |
149 | 149 | } |
@@ -91,6 +91,7 @@ discard block |
||
91 | 91 | |
92 | 92 | /** |
93 | 93 | * Create a config object and load it from the provided paths. |
94 | + * @param string[] $paths |
|
94 | 95 | */ |
95 | 96 | public static function createConfiguration($paths) |
96 | 97 | { |
@@ -101,6 +102,7 @@ discard block |
||
101 | 102 | |
102 | 103 | /** |
103 | 104 | * Use a simple config loader to load configuration values from specified paths |
105 | + * @param Config\Config $config |
|
104 | 106 | */ |
105 | 107 | public static function loadConfiguration($paths, $config = null) |
106 | 108 | { |
@@ -304,7 +306,7 @@ discard block |
||
304 | 306 | * @param string $id |
305 | 307 | * The ID of the service to retrieve. |
306 | 308 | * |
307 | - * @return mixed |
|
309 | + * @return \Symfony\Component\Console\Output\OutputInterface |
|
308 | 310 | * The specified service. |
309 | 311 | */ |
310 | 312 | public static function service($id) |
@@ -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); |
@@ -33,7 +33,6 @@ discard block |
||
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 |
||
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 | { |
@@ -132,6 +132,9 @@ |
||
132 | 132 | $this->assertNotNull($this->app->find('generate:user-avatar')); |
133 | 133 | } |
134 | 134 | |
135 | + /** |
|
136 | + * @param string $name |
|
137 | + */ |
|
135 | 138 | protected function createCommand($name) |
136 | 139 | { |
137 | 140 | $commandInfo = new CommandInfo($this->roboCommandFileInstance, $name); |
@@ -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 | } |
@@ -3,10 +3,7 @@ |
||
3 | 3 | |
4 | 4 | use Robo\Robo; |
5 | 5 | use Robo\Collection\CollectionBuilder; |
6 | -use Robo\Task\ValueProviderTask; |
|
7 | - |
|
8 | 6 | use Symfony\Component\Console\Output\ConsoleOutput; |
9 | - |
|
10 | 7 | use League\Container\ContainerAwareInterface; |
11 | 8 | use League\Container\ContainerAwareTrait; |
12 | 9 |
@@ -20,7 +20,7 @@ |
||
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 | } |