| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function handle() |
||
| 25 | { |
||
| 26 | $this->setUp(); |
||
| 27 | |||
| 28 | $pathArray = collect(explode('.', $this->argument('path'))); |
||
| 29 | |||
| 30 | $filename = $pathArray->pop().'.php'; |
||
| 31 | |||
| 32 | $pathArray->prepend('bundles'); |
||
| 33 | |||
| 34 | $basePath = resource_path('lang'.DIRECTORY_SEPARATOR); |
||
| 35 | |||
| 36 | $path = $this->buildPath($pathArray->all(), $basePath); |
||
| 37 | |||
| 38 | $this->createFile($path, $filename); |
||
| 39 | |||
| 40 | $this->info('Bundle file successfully created!'); |
||
| 41 | } |
||
| 42 | |||
| 60 |