@@ -30,6 +30,9 @@ discard block |
||
| 30 | 30 | } |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param string $command |
|
| 35 | + */ |
|
| 33 | 36 | public function generateArgv($command) |
| 34 | 37 | { |
| 35 | 38 | return array_merge(['parking'], explode(' ', $command)); |
@@ -38,7 +41,7 @@ discard block |
||
| 38 | 41 | /** |
| 39 | 42 | * |
| 40 | 43 | * @param $input |
| 41 | - * @return array |
|
| 44 | + * @return string[] |
|
| 42 | 45 | */ |
| 43 | 46 | protected function parse($input) |
| 44 | 47 | { |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | if (!isset ($input[0])) { |
| 61 | 61 | throw new \Exception('Param required'); |
| 62 | 62 | } |
| 63 | - if (!is_file ($input[0])) { |
|
| 63 | + if (!is_file($input[0])) { |
|
| 64 | 64 | throw new \Exception('File invalid'); |
| 65 | 65 | } |
| 66 | 66 | } |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | */ |
| 54 | 54 | protected function validate($input) |
| 55 | 55 | { |
| 56 | - if (count ($input) < 2) { |
|
| 56 | + if (count($input) < 2) { |
|
| 57 | 57 | throw new \Exception('You need pass a plate and colour for park'); |
| 58 | 58 | } |
| 59 | 59 | } |