These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | use Robo\Result; |
||
4 | use Robo\Task\BaseTask; |
||
5 | |||
6 | /** |
||
7 | * A test task file. Used for testig documentation generation. |
||
8 | * |
||
9 | * ``` php |
||
10 | * <?php |
||
11 | * $this->taskTestedRoboTask([ |
||
12 | * 'web/assets/screen.css', |
||
13 | * 'web/assets/print.css', |
||
14 | * 'web/assets/theme.css' |
||
15 | * ]) |
||
16 | * ->to('web/assets/style.css') |
||
17 | * ->run() |
||
18 | * ?> |
||
19 | * ``` |
||
20 | */ |
||
21 | class TestedRoboTask extends BaseTask |
||
22 | { |
||
23 | /** |
||
24 | * @var array|Iterator files |
||
25 | */ |
||
26 | protected $files; |
||
27 | |||
28 | /** |
||
29 | * @var string dst |
||
30 | */ |
||
31 | protected $dst; |
||
32 | |||
33 | /** |
||
34 | * Constructor. This should not be documented |
||
35 | * |
||
36 | * @param array|Iterator $files |
||
37 | */ |
||
38 | public function __construct() |
||
39 | { |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Set the destination file |
||
44 | * |
||
45 | * @param string $dst |
||
46 | * |
||
47 | * @return Concat The current instance |
||
48 | */ |
||
49 | public function to($dst) |
||
0 ignored issues
–
show
|
|||
50 | { |
||
51 | return $this; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function run() |
||
58 | { |
||
59 | return Result::success($this); |
||
60 | } |
||
61 | } |
||
62 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.