Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
23 | public function handle($message, callable $next) |
||
24 | { |
||
25 | if ($message instanceof SpecificationQuery && !($message instanceof ObviousSpecificationQuery)) { |
||
26 | $message = new ObviousSpecificationQuery( |
||
27 | $message->getEntity(), |
||
28 | $message->getSpec(), |
||
29 | $message->getModifier() |
||
30 | ); |
||
31 | } |
||
32 | |||
33 | return $next($message); |
||
34 | } |
||
35 | } |
||
36 |