| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class PrincipalUpdate extends Command |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $parameters; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param ArrayableInterface $principal |
||
| 24 | */ |
||
| 25 | public function __construct(ArrayableInterface $principal) |
||
| 26 | { |
||
| 27 | $this->parameters = [ |
||
| 28 | 'action' => 'principal-update', |
||
| 29 | ]; |
||
| 30 | |||
| 31 | $this->parameters += $principal->toArray(); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | * |
||
| 37 | * @return bool |
||
| 38 | */ |
||
| 39 | protected function process() |
||
| 55 | } |
||
| 56 | } |
||
| 57 |
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.