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