| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | private function loadTheConsoles($directory) |
||
| 41 | { |
||
| 42 | if (File::isDirectory($directory)) { |
||
| 43 | |||
| 44 | $files = File::allFiles($directory); |
||
| 45 | |||
| 46 | foreach ($files as $consoleFile) { |
||
| 47 | |||
| 48 | $consoleClass = ShipButler::getClassFullNameFromFile($consoleFile->getPathname()); |
||
| 49 | |||
| 50 | // when user from the Main Service Provider, which extends Laravel |
||
| 51 | // service provider you get access to `$this->commands` |
||
| 52 | $this->commands([$consoleClass]); |
||
| 53 | } |
||
| 54 | |||
| 55 | } |
||
| 56 | } |
||
| 57 | |||
| 60 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.