| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function getInputCommand(Route $route) |
||
| 38 | { |
||
| 39 | $matches = $route->getMatches(); |
||
| 40 | $inputCommand = 'migrations:generate'; |
||
| 41 | |||
| 42 | if (is_array($matches)) { |
||
| 43 | $params = []; |
||
| 44 | $params = $this->applyBooleanParams($params, $matches); |
||
| 45 | if (! empty($params)) { |
||
| 46 | $inputCommand .= ' ' . implode(' ', $params); |
||
| 47 | } |
||
| 48 | } |
||
| 49 | return $inputCommand; |
||
| 50 | } |
||
| 51 | } |