@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | $this->genericLoader(); |
23 | 23 | $selectedIds = request('checkbox'); |
24 | 24 | $btnName = request('button_name'); |
25 | - if (! $selectedIds) { |
|
25 | + if (!$selectedIds) { |
|
26 | 26 | backWithMsg(cbTrans('at_least_one_row'), 'warning'); |
27 | 27 | } |
28 | 28 | if ($btnName == 'delete') { |
@@ -45,8 +45,8 @@ discard block |
||
45 | 45 | $message = cbTrans('alert_action', ['action' => $action]); |
46 | 46 | |
47 | 47 | if ($this->actionButtonSelected($id_selected, $button_name) === false) { |
48 | - $message = ! empty($this->alert['message']) ? $this->alert['message'] : 'Error'; |
|
49 | - $type = ! empty($this->alert['type']) ? $this->alert['type'] : 'danger'; |
|
48 | + $message = !empty($this->alert['message']) ? $this->alert['message'] : 'Error'; |
|
49 | + $type = !empty($this->alert['type']) ? $this->alert['type'] : 'danger'; |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | backWithMsg($message, $type); |
@@ -13,9 +13,9 @@ |
||
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 | /** |
@@ -43,7 +43,7 @@ |
||
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 |
@@ -6,7 +6,7 @@ discard block |
||
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 |
||
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 | } |
@@ -77,7 +77,7 @@ |
||
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(); |
@@ -22,9 +22,9 @@ |
||
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); |
@@ -14,8 +14,8 @@ |
||
14 | 14 | public function boot() |
15 | 15 | { |
16 | 16 | $this->app['view']->addNamespace('CbEmailTpl', __DIR__.'/views'); |
17 | - $this->loadRoutesFrom( __DIR__.'/email_templates_routes.php'); |
|
18 | - $this->loadMigrationsFrom(__DIR__ . '/migrations'); |
|
17 | + $this->loadRoutesFrom(__DIR__.'/email_templates_routes.php'); |
|
18 | + $this->loadMigrationsFrom(__DIR__.'/migrations'); |
|
19 | 19 | app('CbDynamicMenus')->addSuperAdminMenu('CbEmailTpl::super_admin_menu'); |
20 | 20 | } |
21 | 21 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | $this->app['view']->addNamespace('CbApiGen', __DIR__.'/views'); |
18 | 18 | $this->loadRoutesFrom(__DIR__.'/api_generator_routes.php'); |
19 | - $this->loadMigrationsFrom(__DIR__ . '/migrations'); |
|
19 | + $this->loadMigrationsFrom(__DIR__.'/migrations'); |
|
20 | 20 | app('CbDynamicMenus')->addSuperAdminMenu('CbApiGen::menu'); |
21 | 21 | } |
22 | 22 |
@@ -14,9 +14,9 @@ |
||
14 | 14 | public function boot() |
15 | 15 | { |
16 | 16 | $this->app['view']->addNamespace('CbPrivilege', __DIR__.'/views'); |
17 | - $this->loadRoutesFrom( __DIR__.'/privileges_routes.php'); |
|
17 | + $this->loadRoutesFrom(__DIR__.'/privileges_routes.php'); |
|
18 | 18 | $this->publishes([__DIR__.'/localization' => resource_path('lang')], 'cb_localization'); |
19 | - $this->loadMigrationsFrom(__DIR__ . '/migrations'); |
|
19 | + $this->loadMigrationsFrom(__DIR__.'/migrations'); |
|
20 | 20 | app('CbDynamicMenus')->addSuperAdminMenu('CbPrivilege::menu'); |
21 | 21 | } |
22 | 22 |