Completed
Push — master ( 3f296a...337f79 )
by Adrian
11:40 queued 04:56
created
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/View/Composers/SidebarComposer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,13 +60,13 @@
 block discarded – undo
60 60
             } catch (\Exception $e) {
61 61
                 continue;
62 62
             }
63
-            $menuItems[$modelName]['isActive'] =  $item['isActive'];
63
+            $menuItems[$modelName]['isActive'] = $item['isActive'];
64 64
             $menuItems[$modelName]['name'] = $item['name'];
65 65
             $menuItems[$modelName]['items'][] = $item;
66 66
         }
67 67
 
68 68
         //Sort alphabetically de menu items
69
-        usort($menuItems, function ($itemA, $itemB) {
69
+        usort($menuItems, function($itemA, $itemB) {
70 70
             return strcmp($itemA['name'], $itemB['name']);
71 71
         });
72 72
         return $menuItems;
Please login to merge, or discard this patch.
src/Abstractor/Eloquent/Relation/MiniCrudSingle.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
         $this->readConfig('edit');
50 50
 
51
-        if (! empty($columns)) {
51
+        if (!empty($columns)) {
52 52
             //Add field for model deletion
53 53
             $config = [
54 54
                 'name' => '__delete',
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
                 $config = [
76 76
                     'name'         => $columnName,
77
-                    'presentation' => $this->name . ' ' . ucfirst(transcrud($columnName)),
77
+                    'presentation' => $this->name.' '.ucfirst(transcrud($columnName)),
78 78
                     'form_type'    => $formType,
79 79
                     'no_validate'  => true,
80 80
                     'validation'   => null,
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
                     ->setConfig($config)
90 90
                     ->get();
91 91
 
92
-                if (! empty($result->id)) {
92
+                if (!empty($result->id)) {
93 93
                     $field->setValue($result->getAttribute($columnName));
94 94
                 }
95 95
 
@@ -109,9 +109,9 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function persist(array $relationArray = null, Request $request)
111 111
     {
112
-        if (! empty($relationArray)) {
112
+        if (!empty($relationArray)) {
113 113
             $currentRelation = $this->eloquentRelation->getResults();
114
-            if (! empty($currentRelation)) {
114
+            if (!empty($currentRelation)) {
115 115
                 $relationModel = $currentRelation;
116 116
             } else {
117 117
                 $relationModel = $this->eloquentRelation->getRelated()->newInstance();
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                 $relationModel->setAttribute($fieldKey, $fieldValue);
134 134
             }
135 135
 
136
-            if (! $shouldBeSkipped) {
136
+            if (!$shouldBeSkipped) {
137 137
                 $relationModel->save();
138 138
             }
139 139
         }
Please login to merge, or discard this patch.