Conditions | 2 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public static function where($where_sql = false, $params = [], $flush = false){ |
||
17 | $key = static::persistenceOptions('key'); |
||
18 | |||
19 | return SQL::reduce("SELECT {$key} FROM " . static::persistenceOptions('table') . ($where_sql ? " where {$where_sql}" : ''), $params, function($results, $row) use ($key) { |
||
20 | $results[] = static::load($row->{$key}); |
||
21 | return $results; |
||
22 | }, []); |
||
23 | } |
||
24 | |||
48 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.