| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | trait OrderByTrait |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @param SelectQuery $query |
||
| 17 | * @param string $table Table name to be automatically inserted into where conditions at place of {@}. |
||
| 18 | * @param array $order Associative array where the keys are field names |
||
| 19 | * and the values are ASC or DESC strings |
||
| 20 | * @return SelectQuery |
||
| 21 | */ |
||
| 22 | private function setOrderBy(SelectQuery $query, string $table, array $order = []): SelectQuery |
||
| 33 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.