Passed
Pull Request — master (#1239)
by
unknown
05:35
created
src/Modules/NotificationsModule/AdminNotificationsController.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,17 +43,17 @@
 block discarded – undo
43 43
                 "label" => "Content",
44 44
                 "name" => "content",
45 45
                 "callback"=>function($row) {
46
-                    return cbAnchor($read_notification_url.'/'.$row->id,$row->content);
46
+                    return cbAnchor($read_notification_url.'/'.$row->id, $row->content);
47 47
                 }                
48 48
             ],
49 49
             [
50 50
                 'label' => 'Read',
51 51
                 'name' => 'can_read',
52 52
                 "callback"=>function($row) {
53
-                    if($row->can_read) {
54
-                        return CSSBootstrap::label('Already Read','success');
55
-                    }else{
56
-                        return CSSBootstrap::label('New','danger');
53
+                    if ($row->can_read) {
54
+                        return CSSBootstrap::label('Already Read', 'success');
55
+                    } else {
56
+                        return CSSBootstrap::label('New', 'danger');
57 57
                     }
58 58
                 }                
59 59
             ],
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
                 "callback"=>function($row) {
53 53
                     if($row->can_read) {
54 54
                         return CSSBootstrap::label('Already Read','success');
55
-                    }else{
55
+                    } else{
56 56
                         return CSSBootstrap::label('New','danger');
57 57
                     }
58 58
                 }                
Please login to merge, or discard this patch.
src/Modules/ApiGeneratorModule/CbApiGeneratorServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     {
16 16
         $this->app['view']->addNamespace('CbApiGen', __DIR__.'/views');
17 17
         $this->loadRoutesFrom(__DIR__.'/CbApiGeneratorRoutes.php');
18
-        $this->loadMigrationsFrom(__DIR__ . '/migrations');
18
+        $this->loadMigrationsFrom(__DIR__.'/migrations');
19 19
         app('CbDynamicMenus')->addSuperAdminMenu('CbApiGen::menu');
20 20
         $this->registerModule();
21 21
     }
Please login to merge, or discard this patch.
src/Modules/ApiGeneratorModule/CbApiGeneratorRoutes.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 $namespace = cbModulesNS('ApiGeneratorModule');
4 4
 
5
-Route::group(['middleware' => ['web'], 'namespace' => $namespace], function () {
5
+Route::group(['middleware' => ['web'], 'namespace' => $namespace], function() {
6 6
     Route::get('api/doc', ['uses' => 'AdminApiGeneratorController@apiDocumentation', 'as' => 'apiDocumentation']);
7 7
     Route::get('download-documentation-postman', ['uses' => 'AdminApiGeneratorController@getDownloadPostman', 'as' => 'downloadDocumentationPostman']);
8 8
 });
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     'middleware' => ['web', \Crocodicstudio\Crudbooster\CBCoreModule\middlewares\CBSuperadmin::class],
12 12
     'prefix' => cbAdminPath(),
13 13
     'namespace' => $namespace,
14
-], function () {
14
+], function() {
15 15
     Route::get('api-generator', ['uses' => 'AdminApiGeneratorController@getIndex', 'as' => 'AdminApiGeneratorControllerGetIndex']);
16 16
 
17 17
     Route::get('api-generator/download-postman', 'DownloadPostman@getDownloadPostman')->name('AdminApiGeneratorControllerGetDownloadPostman');
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
 /* ROUTER FOR API GENERATOR */
53 53
 
54
-Route::group(['middleware' => ['api', \Crocodicstudio\Crudbooster\Modules\ApiGeneratorModule\ApiKeysRepository::class], 'namespace' => ctrlNamespace()], function () {
54
+Route::group(['middleware' => ['api', \Crocodicstudio\Crudbooster\Modules\ApiGeneratorModule\ApiKeysRepository::class], 'namespace' => ctrlNamespace()], function() {
55 55
     //Router for custom api defeault
56 56
     $dir = scandir(controllers_dir());
57 57
     foreach ($dir as $Ctrl) {
Please login to merge, or discard this patch.
src/Modules/PrivilegeModule/PrivilegeHelpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     public static function themeColor()
89 89
     {   
90 90
         $cbUser = cbUser();
91
-        return ($cbUser)?$cbUser->role()->theme_color : 'skin-blue';
91
+        return ($cbUser) ? $cbUser->role()->theme_color : 'skin-blue';
92 92
     }
93 93
 
94 94
     public static function denyAccess()
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     {
106 106
         $roleId = cbUser()->cms_roles_id;
107 107
 
108
-        return cache()->rememberForever('cb_admin_privileges_roles'. $roleId, function () use ($roleId) {
108
+        return cache()->rememberForever('cb_admin_privileges_roles'.$roleId, function() use ($roleId) {
109 109
             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() ?: [];
110 110
         });
111 111
     }
Please login to merge, or discard this patch.
src/Modules/ModuleGenerator/AdminModulesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
         return redirect()->route("ModulesControllerGetStep1");
95 95
     }
96 96
 
97
-    public function getStep1($id=null,Step1Handler $handler)
97
+    public function getStep1($id = null, Step1Handler $handler)
98 98
     {
99 99
         $this->cbLoader();
100 100
 
Please login to merge, or discard this patch.
src/CBCoreModule/publieshed_files/AdminUsersController.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
             "options" => ["table" => "cms_roles", "field_value" => "id", "field_label" => 'name'],
74 74
             'required' => true,
75 75
         ];					
76
-		$this->form[] = array("label"=>"Password","name"=>"password","type"=>"password","help"=>"Please leave empty if not change");
77
-		$this->form[] = array("label"=>"Password Confirmation","name"=>"password_confirmation","type"=>"password","help"=>"Please leave empty if not change");
76
+        $this->form[] = array("label"=>"Password","name"=>"password","type"=>"password","help"=>"Please leave empty if not change");
77
+        $this->form[] = array("label"=>"Password Confirmation","name"=>"password_confirmation","type"=>"password","help"=>"Please leave empty if not change");
78 78
 		
79 79
         # END FORM DO NOT REMOVE THIS LINE
80 80
     }
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
         # END CONFIGURATION DO NOT REMOVE THIS LINE
103 103
     }
104 104
     public function hook_before_edit(&$postdata,$id) { 
105
-		unset($postdata['password_confirmation']);
106
-	}
107
-	public function hook_before_add(&$postdata) {      
108
-	    unset($postdata['password_confirmation']);
109
-	}
105
+        unset($postdata['password_confirmation']);
106
+    }
107
+    public function hook_before_add(&$postdata) {      
108
+        unset($postdata['password_confirmation']);
109
+    }
110 110
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
             "options" => ["table" => "cms_roles", "field_value" => "id", "field_label" => 'name'],
74 74
             'required' => true,
75 75
         ];					
76
-		$this->form[] = array("label"=>"Password","name"=>"password","type"=>"password","help"=>"Please leave empty if not change");
77
-		$this->form[] = array("label"=>"Password Confirmation","name"=>"password_confirmation","type"=>"password","help"=>"Please leave empty if not change");
76
+		$this->form[] = array("label"=>"Password", "name"=>"password", "type"=>"password", "help"=>"Please leave empty if not change");
77
+		$this->form[] = array("label"=>"Password Confirmation", "name"=>"password_confirmation", "type"=>"password", "help"=>"Please leave empty if not change");
78 78
 		
79 79
         # END FORM DO NOT REMOVE THIS LINE
80 80
     }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $this->button_save = true;
102 102
         # END CONFIGURATION DO NOT REMOVE THIS LINE
103 103
     }
104
-    public function hook_before_edit(&$postdata,$id) { 
104
+    public function hook_before_edit(&$postdata, $id) { 
105 105
 		unset($postdata['password_confirmation']);
106 106
 	}
107 107
 	public function hook_before_add(&$postdata) {      
Please login to merge, or discard this patch.