1 | <?php |
||
15 | class RequireDependency extends Base |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | protected $action = 'require'; |
||
21 | |||
22 | /** |
||
23 | * 'require' is a keyword, so it cannot be a method name. |
||
24 | * |
||
25 | * @param string $project |
||
26 | * @param null|string $version |
||
27 | * |
||
28 | * @return $this |
||
29 | */ |
||
30 | public function dependency($project, $version = null) |
||
45 | |||
46 | /** |
||
47 | * adds `no-suggest` option to composer |
||
48 | * |
||
49 | * @param bool $noSuggest |
||
50 | * |
||
51 | * @return $this |
||
52 | */ |
||
53 | public function noSuggest($noSuggest = true) |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function run() |
||
68 | } |
||
69 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.