Completed
Push — master ( a3e240...a8dd61 )
by
unknown
06:31
created
src/Repository/Criteria/SearchCriteria.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@
 block discarded – undo
41 41
         $columnRelation = explode('.', $column);
42 42
 
43 43
         if ($or) {
44
-            $query->orWhereHas($columnRelation[0], function ($subquery) use ($columnRelation) {
44
+            $query->orWhereHas($columnRelation[0], function($subquery) use ($columnRelation) {
45 45
                 $subquery->where($columnRelation[1], 'LIKE', '%'.$this->queryString.'%');
46 46
             });
47 47
         } else {
48
-            $query->whereHas($columnRelation[0], function ($subquery) use ($columnRelation) {
48
+            $query->whereHas($columnRelation[0], function($subquery) use ($columnRelation) {
49 49
                 $subquery->where($columnRelation[1], 'LIKE', '%'.$this->queryString.'%');
50 50
             });
51 51
         }
Please login to merge, or discard this patch.
src/Http/Controllers/HomeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
             $modelAbstractor = $modelFactory->getByName($modelSlug);
24 24
             $config = $modelAbstractor->getConfig();
25 25
 
26
-            if (! array_key_exists('authorize', $config) || ( $config['authorize'] === true && Gate::allows('adminIndex', $modelAbstractor->getInstance()) ||  $config['authorize'] === false )) {
26
+            if (!array_key_exists('authorize', $config) || ($config['authorize'] === true && Gate::allows('adminIndex', $modelAbstractor->getInstance()) || $config['authorize'] === false)) {
27 27
                 return new RedirectResponse(route('anavel-crud.model.index', $modelSlug));
28 28
             }
29 29
 
Please login to merge, or discard this patch.
src/Abstractor/Eloquent/Relation/Relation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function getDisplay()
85 85
     {
86
-        if (! empty($this->config['display'])) {
86
+        if (!empty($this->config['display'])) {
87 87
             return $this->config['display'];
88 88
         }
89 89
         return null;
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
     public function getPresentation()
93 93
     {
94
-        return $this->presentation ? : ucfirst(str_replace('_', ' ', $this->name));
94
+        return $this->presentation ?: ucfirst(str_replace('_', ' ', $this->name));
95 95
     }
96 96
 
97 97
     public function getType()
Please login to merge, or discard this patch.