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