@@ -44,12 +44,12 @@ discard block |
||
| 44 | 44 | public function setOrderByParameters($orderBy): void |
| 45 | 45 | { |
| 46 | 46 | |
| 47 | - [$column, $direction] = explode(',', $orderBy); |
|
| 47 | + [ $column, $direction ] = explode(',', $orderBy); |
|
| 48 | 48 | |
| 49 | 49 | $this->column = $column; |
| 50 | 50 | $this->direction = $direction ?? 'asc'; |
| 51 | 51 | |
| 52 | - if (! \in_array($this->direction, ['asc', 'desc'])) { |
|
| 52 | + if (!\in_array($this->direction, [ 'asc', 'desc' ])) { |
|
| 53 | 53 | $this->direction = 'asc'; |
| 54 | 54 | } |
| 55 | 55 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | return $model; |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | - if (! preg_match($this->allowedToContain, $this->column)) { |
|
| 71 | + if (!preg_match($this->allowedToContain, $this->column)) { |
|
| 72 | 72 | throw new ValidationException('OrderBy query parameter contains illegal characters.'); |
| 73 | 73 | } |
| 74 | 74 | |