@@ -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')], 'cb_localization'); |
| 18 | 18 | } |
| 19 | 19 | |
@@ -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')], 'cb_localization'); |
| 19 | 19 | } |
| 20 | 20 | |
@@ -53,16 +53,16 @@ discard block |
||
| 53 | 53 | __DIR__.'/userfiles/views/vendor/crudbooster/type_components/readme.txt' => resource_path('views/vendor/crudbooster/type_components/readme.txt'), |
| 54 | 54 | ], 'cb_type_components'); |
| 55 | 55 | |
| 56 | - if (! file_exists(app_path('Http/Controllers/CBHook.php'))) { |
|
| 56 | + if (!file_exists(app_path('Http/Controllers/CBHook.php'))) { |
|
| 57 | 57 | $this->publishes([__DIR__.'/userfiles/controllers/CBHook.php' => app_path('Http/Controllers/CBHook.php')], 'CBHook'); |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - if (! file_exists(app_path('Http/Controllers/AdminUsersController.php'))) { |
|
| 60 | + if (!file_exists(app_path('Http/Controllers/AdminUsersController.php'))) { |
|
| 61 | 61 | $this->publishes([__DIR__.'/userfiles/controllers/AdminUsersController.php' => app_path('Http/Controllers/AdminUsersController.php')], 'cb_user_controller'); |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | $this->defineValidationRules(); |
| 65 | - $this->loadRoutesFrom( __DIR__.'/routes.php'); |
|
| 65 | + $this->loadRoutesFrom(__DIR__.'/routes.php'); |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | { |
| 75 | 75 | $this->mergeConfigFrom(__DIR__.'/configs/crudbooster.php', 'crudbooster'); |
| 76 | 76 | |
| 77 | - $this->app->singleton('crudbooster', function () { |
|
| 77 | + $this->app->singleton('crudbooster', function() { |
|
| 78 | 78 | return true; |
| 79 | 79 | }); |
| 80 | 80 | |
@@ -116,14 +116,14 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | private function registerCrudboosterCommand() |
| 118 | 118 | { |
| 119 | - $this->app->singleton('crudboosterinstall', function () { |
|
| 119 | + $this->app->singleton('crudboosterinstall', function() { |
|
| 120 | 120 | return new CrudboosterInstallationCommand; |
| 121 | 121 | }); |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | private function defineValidationRules() |
| 125 | 125 | { |
| 126 | - \Validator::extend('alpha_spaces', function ($attribute, $value) { |
|
| 126 | + \Validator::extend('alpha_spaces', function($attribute, $value) { |
|
| 127 | 127 | // This will only accept alpha and spaces. |
| 128 | 128 | // If you want to accept hyphens use: /^[\pL\s-]+$/u. |
| 129 | 129 | return preg_match('/^[\pL\s]+$/u', $value); |