| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | protected function handle() |
||
| 26 | { |
||
| 27 | $this->call('router:clear'); |
||
| 28 | |||
| 29 | $app = $this->getByticApp(); |
||
| 30 | $configPath = $app->getCachedRoutesPath(); |
||
|
|
|||
| 31 | |||
| 32 | $router = $this->getFromContainer('router'); |
||
| 33 | $router->setOption('cache_dir', $configPath); |
||
| 34 | |||
| 35 | $matcher = $router->getMatcher(); |
||
| 36 | |||
| 37 | $this->info('Routes cached successfully!'); |
||
| 38 | |||
| 39 | return 0; |
||
| 40 | } |
||
| 42 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.