Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3.3332 |
Changes | 0 |
1 | <?php |
||
64 | 2 | public function apply($model, RepositoryInterface $repository): Builder |
|
65 | { |
||
66 | 2 | if (empty($this->column)) { |
|
67 | return $model; |
||
68 | } |
||
69 | |||
70 | 2 | if (! preg_match($this->allowedToContain, $this->column)) { |
|
71 | throw new ValidationException('OrderBy query parameter contains illegal characters.'); |
||
72 | } |
||
73 | |||
74 | // @todo Implement |
||
75 | |||
76 | 2 | return $model; |
|
77 | } |
||
79 |