| Conditions | 4 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | public function handleQuery(Query $query, callable $next, callable $first) |
||
| 49 | { |
||
| 50 | $queryData = $query->getAllData(); |
||
| 51 | foreach ($this->data as $key => $value) { |
||
| 52 | if ($this->force || !array_key_exists($key, $queryData)) { |
||
| 53 | $query = $query->withData($key, $value); |
||
| 54 | } |
||
| 55 | } |
||
| 56 | |||
| 57 | return $next($query); |
||
| 58 | } |
||
| 59 | } |
||
| 60 |