@@ -77,7 +77,7 @@ |
||
77 | 77 | protected function getUpdateRules() |
78 | 78 | { |
79 | 79 | $key = \Request::get($this->model->getKeyName()); |
80 | - static::$rules_update['email'] = 'required|email|unique:users,email,' . $key; |
|
80 | + static::$rules_update['email'] = 'required|email|unique:users,email,'.$key; |
|
81 | 81 | |
82 | 82 | return parent::getUpdateRules(); |
83 | 83 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | protected function getUpdateRules() |
45 | 45 | { |
46 | 46 | $key = \Request::get($this->model->getKeyName()); |
47 | - static::$rules['iso'] = 'required|unique:languages,iso,' . $key; |
|
47 | + static::$rules['iso'] = 'required|unique:languages,iso,'.$key; |
|
48 | 48 | |
49 | 49 | return parent::getUpdateRules(); |
50 | 50 | } |
@@ -10,15 +10,15 @@ |
||
10 | 10 | // ------------------------------------------------------------------------------------------------ |
11 | 11 | public function addTranslationAction($template = 'expendable::admin.form.components.datatable.translations', $route = '') |
12 | 12 | { |
13 | - $this->add('translation', function ($model) use ($template, $route) { |
|
13 | + $this->add('translation', function($model) use ($template, $route) { |
|
14 | 14 | |
15 | 15 | $languages = Language::withoutCurrentLanguage()->get(); |
16 | - $translations = Translation::byElement($model)->pluck('id_element','iso')->toArray(); |
|
16 | + $translations = Translation::byElement($model)->pluck('id_element', 'iso')->toArray(); |
|
17 | 17 | return view($template, array( |
18 | 18 | 'languages' => $languages, |
19 | 19 | 'translations' => $translations, |
20 | 20 | 'data' => $model->toArray(), |
21 | - 'route' => !empty($route) ? $route . '@' : $this->getControllerNameForAction() . '@' |
|
21 | + 'route' => !empty($route) ? $route.'@' : $this->getControllerNameForAction().'@' |
|
22 | 22 | ))->render(); |
23 | 23 | }); |
24 | 24 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | public function getIndex() |
28 | 28 | { |
29 | - return redirect()->to(action('\\' . get_class($this) . '@getEdit')); |
|
29 | + return redirect()->to(action('\\'.get_class($this).'@getEdit')); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | // ------------------------------------------------------------------------------------------------ |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | } |
59 | 59 | |
60 | 60 | |
61 | - return redirect()->to(action('\\' . get_class($this) . '@getIndex')); |
|
61 | + return redirect()->to(action('\\'.get_class($this).'@getIndex')); |
|
62 | 62 | |
63 | 63 | } |
64 | 64 | } |
65 | 65 | \ No newline at end of file |
@@ -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 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | |
56 | - public function postUnLock(Request $request){ |
|
56 | + public function postUnLock(Request $request) { |
|
57 | 57 | |
58 | 58 | $model = $this->model->findOrFail($request->get('id')); |
59 | 59 | $model->nb_of_try = 0; |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | |
66 | - public function postLock(Request $request){ |
|
66 | + public function postLock(Request $request) { |
|
67 | 67 | |
68 | 68 | $model = $this->model->findOrFail($request->get('id')); |
69 | 69 | $model->nb_of_try = config('expendable.auth.nb_of_try'); |
@@ -49,7 +49,7 @@ |
||
49 | 49 | $this->layoutManager->initStaticPart(function($layoutManager) |
50 | 50 | { |
51 | 51 | |
52 | - $menu_top = $layoutManager->getView()->make('expendable::admin.menu.top',[ |
|
52 | + $menu_top = $layoutManager->getView()->make('expendable::admin.menu.top', [ |
|
53 | 53 | 'languages'=>Language::all() |
54 | 54 | ]); |
55 | 55 | $menu_left = $layoutManager->getView()->make('expendable::admin.menu.left'); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | |
20 | 20 | $this->layoutManager->add([ |
21 | - 'class_layout'=>$class . '-full-page', |
|
21 | + 'class_layout'=>$class.'-full-page', |
|
22 | 22 | 'content'=>$content, |
23 | 23 | ]); |
24 | 24 |