| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | protected function getPaths(InputInterface $input): array |
||
| 38 | { |
||
| 39 | $helper = new PathHelper($input->getArgument('path')); |
||
| 40 | |||
| 41 | // When run in global we should transform path to absolute path |
||
| 42 | if ($this->plugin->isGlobal()) { |
||
| 43 | /** @var string $working */ |
||
| 44 | $working = $this->getApplication()->getInitialWorkingDirectory(); |
||
| 45 | $helper = $helper->toAbsolutePath($working); |
||
| 46 | } |
||
| 47 | |||
| 48 | return $helper->isWildCard() ? $helper->getPathsFromWildcard() : [$helper]; |
||
| 49 | } |
||
| 51 |