Conditions | 3 |
Paths | 5 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function __invoke(Query $query, callable $next = null) : QueryResponse |
||
35 | { |
||
36 | $response = EmptyResponse::create(); |
||
37 | |||
38 | try { |
||
39 | if (null !== $next) { |
||
40 | $this->preQueryLog($query); |
||
41 | $response = $next($query); |
||
42 | $this->postQueryLog($query); |
||
43 | |||
44 | return $response; |
||
45 | } |
||
46 | } catch (Exception $e) { |
||
47 | $this->logException($e); |
||
48 | } |
||
49 | |||
50 | return $response; |
||
51 | } |
||
52 | |||
77 |