Test Failed
Push — master ( 542ea2...571167 )
by noitran
02:40
created
src/Criteria/OrderBy.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,12 +44,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.