@@ -261,7 +261,7 @@  | 
                                                    ||
| 261 | 261 | * @return TableSelectEntity  | 
                                                        
| 262 | 262 | */  | 
                                                        
| 263 | 263 | private function getSelectEntity(string $table, array $columns, array $fields, array $select,  | 
                                                        
| 264 | - array $group, array $where, array $order, array $unselected, int $limit, int $page): TableSelectEntity  | 
                                                        |
| 264 | + array $group, array $where, array $order, array $unselected, int $limit, int $page): TableSelectEntity  | 
                                                        |
| 265 | 265 |      { | 
                                                        
| 266 | 266 | $select2 = $select;  | 
                                                        
| 267 | 267 | $group2 = $group;  | 
                                                        
@@ -25,7 +25,7 @@ discard block  | 
                                                    ||
| 25 | 25 |      { | 
                                                        
| 26 | 26 | return [  | 
                                                        
| 27 | 27 | 'select' => $select,  | 
                                                        
| 28 | - 'values' => (array)$options["columns"],  | 
                                                        |
| 28 | + 'values' => (array) $options["columns"],  | 
                                                        |
| 29 | 29 | 'columns' => $columns,  | 
                                                        
| 30 | 30 | 'functions' => $this->driver->functions(),  | 
                                                        
| 31 | 31 | 'grouping' => $this->driver->grouping(),  | 
                                                        
@@ -49,7 +49,7 @@ discard block  | 
                                                    ||
| 49 | 49 | }  | 
                                                        
| 50 | 50 | return [  | 
                                                        
| 51 | 51 | // 'where' => $where,  | 
                                                        
| 52 | - 'values' => (array)$options["where"],  | 
                                                        |
| 52 | + 'values' => (array) $options["where"],  | 
                                                        |
| 53 | 53 | 'columns' => $columns,  | 
                                                        
| 54 | 54 | 'indexes' => $indexes,  | 
                                                        
| 55 | 55 | 'operators' => $this->driver->operators(),  | 
                                                        
@@ -68,8 +68,8 @@ discard block  | 
                                                    ||
| 68 | 68 | private function getSortingOptions(array $columns, array $options): array  | 
                                                        
| 69 | 69 |      { | 
                                                        
| 70 | 70 | $values = [];  | 
                                                        
| 71 | - $descs = (array)$options["desc"];  | 
                                                        |
| 72 | -        foreach ((array)$options["order"] as $key => $value) { | 
                                                        |
| 71 | + $descs = (array) $options["desc"];  | 
                                                        |
| 72 | +        foreach ((array) $options["order"] as $key => $value) { | 
                                                        |
| 73 | 73 | $values[] = [  | 
                                                        
| 74 | 74 | 'col' => $value,  | 
                                                        
| 75 | 75 | 'desc' => $descs[$key] ?? 0,  | 
                                                        
@@ -329,8 +329,8 @@  | 
                                                    ||
| 329 | 329 | */  | 
                                                        
| 330 | 330 | public function execSelect(string $table, array $queryOptions): array  | 
                                                        
| 331 | 331 |      { | 
                                                        
| 332 | - list(, $query, $select, $fields, , , $indexes, $where, $group, , $limit, $page,  | 
                                                        |
| 333 | - $textLength, , $unselected) = $this->prepareSelect($table, $queryOptions);  | 
                                                        |
| 332 | + list(, $query, $select, $fields,,, $indexes, $where, $group,, $limit, $page,  | 
                                                        |
| 333 | + $textLength,, $unselected) = $this->prepareSelect($table, $queryOptions);  | 
                                                        |
| 334 | 334 | |
| 335 | 335 | list($rows, $duration) = $this->executeQuery($query, $page);  | 
                                                        
| 336 | 336 |          if (!$rows) { |