@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public function __construct(Application $app) |
19 | 19 | { |
20 | - $this->app = $app; |
|
20 | + $this->app = $app; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | if (UserUtils::isBackendRole()) |
34 | 34 | { |
35 | 35 | UserUtils::setDisplayAllStatus(); |
36 | - }else{ |
|
36 | + } else { |
|
37 | 37 | UserUtils::forgotDisplayAllStatus(); |
38 | 38 | } |
39 | 39 |
@@ -33,7 +33,7 @@ |
||
33 | 33 | if (UserUtils::isBackendRole()) |
34 | 34 | { |
35 | 35 | UserUtils::setDisplayAllStatus(); |
36 | - }else{ |
|
36 | + } else{ |
|
37 | 37 | UserUtils::forgotDisplayAllStatus(); |
38 | 38 | } |
39 | 39 |
@@ -18,8 +18,8 @@ |
||
18 | 18 | public function handle($request, Closure $next) |
19 | 19 | { |
20 | 20 | |
21 | - if($request->session()->has('language')){ |
|
22 | - $local = $request->session()->get('language',config('app.locale')); |
|
21 | + if ($request->session()->has('language')) { |
|
22 | + $local = $request->session()->get('language', config('app.locale')); |
|
23 | 23 | app()->setLocale($local); |
24 | 24 | } |
25 | 25 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | |
30 | 30 | }); |
31 | 31 | |
32 | -$router->group(array('middleware' => ['auth','language']), function() use($router) |
|
32 | +$router->group(array('middleware' => ['auth', 'language']), function() use($router) |
|
33 | 33 | { |
34 | 34 | $router->group(array('middleware' => 'permission', 'prefix' => config('expendable.admin_base_uri')), function() use($router) |
35 | 35 | { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | $id_element = $this->model->hasBeenTranslated($this->model->getTable(), $id, $iso); |
79 | 79 | if (!empty($id_element)) { |
80 | - return redirect()->to(action($this->getControllerNameForAction() . '@getEdit', $id_element)); |
|
80 | + return redirect()->to(action($this->getControllerNameForAction().'@getEdit', $id_element)); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | $model = (!empty($id) || $id === "0") ? $this->model->withoutTranslation()->findOrFail($id) : $this->model; |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | return $result; |
134 | 134 | } |
135 | 135 | |
136 | - return redirect()->to(action($this->getControllerNameForAction() . '@getIndex')); |
|
136 | + return redirect()->to(action($this->getControllerNameForAction().'@getIndex')); |
|
137 | 137 | } |
138 | 138 | |
139 | 139 | // ------------------------------------------------------------------------------------------------ |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | return $result; |
168 | 168 | } |
169 | 169 | |
170 | - return redirect()->to(action($this->getControllerNameForAction() . '@getIndex')); |
|
170 | + return redirect()->to(action($this->getControllerNameForAction().'@getIndex')); |
|
171 | 171 | |
172 | 172 | } |
173 | 173 | |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | $form_content = view('form-builder::form.components.formgenerator.info', [ |
231 | 231 | 'form' => $form, |
232 | 232 | 'id' => $id, |
233 | - 'route' => $this->getControllerNameForAction() . '@', |
|
233 | + 'route' => $this->getControllerNameForAction().'@', |
|
234 | 234 | ]); |
235 | 235 | |
236 | 236 | $this->layoutManager->add([ |
@@ -250,6 +250,6 @@ discard block |
||
250 | 250 | |
251 | 251 | $action = explode('@', \Route::currentRouteAction()); |
252 | 252 | |
253 | - return '\\' . $action[0]; |
|
253 | + return '\\'.$action[0]; |
|
254 | 254 | } |
255 | 255 | } |
256 | 256 | \ No newline at end of file |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | protected function registerRouter() |
15 | 15 | { |
16 | - $this->app->singleton('router',function ($app) { |
|
16 | + $this->app->singleton('router', function($app) { |
|
17 | 17 | return new Router($app['events'], $app); |
18 | 18 | }); |
19 | 19 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | public function getIndex() |
30 | 30 | { |
31 | - return redirect()->to(action('\\' . get_class($this) . '@getEdit')); |
|
31 | + return redirect()->to(action('\\'.get_class($this).'@getEdit')); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | |
@@ -70,9 +70,9 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | $libelle = $request->get('libelle'); |
73 | - $libelle_form = $libelle . 'Form'; |
|
74 | - $libelle_datatable = $libelle . 'Datatable'; |
|
75 | - $libelle_controller = $libelle . 'Controller'; |
|
73 | + $libelle_form = $libelle.'Form'; |
|
74 | + $libelle_datatable = $libelle.'Datatable'; |
|
75 | + $libelle_controller = $libelle.'Controller'; |
|
76 | 76 | $model = $request->get('models'); |
77 | 77 | $states = $request->get('state'); |
78 | 78 | |
@@ -82,14 +82,14 @@ discard block |
||
82 | 82 | { |
83 | 83 | $this->artisan->call('datatable:make', [ |
84 | 84 | '--fields' => $request->get('colon_datatable'), |
85 | - 'name' => 'Datatables/' . $libelle_datatable |
|
85 | + 'name' => 'Datatables/'.$libelle_datatable |
|
86 | 86 | ]); |
87 | 87 | } else if (strpos($state, 'FormStateContract') !== false) |
88 | 88 | { |
89 | 89 | |
90 | 90 | $this->artisan->call('make:form', [ |
91 | 91 | '--fields' => $request->get('fields_form'), |
92 | - 'name' => 'Forms/' . $libelle_form |
|
92 | + 'name' => 'Forms/'.$libelle_form |
|
93 | 93 | ]); |
94 | 94 | } |
95 | 95 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | '--model' => $model, |
100 | 100 | '--datatable' => $libelle_datatable, |
101 | 101 | '--form' => $libelle_form, |
102 | - 'name' => 'Http/Controllers/Admin/' . $libelle_controller |
|
102 | + 'name' => 'Http/Controllers/Admin/'.$libelle_controller |
|
103 | 103 | ]); |
104 | 104 | |
105 | 105 | return redirect()->back()->with(Message::MESSAGE, [trans('expendable::success.generated')]); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | public function getChangeLang($locale = null) |
20 | 20 | { |
21 | - session()->put('language',$locale); |
|
21 | + session()->put('language', $locale); |
|
22 | 22 | app()->setLocale($locale); |
23 | 23 | return redirect()->back(); |
24 | 24 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | { |
31 | 31 | parent::__construct($layoutManager); |
32 | 32 | |
33 | - $this->auth = $auth; |
|
33 | + $this->auth = $auth; |
|
34 | 34 | |
35 | 35 | } |
36 | 36 | |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | public function getLoginRedirect() |
42 | 42 | { |
43 | - return redirect()->action('\\' . self::class . '@getIndex'); |
|
43 | + return redirect()->action('\\'.self::class.'@getIndex'); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | public function getIndex() |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | } |
204 | 204 | |
205 | 205 | $response = $this->broker()->reset( |
206 | - $this->credentials($request), function ($user, $password) { |
|
206 | + $this->credentials($request), function($user, $password) { |
|
207 | 207 | $this->resetPassword($user, $password); |
208 | 208 | }); |
209 | 209 | |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | // the application's home authenticated view. If there is an error we can |
212 | 212 | // redirect them back to where they came from with their error message. |
213 | 213 | return $response == Password::PASSWORD_RESET |
214 | - ? redirect()->to(action('\\' . get_class($this) . '@getIndex')) |
|
214 | + ? redirect()->to(action('\\'.get_class($this).'@getIndex')) |
|
215 | 215 | : redirect()->back()->with('error', trans($response)); |
216 | 216 | |
217 | 217 | } |