@@ -14,8 +14,8 @@ |
||
14 | 14 | public function boot() |
15 | 15 | { |
16 | 16 | $this->app['view']->addNamespace('CbMenu', __DIR__.'/views'); |
17 | - $this->loadRoutesFrom( __DIR__.'/menus_routes.php'); |
|
18 | - $this->loadMigrationsFrom(__DIR__ . '/migrations'); |
|
17 | + $this->loadRoutesFrom(__DIR__.'/menus_routes.php'); |
|
18 | + $this->loadMigrationsFrom(__DIR__.'/migrations'); |
|
19 | 19 | app('CbDynamicMenus')->addSuperAdminMenu('CbMenu::menu'); |
20 | 20 | app('CbDynamicMenus')->addMenu('CbMenu::dynamic_menus'); |
21 | 21 | $this->registerModule(); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | app('CbDynamicMenus')->addMenu('CbMenu::dynamic_menus'); |
21 | 21 | $this->registerModule(); |
22 | 22 | |
23 | - /* $hasDashboard = \Crocodicstudio\Crudbooster\Modules\MenuModule\MenuRepo::sidebarDashboard(); |
|
23 | + /* $hasDashboard = \Crocodicstudio\Crudbooster\Modules\MenuModule\MenuRepo::sidebarDashboard(); |
|
24 | 24 | if (false && $hasDashboard) { |
25 | 25 | app('CbDynamicMenus')->addMenu('CbMenu::dashboard'); |
26 | 26 | }*/ |
@@ -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 | $this->registerModule(); |
20 | 20 | } |
21 | 21 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | $validator = \Validator::make(request()->all(), $rules); |
21 | 21 | |
22 | - if (! $validator->fails()) { |
|
22 | + if (!$validator->fails()) { |
|
23 | 23 | return null; |
24 | 24 | } |
25 | 25 | |
@@ -37,12 +37,12 @@ discard block |
||
37 | 37 | $rules = []; |
38 | 38 | foreach ($form as $formInput) { |
39 | 39 | $name = $formInput['name']; |
40 | - if (! $name) { |
|
40 | + if (!$name) { |
|
41 | 41 | continue; |
42 | 42 | } |
43 | 43 | |
44 | 44 | $ai = []; |
45 | - if ($formInput['required'] && ! \Request::hasFile($name)) { |
|
45 | + if ($formInput['required'] && !\Request::hasFile($name)) { |
|
46 | 46 | $ai[] = 'required'; |
47 | 47 | } |
48 | 48 | |
@@ -73,11 +73,11 @@ discard block |
||
73 | 73 | { |
74 | 74 | if (is_string($rules)) { |
75 | 75 | $exp = explode('|', $rules); |
76 | - } elseif(is_array($rules)) { |
|
76 | + } elseif (is_array($rules)) { |
|
77 | 77 | $exp = $rules; |
78 | 78 | } |
79 | 79 | |
80 | - $uniqueRules = array_filter($exp, function($item){ |
|
80 | + $uniqueRules = array_filter($exp, function($item) { |
|
81 | 81 | return starts_with($item, 'unique'); |
82 | 82 | }); |
83 | 83 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | $user = $this->usersRepo->findByMail(request("email")); |
32 | 32 | |
33 | - if (! auth('cbAdmin')->attempt($credentials)) { |
|
33 | + if (!auth('cbAdmin')->attempt($credentials)) { |
|
34 | 34 | $resp = redirect()->route('getLogin')->with('message', cbTrans('alert_password_wrong')); |
35 | 35 | respondWith($resp); |
36 | 36 | } |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | { |
11 | 11 | public function uploadFile($name) |
12 | 12 | { |
13 | - if (! Request::hasFile($name)) { |
|
13 | + if (!Request::hasFile($name)) { |
|
14 | 14 | return null; |
15 | 15 | } |
16 | 16 | $file = Request::file($name); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | private function validateExtension($ext) |
35 | 35 | { |
36 | - if (! FieldDetector::isUploadField($ext)) { |
|
36 | + if (!FieldDetector::isUploadField($ext)) { |
|
37 | 37 | respondWith()->json("The filetype is not allowed!"); |
38 | 38 | } |
39 | 39 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | */ |
48 | 48 | private function sendMail($html, $subject, $template) |
49 | 49 | { |
50 | - \Mail::send("CbEmailTpl::templates.blank", ['content' => $html], function ($message) use ($subject, $template) { |
|
50 | + \Mail::send("CbEmailTpl::templates.blank", ['content' => $html], function($message) use ($subject, $template) { |
|
51 | 51 | $message->priority(1); |
52 | 52 | $message->to($this->receiver); |
53 | 53 |
@@ -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(); |
@@ -74,7 +74,7 @@ |
||
74 | 74 | * @param $name |
75 | 75 | * @return mixed |
76 | 76 | */ |
77 | - /* private function handleBase64($value, $uploads_format_candidate, $row_assign, $name) |
|
77 | + /* private function handleBase64($value, $uploads_format_candidate, $row_assign, $name) |
|
78 | 78 | { |
79 | 79 | $filedata = base64_decode($value); |
80 | 80 | $f = finfo_open(); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $format_validation[] = $this->existOrUnique($config, $type); |
28 | 28 | } elseif (in_array($type, ['date_format', 'digits_between', 'in', 'mimes', 'min', 'max', 'not_in'])) { |
29 | 29 | $format_validation[] = $type.':'.$config; |
30 | - } elseif (! in_array($type, $typeExcept)) { |
|
30 | + } elseif (!in_array($type, $typeExcept)) { |
|
31 | 31 | $format_validation[] = $type; |
32 | 32 | } |
33 | 33 |