Passed
Push — master ( d8d1ae...32b02d )
by Iman
06:59
created
src/Modules/StatisticModule/statistic_route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
     'middleware' => ['web', \crocodicstudio\crudbooster\CBCoreModule\middlewares\CBSuperadmin::class],
5 5
     'prefix' => cbAdminPath(),
6 6
     'namespace' => cbModulesNS('StatisticModule'),
7
-], function () {
7
+], function() {
8 8
     Route::get('statistic-builder/', 'AdminStatisticBuilderController@getIndex')->name('AdminStatisticBuilderControllerGetIndex');
9 9
     Route::get('statistic-builder/show-dashboard', 'AdminStatisticBuilderController@getShowDashboard')->name('AdminStatisticBuilderControllerGetShowDashboard');
10 10
     Route::get('statistic-builder/show', 'AdminStatisticBuilderController@getShow')->name('AdminStatisticBuilderControllerGetShow');
Please login to merge, or discard this patch.
src/CBCoreModule/Installer/InstallationCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
         $printer->printHeader();
36 36
 
37
-        if (! ((new RequirementChecker($this))->check())) {
37
+        if (!((new RequirementChecker($this))->check())) {
38 38
             $this->info('Sorry unfortunately your system is not meet with our requirements !');
39 39
             $printer->printFooter(false);
40 40
             $this->info('--');
Please login to merge, or discard this patch.
src/helpers/CRUDBooster.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     {
76 76
         $table = self::parseSqlTable($table)['table'];
77 77
 
78
-        if (! is_array($id)) {
78
+        if (!is_array($id)) {
79 79
             $id = [DbInspector::findPK($table) => $id];
80 80
         }
81 81
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $controllerName = basename($controllerName);
95 95
         $routeUrl = route($controllerName.'GetIndex');
96 96
 
97
-        if (! $path) {
97
+        if (!$path) {
98 98
             return trim($routeUrl, '/');
99 99
         }
100 100
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     {
120 120
         $tables = DbInspector::listTables();
121 121
 
122
-        $filter = function ($tableName) {
122
+        $filter = function($tableName) {
123 123
 
124 124
             if ($tableName == config('database.migrations')) {
125 125
                 return false;
Please login to merge, or discard this patch.
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/Modules/PrivilegeModule/PrivilegeHelpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
     {
105 105
         $roleId = cbUser()->cms_roles_id;
106 106
 
107
-        return cache()->rememberForever('cb_admin_privileges_roles'. $roleId, function () use ($roleId) {
107
+        return cache()->rememberForever('cb_admin_privileges_roles'.$roleId, function() use ($roleId) {
108 108
             return \DB::table('cms_roles_privileges')->where('cms_roles_id', $roleId)->join('cms_modules', 'cms_modules.id', '=', 'cms_roles_privileges.cms_modules_id')->select('cms_modules.name', 'cms_modules.path', 'can_see_module', 'can_create', 'can_read', 'can_edit', 'can_delete')->get() ?: [];
109 109
         });
110 110
     }
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.