Conditions | 5 |
Paths | 3 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 30 |
Changes | 0 |
1 | <?php |
||
34 | protected function queryHasLocalizableColumn(Builder $builder) |
||
35 | { |
||
36 | $wheres = $builder->getQuery()->wheres; |
||
37 | $column = $this->getLocalizableColumn($builder); |
||
38 | if (! empty($wheres)) { |
||
39 | foreach ($wheres as $where) { |
||
40 | if (isset($where['column']) && $where['column'] === $column) { |
||
41 | return true; |
||
42 | } |
||
43 | } |
||
44 | } |
||
45 | |||
46 | return false; |
||
47 | } |
||
48 | |||
64 |