Passed
Push — master ( 75ec53...0424dc )
by Iman
04:49
created
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()->fullUrlWithQuery()]);
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/Modules/NotificationsModule/CbNotificationsServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
      */
14 14
     public function boot()
15 15
     {
16
-        $this->loadViewsFrom( __DIR__.'/views', 'CbNotifications');
17
-        $this->loadRoutesFrom( __DIR__.'/notifications_routes.php');
18
-        $this->loadMigrationsFrom(__DIR__ . '/migrations');
16
+        $this->loadViewsFrom(__DIR__.'/views', 'CbNotifications');
17
+        $this->loadRoutesFrom(__DIR__.'/notifications_routes.php');
18
+        $this->loadMigrationsFrom(__DIR__.'/migrations');
19 19
     }
20 20
 
21 21
     /**
Please login to merge, or discard this patch.
src/Modules/EmailTemplates/Mailer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      */
44 44
     private function sendMail($html, $subject, $template)
45 45
     {
46
-        \Mail::send("crudbooster::emails.blank", ['content' => $html], function ($message) use ($subject, $template) {
46
+        \Mail::send("crudbooster::emails.blank", ['content' => $html], function($message) use ($subject, $template) {
47 47
             $message->priority(1);
48 48
             $message->to($this->reciever);
49 49
 
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/Modules/AuthModule/AuthController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
 
78 78
     private function validateForgotPass()
79 79
     {
80
-        $validator = \Validator::make(request()->all(), ['email' => 'required|email|exists:cms_users',]);
80
+        $validator = \Validator::make(request()->all(), ['email' => 'required|email|exists:cms_users', ]);
81 81
 
82 82
         if ($validator->fails()) {
83 83
             $message = $validator->errors()->all();
Please login to merge, or discard this patch.