@@ -14,7 +14,7 @@ |
||
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/crudbooster')], 'cb_localization'); |
19 | 19 | } |
20 | 20 |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $this->col[] = [ |
32 | 32 | 'label' => 'Superadmin', |
33 | 33 | 'name' => 'is_superadmin', |
34 | - 'callback' => function ($row) { |
|
34 | + 'callback' => function($row) { |
|
35 | 35 | return ($row->is_superadmin) ? "<span class='label label-success'>Superadmin</span>" : "<span class='label label-default'>Standard</span>"; |
36 | 36 | }, |
37 | 37 | ]; |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | foreach (Request::input('privileges', []) as $moduleId => $data) { |
112 | 112 | //Check Menu |
113 | 113 | |
114 | - $arrs = array_get_keys($data, ['is_visible', 'is_create', 'is_read', 'is_edit', 'is_delete',], 0); |
|
114 | + $arrs = array_get_keys($data, ['is_visible', 'is_create', 'is_read', 'is_edit', 'is_delete', ], 0); |
|
115 | 115 | $this->savePermissions($id, $moduleId, $arrs); |
116 | 116 | } |
117 | 117 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function boot() |
15 | 15 | { |
16 | - $this->loadRoutesFrom( __DIR__.'/logs_routes.php'); |
|
16 | + $this->loadRoutesFrom(__DIR__.'/logs_routes.php'); |
|
17 | 17 | $this->publishes([__DIR__.'/localization' => resource_path('lang/crudbooster')], 'cb_localization'); |
18 | 18 | } |
19 | 19 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | public function boot() |
16 | 16 | { |
17 | 17 | $this->app['view']->addNamespace('CbAuth', __DIR__.'/views'); |
18 | - $this->loadRoutesFrom( __DIR__.'/auth_routes.php'); |
|
18 | + $this->loadRoutesFrom(__DIR__.'/auth_routes.php'); |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | /** |
@@ -10,7 +10,7 @@ |
||
10 | 10 | { |
11 | 11 | public function showForm($id) |
12 | 12 | { |
13 | - $controller = ModulesRepo::getControllerName($id);; |
|
13 | + $controller = ModulesRepo::getControllerName($id); ; |
|
14 | 14 | |
15 | 15 | $data = []; |
16 | 16 | $data['id'] = $id; |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | $icon = request('icon'); |
23 | 23 | $path = request('path'); |
24 | 24 | |
25 | - if (! request('id')) { |
|
25 | + if (!request('id')) { |
|
26 | 26 | if (DB::table('cms_moduls')->where('path', $path)->where('deleted_at', null)->count()) { |
27 | 27 | backWithMsg('Sorry the slug has already exists, please choose another !', 'warning'); |
28 | 28 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | if (file_exists(controller_path($row->controller))) { |
40 | 40 | $response = FileManipulator::readCtrlContent(str_replace('.', '', $row->controller)); |
41 | - }else{ |
|
41 | + } else { |
|
42 | 42 | $response = file_get_contents(__DIR__.'Step1Handler.php/'.str_replace('.', '', $row->controller).'.php'); |
43 | 43 | } |
44 | 44 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | |
39 | 39 | if (file_exists(controller_path($row->controller))) { |
40 | 40 | $response = FileManipulator::readCtrlContent(str_replace('.', '', $row->controller)); |
41 | - }else{ |
|
41 | + } else{ |
|
42 | 42 | $response = file_get_contents(__DIR__.'Step1Handler.php/'.str_replace('.', '', $row->controller).'.php'); |
43 | 43 | } |
44 | 44 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | public function boot() |
16 | 16 | { |
17 | 17 | $this->app['view']->addNamespace('CbModulesGen', __DIR__.'/views'); |
18 | - $this->loadRoutesFrom( __DIR__.'/module_generator_routes.php'); |
|
18 | + $this->loadRoutesFrom(__DIR__.'/module_generator_routes.php'); |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | /** |
@@ -14,7 +14,7 @@ |
||
14 | 14 | public function boot() |
15 | 15 | { |
16 | 16 | $this->app['view']->addNamespace('CbFileManager', __DIR__.'/views'); |
17 | - $this->loadRoutesFrom( __DIR__.'/file_manager_routes.php'); |
|
17 | + $this->loadRoutesFrom(__DIR__.'/file_manager_routes.php'); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | /** |
@@ -47,14 +47,14 @@ |
||
47 | 47 | $allowedExtension = explode(',', strtolower(cbConfig('UPLOAD_TYPES'))); |
48 | 48 | $path = request('path') ? base64_decode(request('path')) : 'uploads'; |
49 | 49 | $file = Request::file('userfile'); |
50 | - if (! $file) { |
|
50 | + if (!$file) { |
|
51 | 51 | return null; |
52 | 52 | } |
53 | 53 | |
54 | 54 | $fileName = $file->getClientOriginalName(); |
55 | 55 | $isAllowed = in_array($file->getClientOriginalExtension(), $allowedExtension); |
56 | 56 | |
57 | - if (! $isAllowed) { |
|
57 | + if (!$isAllowed) { |
|
58 | 58 | backWithMsg('The file '.$fileName.' type is not allowed!', 'warning'); |
59 | 59 | } |
60 | 60 |