Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Tests | 15 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
23 | 8 | protected function configure() |
|
24 | { |
||
25 | $this |
||
26 | 8 | ->setName('set-up-server') |
|
27 | 8 | ->addArgument( |
|
28 | 8 | 'host-with-port', |
|
29 | 8 | InputArgument::REQUIRED, |
|
30 | 8 | 'Host to listen for connections, for example my-project.docker:443' |
|
31 | ) |
||
32 | 8 | ->addArgument( |
|
33 | 8 | 'remote-root', |
|
34 | 8 | InputArgument::REQUIRED, |
|
35 | 8 | 'Path to root project directory inside server (or docker container), for example /project' |
|
36 | ) |
||
37 | 8 | ->addArgument( |
|
38 | 8 | 'project-root-dir', |
|
39 | 8 | InputArgument::OPTIONAL, |
|
40 | 8 | 'Project root directory in host machine. Default is current directory' |
|
41 | ) |
||
42 | ; |
||
43 | 8 | } |
|
44 | |||
63 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.