| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 42 | { |
||
| 43 | if($this->driver !== 'pdo'){ |
||
| 44 | throw new \Exception('This command is avaliable only with PDO driver'); |
||
| 45 | } |
||
| 46 | |||
| 47 | $cache = $this->createClient($this->driver, $this->parameters); |
||
| 48 | |||
| 49 | try { |
||
| 50 | $cache->getRepository()->createSchema(); |
||
|
|
|||
| 51 | |||
| 52 | $output->writeln('<fg=red>['.$this->driver.'] Schema was successful created.</>'); |
||
| 53 | } catch (\Exception $e) { |
||
| 54 | $output->writeln('<fg=red>['.$this->driver.'] Error in schema creation: '.$e->getMessage().' .</>'); |
||
| 55 | } |
||
| 58 |
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.