| @@ 60-70 (lines=11) @@ | ||
| 57 | * @param string $binariesPath Composer binaries path. |
|
| 58 | * @param array $arguments command line arguments. |
|
| 59 | */ |
|
| 60 | public function __construct(CLImate $climate, $binariesPath, array $arguments) |
|
| 61 | { |
|
| 62 | $this->cli = $climate; |
|
| 63 | $this->cli->description($this->getDescription()); |
|
| 64 | $this->cli->arguments->add($this->getArguments()); |
|
| 65 | $this->cli->arguments->parse($arguments); |
|
| 66 | ||
| 67 | $this->arguments = $arguments; |
|
| 68 | $this->binariesPath = $binariesPath; |
|
| 69 | $this->setAnalysedPathsFromString($this->getArgumentValue('path')); |
|
| 70 | } |
|
| 71 | ||
| 72 | /** |
|
| 73 | * Run Code-Analyser command. |
|
| @@ 60-70 (lines=11) @@ | ||
| 57 | * @param string $binariesPath Composer binaries path. |
|
| 58 | * @param array $arguments command line arguments. |
|
| 59 | */ |
|
| 60 | public function __construct(CLImate $climate, $binariesPath, array $arguments) |
|
| 61 | { |
|
| 62 | $this->cli = $climate; |
|
| 63 | $this->cli->description($this->getDescription()); |
|
| 64 | $this->cli->arguments->add($this->getArguments()); |
|
| 65 | $this->cli->arguments->parse($arguments); |
|
| 66 | ||
| 67 | $this->arguments = $arguments; |
|
| 68 | $this->binariesPath = $binariesPath; |
|
| 69 | $this->setAnalysedPathsFromString($this->getArgumentValue('path')); |
|
| 70 | } |
|
| 71 | ||
| 72 | /** |
|
| 73 | * Run Code-Analyser command. |
|