Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | public function dispatchNow(MessageInterface $query) |
||
42 | { |
||
43 | if (!$query instanceof QueryInterface) { |
||
44 | throw new InvalidArgumentException(sprintf( |
||
45 | 'Query "%s" should implement \Borobudur\Cqrs\Message\QueryInterface', |
||
46 | get_class($query) |
||
47 | )); |
||
48 | } |
||
49 | |||
50 | $results = parent::dispatchNow($query); |
||
|
|||
51 | |||
52 | if (null === $results) { |
||
53 | return null; |
||
54 | } |
||
55 | |||
56 | return $results; |
||
57 | } |
||
58 | |||
61 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.