@@ -18,7 +18,7 @@ |
||
| 18 | 18 | |
| 19 | 19 | public function updateTagsForType(string $type) |
| 20 | 20 | { |
| 21 | - collect($this->request->get("{$type}_tags"))->each(function ($name) use ($type) { |
|
| 21 | + collect($this->request->get("{$type}_tags"))->each(function($name) use ($type) { |
|
| 22 | 22 | $type = new TagType($type); |
| 23 | 23 | |
| 24 | 24 | $tag = Tag::findByNameOrCreate($name, $type); |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $collection |
| 23 | 23 | ); |
| 24 | 24 | |
| 25 | - collect($updatedMedia)->each(function (Media $media) { |
|
| 25 | + collect($updatedMedia)->each(function(Media $media) { |
|
| 26 | 26 | $media->setCustomProperty('temp', false); |
| 27 | 27 | $media->save(); |
| 28 | 28 | }); |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | |
| 16 | 16 | public function index() |
| 17 | 17 | { |
| 18 | - $tags = Tag::nonDraft()->get()->reduce(function (Collection $carry, Tag $tag) { |
|
| 18 | + $tags = Tag::nonDraft()->get()->reduce(function(Collection $carry, Tag $tag) { |
|
| 19 | 19 | |
| 20 | 20 | if (!$carry->has($tag->type)) { |
| 21 | 21 | $carry->put($tag->type, new Collection()); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | protected function registerHtmlBuilder() |
| 33 | 33 | { |
| 34 | - $this->app->singleton('html', function ($app) { |
|
| 34 | + $this->app->singleton('html', function($app) { |
|
| 35 | 35 | return new HtmlBuilder($app['url']); |
| 36 | 36 | }); |
| 37 | 37 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | protected function registerFormBuilder() |
| 43 | 43 | { |
| 44 | - $this->app->singleton('form', function ($app) { |
|
| 44 | + $this->app->singleton('form', function($app) { |
|
| 45 | 45 | $formBuilder = new FormBuilder($app['html'], $app['url'], $app['session.store']->getToken()); |
| 46 | 46 | |
| 47 | 47 | $formBuilder->setSessionStore($app['session.store']); |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | /** |
| 36 | 36 | * Get a parameter of the current route. |
| 37 | 37 | * |
| 38 | - * @param $key |
|
| 38 | + * @param string $key |
|
| 39 | 39 | * |
| 40 | 40 | * @return object|string |
| 41 | 41 | */ |
@@ -38,6 +38,9 @@ |
||
| 38 | 38 | return fragment('auth.failed'); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param Request $request |
|
| 43 | + */ |
|
| 41 | 44 | protected function sendInactiveAccountResponse($request) |
| 42 | 45 | { |
| 43 | 46 | return redirect()->back() |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -Route::group(['middleware' => 'guest'], function () { |
|
| 3 | +Route::group(['middleware' => 'guest'], function() { |
|
| 4 | 4 | |
| 5 | 5 | Route::get('login', 'AuthController@getLogin'); |
| 6 | 6 | Route::post('login', 'AuthController@postLogin'); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | Route::get('password/reset/{token}', 'PasswordController@getReset'); |
| 11 | 11 | Route::post('password/reset/{token}', 'PasswordController@postReset'); |
| 12 | 12 | |
| 13 | - Route::get('password', function () { |
|
| 13 | + Route::get('password', function() { |
|
| 14 | 14 | return redirect()->action('PasswordController@getEmail'); |
| 15 | 15 | }); |
| 16 | 16 | }); |
@@ -21,14 +21,14 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | public function map(Router $router) |
| 23 | 23 | { |
| 24 | - $router->group(['namespace' => $this->namespace], function () { |
|
| 24 | + $router->group(['namespace' => $this->namespace], function() { |
|
| 25 | 25 | require app_path('Http/Routes/routes.php'); |
| 26 | 26 | }); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | protected function registerMacros(Router $router) |
| 30 | 30 | { |
| 31 | - $router->macro('module', function ($slug, $className, $sortable = false) use ($router) { |
|
| 31 | + $router->macro('module', function($slug, $className, $sortable = false) use ($router) { |
|
| 32 | 32 | if ($sortable) { |
| 33 | 33 | $router->patch("{$slug}/changeOrder", "{$className}Controller@changeOrder"); |
| 34 | 34 | } |
@@ -36,15 +36,15 @@ discard block |
||
| 36 | 36 | $router->resource($slug, "{$className}Controller"); |
| 37 | 37 | }); |
| 38 | 38 | |
| 39 | - $router->macro('articleList', function ($technicalNamePrefix, $action) use ($router) { |
|
| 39 | + $router->macro('articleList', function($technicalNamePrefix, $action) use ($router) { |
|
| 40 | 40 | |
| 41 | 41 | $articles = Article::getWithTechnicalNameLike($technicalNamePrefix); |
| 42 | 42 | |
| 43 | - $router->get(app()->getLocale().'/'.fragment_slug("navigation.{$technicalNamePrefix}"), function () use ($articles) { |
|
| 43 | + $router->get(app()->getLocale().'/'.fragment_slug("navigation.{$technicalNamePrefix}"), function() use ($articles) { |
|
| 44 | 44 | return redirect(route("{$articles->first()->technical_name}")); |
| 45 | 45 | })->name($technicalNamePrefix); |
| 46 | 46 | |
| 47 | - $articles->map(function ($article) use ($technicalNamePrefix, $action, $router) { |
|
| 47 | + $articles->map(function($article) use ($technicalNamePrefix, $action, $router) { |
|
| 48 | 48 | $router->get(app()->getLocale().'/'.fragment_slug("navigation.{$technicalNamePrefix}").'/'.$article->url, $action)->name("{$article->technical_name}"); |
| 49 | 49 | }); |
| 50 | 50 | }); |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | public function sendPasswordEmail(User $user) |
| 21 | 21 | { |
| 22 | - Password::broker('front')->sendResetLink(['email' => $user->email], function (Message $message) { |
|
| 22 | + Password::broker('front')->sendResetLink(['email' => $user->email], function(Message $message) { |
|
| 23 | 23 | $message->subject('Welkom bij '.request()->getHost()); |
| 24 | 24 | }); |
| 25 | 25 | } |