Completed
Push — master ( d0fcc8...c6c542 )
by Pavel
02:20
created
src/LaravelDoctrine/Rest/Traits/WithRestAbilities.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      *
58 58
      * @return bool
59 59
      */
60
-    public function restDelete($user,  /** @scrutinizer ignore-unused */$entity)
60
+    public function restDelete($user, /** @scrutinizer ignore-unused */$entity)
61 61
     {
62 62
         return $this->defaultRestAccess($user);
63 63
     }
Please login to merge, or discard this patch.
src/LaravelDoctrine/Rest/RestRequest.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,18 +31,18 @@
 block discarded – undo
31 31
     {
32 32
         if ($sort = $this->input('sort')) {
33 33
             $fields = explode(',', $sort);
34
-            $orderBy = [];
34
+            $orderBy = [ ];
35 35
 
36 36
             foreach ($fields as $field) {
37 37
                 if (empty($field)) continue;
38 38
 
39 39
                 $direction = 'ASC';
40
-                if ($field[0] === '-') {
40
+                if ($field[ 0 ] === '-') {
41 41
                     $field = substr($field, 1);
42 42
                     $direction = 'DESC';
43 43
                 }
44 44
 
45
-                $orderBy[$field] = $direction;
45
+                $orderBy[ $field ] = $direction;
46 46
             }
47 47
 
48 48
             return $orderBy;
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,9 @@
 block discarded – undo
60 60
             $orderBy = [];
61 61
 
62 62
             foreach ($fields as $field) {
63
-                if (empty($field)) continue;
63
+                if (empty($field)) {
64
+                    continue;
65
+                }
64 66
 
65 67
                 $direction = 'ASC';
66 68
                 if ($field[0] === '-') {
Please login to merge, or discard this patch.
src/LaravelDoctrine/Rest/RestController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
      */
94 94
     protected function getFilterable()
95 95
     {
96
-        return [];
96
+        return [ ];
97 97
     }
98 98
 
99 99
     /**
Please login to merge, or discard this patch.