@@ -23,11 +23,11 @@ |
||
23 | 23 | return $this->task(ImageMinify::class, $input); |
24 | 24 | } |
25 | 25 | |
26 | - /** |
|
27 | - * @param array $input |
|
28 | - * |
|
29 | - * @return \Robo\Task\Assets\Less|\Robo\Collection\CollectionBuilder |
|
30 | - */ |
|
26 | + /** |
|
27 | + * @param array $input |
|
28 | + * |
|
29 | + * @return \Robo\Task\Assets\Less|\Robo\Collection\CollectionBuilder |
|
30 | + */ |
|
31 | 31 | protected function taskLess($input) |
32 | 32 | { |
33 | 33 | return $this->task(Less::class, $input); |
@@ -168,16 +168,16 @@ |
||
168 | 168 | return $this; |
169 | 169 | } |
170 | 170 | |
171 | - /** |
|
172 | - * Add arbitrary code to execute as a task. |
|
173 | - * |
|
174 | - * @see \Robo\Collection\CollectionInterface::addCode |
|
175 | - * |
|
176 | - * @param callable $code |
|
177 | - * @param int|string $name |
|
178 | - * |
|
179 | - * @return $this |
|
180 | - */ |
|
171 | + /** |
|
172 | + * Add arbitrary code to execute as a task. |
|
173 | + * |
|
174 | + * @see \Robo\Collection\CollectionInterface::addCode |
|
175 | + * |
|
176 | + * @param callable $code |
|
177 | + * @param int|string $name |
|
178 | + * |
|
179 | + * @return $this |
|
180 | + */ |
|
181 | 181 | public function addCode(callable $code, $name = \Robo\Collection\CollectionInterface::UNNAMEDTASK) |
182 | 182 | { |
183 | 183 | $this->getCollection()->addCode($code, $name); |
@@ -309,7 +309,7 @@ |
||
309 | 309 | |
310 | 310 | /** |
311 | 311 | * @param string $functionName |
312 | - * @param int|string $stateKey |
|
312 | + * @param string $stateKey |
|
313 | 313 | * |
314 | 314 | * @return $this |
315 | 315 | */ |
@@ -6,9 +6,9 @@ |
||
6 | 6 | 'debug' => true, |
7 | 7 | 'cacheDir' => '/tmp', |
8 | 8 | 'includePaths' => [ |
9 | - __DIR__.'/../src', |
|
10 | - __DIR__.'/../vendor/symfony/process', |
|
11 | - __DIR__.'/../vendor/symfony/console', |
|
12 | - __DIR__.'/../vendor/henrikbjorn/lurker/src', |
|
9 | + __DIR__ . '/../src', |
|
10 | + __DIR__ . '/../vendor/symfony/process', |
|
11 | + __DIR__ . '/../vendor/symfony/console', |
|
12 | + __DIR__ . '/../vendor/henrikbjorn/lurker/src', |
|
13 | 13 | ] |
14 | 14 | ]); |
@@ -17,6 +17,9 @@ discard block |
||
17 | 17 | protected $capturedOutput; |
18 | 18 | protected $logger; |
19 | 19 | |
20 | + /** |
|
21 | + * @return \League\Container\ContainerInterface |
|
22 | + */ |
|
20 | 23 | public function initTestTasksTrait($commandClass = null, $container = null, $input = null) |
21 | 24 | { |
22 | 25 | if (!$container) { |
@@ -47,6 +50,9 @@ discard block |
||
47 | 50 | return $container; |
48 | 51 | } |
49 | 52 | |
53 | + /** |
|
54 | + * @return null|OutputInterface |
|
55 | + */ |
|
50 | 56 | public function capturedOutputStream() |
51 | 57 | { |
52 | 58 | if (!$this->testPrinter) { |
@@ -66,6 +72,9 @@ discard block |
||
66 | 72 | return $this->capturedOutput; |
67 | 73 | } |
68 | 74 | |
75 | + /** |
|
76 | + * @param string $value |
|
77 | + */ |
|
69 | 78 | public function assertOutputContains($value) |
70 | 79 | { |
71 | 80 | $output = $this->accumulate(); |
@@ -73,6 +82,9 @@ discard block |
||
73 | 82 | $this->assertContains($value, $output); |
74 | 83 | } |
75 | 84 | |
85 | + /** |
|
86 | + * @param string $value |
|
87 | + */ |
|
76 | 88 | public function assertOutputNotContains($value) |
77 | 89 | { |
78 | 90 | $output = $this->accumulate(); |
@@ -80,6 +92,9 @@ discard block |
||
80 | 92 | $this->assertNotContains($value, $output); |
81 | 93 | } |
82 | 94 | |
95 | + /** |
|
96 | + * @param string $value |
|
97 | + */ |
|
83 | 98 | public function assertOutputEquals($value) |
84 | 99 | { |
85 | 100 | $output = $this->accumulate(); |
@@ -90,6 +105,7 @@ discard block |
||
90 | 105 | /** |
91 | 106 | * Make our output comparisons more platform-agnostic by converting |
92 | 107 | * CRLF (Windows) or raw CR (confused output) to a LF (unix/Mac). |
108 | + * @param string $output |
|
93 | 109 | */ |
94 | 110 | protected function simplify($output) |
95 | 111 | { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | public function mktmpdir($basedir = false) |
48 | 48 | { |
49 | - $tempfile = tempnam($basedir ?: $this->testDir ?: sys_get_temp_dir(),'robo-tests'); |
|
49 | + $tempfile = tempnam($basedir ?: $this->testDir ?: sys_get_temp_dir(), 'robo-tests'); |
|
50 | 50 | unlink($tempfile); |
51 | 51 | mkdir($tempfile); |
52 | 52 | $this->tmpDirs[] = $tempfile; |
@@ -27,8 +27,7 @@ |
||
27 | 27 | foreach ($this->tmpDirs as $tmpDir) { |
28 | 28 | try { |
29 | 29 | $fs->remove($tmpDir); |
30 | - } |
|
31 | - catch (\Exception $e) { |
|
30 | + } catch (\Exception $e) { |
|
32 | 31 | // Ignore problems with removing fixtures. |
33 | 32 | } |
34 | 33 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * Create a new temporary directory. |
40 | 40 | * |
41 | 41 | * @param string|bool $basedir Where to store the temporary directory |
42 | - * @return type |
|
42 | + * @return string |
|
43 | 43 | */ |
44 | 44 | public function mktmpdir($basedir = false) |
45 | 45 | { |
@@ -61,6 +61,9 @@ discard block |
||
61 | 61 | return $targetSandbox; |
62 | 62 | } |
63 | 63 | |
64 | + /** |
|
65 | + * @param string $filename |
|
66 | + */ |
|
64 | 67 | public function dataFile($filename) |
65 | 68 | { |
66 | 69 | return $this->fixturesDir() . '/' . $filename; |
@@ -4,7 +4,7 @@ |
||
4 | 4 | trait loadTasks |
5 | 5 | { |
6 | 6 | /** |
7 | - * @param array|\Iterator $files |
|
7 | + * @param string[] $files |
|
8 | 8 | * |
9 | 9 | * @return \Robo\Task\File\Concat|\Robo\Collection\CollectionBuilder |
10 | 10 | */ |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * Sets the value from which direction and how much parent dirs should be included. |
137 | 137 | * Accepts a positive or negative integer or an array with two integer values. |
138 | 138 | * |
139 | - * @param int|int[] $parents |
|
139 | + * @param integer[] $parents |
|
140 | 140 | * |
141 | 141 | * @return $this |
142 | 142 | * |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | } |
199 | 199 | |
200 | 200 | /** |
201 | - * @param array $dirs |
|
201 | + * @param string[] $dirs |
|
202 | 202 | * |
203 | 203 | * @return array|\Robo\Result |
204 | 204 | * |
@@ -127,7 +127,7 @@ |
||
127 | 127 | */ |
128 | 128 | public function dirPermissions($permission) |
129 | 129 | { |
130 | - $this->chmod = (int) $permission; |
|
130 | + $this->chmod = (int)$permission; |
|
131 | 131 | |
132 | 132 | return $this; |
133 | 133 | } |
@@ -4,7 +4,7 @@ |
||
4 | 4 | trait loadTasks |
5 | 5 | { |
6 | 6 | /** |
7 | - * @param string|string[] $dirs |
|
7 | + * @param string[] $dirs |
|
8 | 8 | * |
9 | 9 | * @return \Robo\Task\Filesystem\CleanDir|\Robo\Collection\CollectionBuilder |
10 | 10 | */ |
@@ -40,7 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | $createRoboFile = new Command('init'); |
42 | 42 | $createRoboFile->setDescription("Intitalizes basic RoboFile in current dir"); |
43 | - $createRoboFile->setCode(function () use ($roboClass, $roboFile) { |
|
43 | + $createRoboFile->setCode(function() use ($roboClass, $roboFile) { |
|
44 | 44 | $output = Robo::output(); |
45 | 45 | $output->writeln("<comment> ~~~ Welcome to Robo! ~~~~ </comment>"); |
46 | 46 | $output->writeln("<comment> " . basename($roboFile) . " will be created in the current directory </comment>"); |