| Total Complexity | 5 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Builder extends Base |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The maximum number of records to return per group. |
||
| 11 | * |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | public $groupLimit; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Add a "group limit" clause to the query. |
||
| 18 | * |
||
| 19 | * @param int $value |
||
| 20 | * @param string $column |
||
| 21 | * @return $this |
||
| 22 | */ |
||
| 23 | 116 | public function groupLimit($value, $column) |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Execute the query as a "select" statement. |
||
| 34 | * |
||
| 35 | * @param array $columns |
||
| 36 | * @return \Illuminate\Support\Collection |
||
| 37 | */ |
||
| 38 | 128 | public function get($columns = ['*']) |
|
| 61 |
This check marks implicit conversions of arrays to boolean values in a comparison. While in PHP an empty array is considered to be equal (but not identical) to false, this is not always apparent.
Consider making the comparison explicit by using
empty(..)or! empty(...)instead.