Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
50 | public function run(string $mode = null) : ?string |
||
51 | { |
||
52 | $parser = new Parser($this->_request); |
||
53 | $parser->init($mode); |
||
54 | |||
55 | /* run command */ |
||
56 | |||
57 | $argumentKey = $parser->getArgument(1); |
||
58 | $haltOnError = (bool)$parser->getOption('halt-on-error'); |
||
59 | if ($argumentKey === 'database') |
||
60 | { |
||
61 | return $this->_database() ? $this->success() : $this->error($haltOnError); |
||
62 | } |
||
63 | return $this->getHelp(); |
||
64 | } |
||
65 | |||
81 |