Passed
Push — master ( e8d451...9db9c5 )
by Ferry
05:38 queued 02:28
created
src/CBCoreModule/ViewHelpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     {
9 9
         @$get = $_GET;
10 10
 
11
-        if (! $get) {
11
+        if (!$get) {
12 12
             return '';
13 13
         }
14 14
         if (is_array($exception)) {
Please login to merge, or discard this patch.
src/Modules/AuthModule/CbAuthServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function boot()
15 15
     {
16 16
         $this->app['view']->addNamespace('CbAuth', __DIR__.'/views');
17
-        $this->loadRoutesFrom( __DIR__.'/auth_routes.php');
17
+        $this->loadRoutesFrom(__DIR__.'/auth_routes.php');
18 18
         $this->loadMigrationsFrom(__DIR__.'/migrations');
19 19
     }
20 20
 
Please login to merge, or discard this patch.
src/Modules/ModuleGenerator/CreateMenuForNewModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      * @param $name
39 39
      * @param $ctrl
40 40
      */
41
-    private function createAddLinkSubmenu($arr , $name, $ctrl)
41
+    private function createAddLinkSubmenu($arr, $name, $ctrl)
42 42
     {
43 43
         $this->table()->insert([
44 44
                 'name' => cbTrans('text_default_add_new_module', ['module' => $name]),
Please login to merge, or discard this patch.
src/Modules/PrivilegeModule/AdminPrivilegesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
         $this->findRow($id)->update($this->arr);
99 99
         foreach (request('privileges', []) as $moduleId => $data) {
100
-            $arrs = array_get_keys($data, ['can_see_module', 'can_create', 'can_read', 'can_edit', 'can_delete',], 0);
100
+            $arrs = array_get_keys($data, ['can_see_module', 'can_create', 'can_read', 'can_edit', 'can_delete', ], 0);
101 101
             $this->savePermissions($id, $moduleId, $arrs);
102 102
         }
103 103
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
             [
171 171
                 'label' => 'Superadmin',
172 172
                 'name' => 'is_superadmin',
173
-                'callback' => function ($row) {
173
+                'callback' => function($row) {
174 174
                     return ($row->is_superadmin) ? "<span class='label label-success'>Superadmin</span>" : "<span class='label label-default'>Standard</span>";
175 175
                 },
176 176
             ],
Please login to merge, or discard this patch.
src/controllers/CBController/FormSubmitHandlers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             $type = $form['type'] ?: 'text';
25 25
             $inputdata = request($name);
26 26
 
27
-            if (! $name || in_array($name, $hide_form) || $form['exception']) {
27
+            if (!$name || in_array($name, $hide_form) || $form['exception']) {
28 28
                 continue;
29 29
             }
30 30
 
Please login to merge, or discard this patch.
src/Modules/SettingModule/SettingRepo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 {
7 7
     public static function getSetting($name)
8 8
     {
9
-        return cache()->rememberForever('crudbooster_setting_'.$name, function () use($name) {
9
+        return cache()->rememberForever('crudbooster_setting_'.$name, function() use($name) {
10 10
             return self::table()->where('name', $name)->first()->content;
11 11
         });
12 12
     }
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     {
16 16
         foreach ($data as $row) {
17 17
             $count = self::table()->where('name', $row['name'])->count();
18
-            if (! $count) {
18
+            if (!$count) {
19 19
                 self::table()->insert($row);
20 20
                 continue;
21 21
             }
Please login to merge, or discard this patch.
src/CBCoreModule/middlewares/CBSuperadmin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,9 +22,9 @@
 block discarded – undo
22 22
             return redirect(url($adminPath.'/login'))->with('message', cbTrans('not_logged_in'));
23 23
         }
24 24
 
25
-        if(!CRUDBooster::isSuperadmin()) {
25
+        if (!CRUDBooster::isSuperadmin()) {
26 26
             event('cb.unauthorizedTryToSuperAdminArea', [cbUser(), request()->fullUrl()]);
27
-            return redirect($adminPath)->with(['message'=> cbTrans('denied_access'),'message_type'=>'warning']);
27
+            return redirect($adminPath)->with(['message'=> cbTrans('denied_access'), 'message_type'=>'warning']);
28 28
         }
29 29
 
30 30
         return $next($request);
Please login to merge, or discard this patch.
src/CBCoreModule/Index/FilterIndexRows.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $filterColumn = $this->filterFalsyValues($filterColumn);
34 34
 
35
-        $this->query->where(function ($query) use ($filterColumn) {
35
+        $this->query->where(function($query) use ($filterColumn) {
36 36
             foreach ($filterColumn as $key => $fc) {
37 37
 
38 38
                 $value = array_get($fc, 'value');
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
                     case 'in':
56 56
                     case 'not in':
57 57
                         $value = explode(',', $value);
58
-                        if (! empty($value)) {
58
+                        if (!empty($value)) {
59 59
                             $query->whereIn($key, $value);
60 60
                         }
61 61
                         break;
@@ -97,11 +97,11 @@  discard block
 block discarded – undo
97 97
      */
98 98
     private function filterFalsyValues($filterColumn)
99 99
     {
100
-        return array_filter($filterColumn, function ($fc) {
100
+        return array_filter($filterColumn, function($fc) {
101 101
             $value = array_get($fc, 'value');
102 102
             $type = array_get($fc, 'type');
103 103
 
104
-            if (($type == 'between') || ! $value || ! $type) {
104
+            if (($type == 'between') || !$value || !$type) {
105 105
                 return false;
106 106
             }
107 107
 
Please login to merge, or discard this patch.
src/CBCoreModule/Index/RowContent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         //LISTING INDEX HTML
111 111
         $addAction = $this->cb->data['addAction'];
112 112
 
113
-        if (! empty($this->cb->sub_module)) {
113
+        if (!empty($this->cb->sub_module)) {
114 114
             $addAction = $this->_handleSubModules($addAction);
115 115
         }
116 116
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         return CRUDBooster::adminPath($module['path']).'?parent_table='.$parentTable.'&parent_columns='
159 159
             .$module['parent_columns'].'&parent_columns_alias='
160 160
             .$module['parent_columns_alias'].'&parent_id=['
161
-            .(! isset($module['custom_parent_id']) ? "id" : $module['custom_parent_id'])
161
+            .(!isset($module['custom_parent_id']) ? "id" : $module['custom_parent_id'])
162 162
             .']&return_url='.urlencode(request()->fullUrl()).'&foreign_key='
163 163
             .$module['foreign_key'].'&label='.urlencode($module['label']);
164 164
     }
Please login to merge, or discard this patch.