@@ -42,8 +42,7 @@ |
||
| 42 | 42 | public function fire() |
| 43 | 43 | { |
| 44 | 44 | $queue = ($this->argument('queue')) ? |
| 45 | - $this->argument('queue') : |
|
| 46 | - config('queue.connections.beanstalkd.queue'); |
|
| 45 | + $this->argument('queue') : config('queue.connections.beanstalkd.queue'); |
|
| 47 | 46 | |
| 48 | 47 | $this->info(sprintf('Clearing queue: %s', $queue)); |
| 49 | 48 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | public function handle() |
| 32 | 32 | { |
| 33 | - array_map(function ($draftableModelClass) { |
|
| 33 | + array_map(function($draftableModelClass) { |
|
| 34 | 34 | $this->deleteOldDraftsForModelClass($draftableModelClass); |
| 35 | 35 | }, $this->getAllDraftableModelClassNames()); |
| 36 | 36 | |
@@ -39,14 +39,14 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | private function getAllDraftableModelClassNames() |
| 41 | 41 | { |
| 42 | - return array_filter($this->getAllModelClassNames(), function ($modelClass) { |
|
| 42 | + return array_filter($this->getAllModelClassNames(), function($modelClass) { |
|
| 43 | 43 | return (in_array(Draftable::class, class_uses($modelClass))); |
| 44 | 44 | }); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | private function getAllModelClassNames() |
| 48 | 48 | { |
| 49 | - return array_map(function ($path) { |
|
| 49 | + return array_map(function($path) { |
|
| 50 | 50 | $modelPath = str_replace(base_path().'/', '', $path); |
| 51 | 51 | $modelClass = '\\'.ucfirst(str_replace(['/', '.php'], ['\\', ''], $modelPath)); |
| 52 | 52 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | { |
| 75 | 75 | $this->validate($request, ['email' => 'required']); |
| 76 | 76 | |
| 77 | - $response = $this->passwords->sendResetLink($request->only('email'), function ($message) { |
|
| 77 | + $response = $this->passwords->sendResetLink($request->only('email'), function($message) { |
|
| 78 | 78 | $message->subject($this->getEmailSubject()); |
| 79 | 79 | }); |
| 80 | 80 | |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | 'email', 'password', 'password_confirmation', 'token' |
| 148 | 148 | ); |
| 149 | 149 | |
| 150 | - $response = $this->passwords->reset($credentials, function ($user, $password) { |
|
| 150 | + $response = $this->passwords->reset($credentials, function($user, $password) { |
|
| 151 | 151 | $user->password = $password; |
| 152 | 152 | |
| 153 | 153 | $user->save(); |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | Route::post('auth/login', 'AuthController@postLogin'); |
| 5 | 5 | Route::get('auth/logout', ['uses' => 'AuthController@getLogout', 'as' => 'logout']); |
| 6 | 6 | |
| 7 | -Route::get('auth', function () { |
|
| 7 | +Route::get('auth', function() { |
|
| 8 | 8 | return redirect('/nl/auth/login'); |
| 9 | 9 | }); |
| 10 | 10 | |
@@ -13,12 +13,12 @@ discard block |
||
| 13 | 13 | Route::get('password/reset/{token}', 'PasswordController@getReset'); |
| 14 | 14 | Route::post('password/reset/{token}', 'PasswordController@postReset'); |
| 15 | 15 | |
| 16 | -Route::get('password', function () { |
|
| 16 | +Route::get('password', function() { |
|
| 17 | 17 | return redirect()->action('PasswordController@getEmail'); |
| 18 | 18 | }); |
| 19 | 19 | |
| 20 | 20 | Route::pattern('registrationRole', '(member)'); |
| 21 | -Route::group(['prefix' => 'register'], function () { |
|
| 21 | +Route::group(['prefix' => 'register'], function() { |
|
| 22 | 22 | Route::get('{registrationRole}', 'RegistrationController@showRegistrationForm'); |
| 23 | 23 | Route::post('{registrationRole}', 'RegistrationController@saveUser'); |
| 24 | 24 | }); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | |
| 12 | 12 | public static function allAsRegex() |
| 13 | 13 | { |
| 14 | - return collect(self::values())->map(function ($role) { |
|
| 14 | + return collect(self::values())->map(function($role) { |
|
| 15 | 15 | return "({$role})"; |
| 16 | 16 | })->implode('|'); |
| 17 | 17 | } |
@@ -11,13 +11,13 @@ |
||
| 11 | 11 | |
| 12 | 12 | public static function downloadAll() |
| 13 | 13 | { |
| 14 | - Excel::create('Responses '.date('Y-m-d'), function ($excel) { |
|
| 14 | + Excel::create('Responses '.date('Y-m-d'), function($excel) { |
|
| 15 | 15 | |
| 16 | - $excel->sheet('Responses', function ($sheet) { |
|
| 16 | + $excel->sheet('Responses', function($sheet) { |
|
| 17 | 17 | |
| 18 | 18 | $sheet->freezeFirstRow(); |
| 19 | 19 | |
| 20 | - $sheet->cells('A1:Z1', function ($cells) { |
|
| 20 | + $sheet->cells('A1:Z1', function($cells) { |
|
| 21 | 21 | $cells->setFontWeight('bold'); |
| 22 | 22 | $cells->setBorder('node', 'none', 'solid', 'none'); |
| 23 | 23 | }); |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | foreach ($email as $singleEmailAddress) { |
| 38 | - $this->mail->queue($view, $data, function ($message) use ($singleEmailAddress, $subject) { |
|
| 38 | + $this->mail->queue($view, $data, function($message) use ($singleEmailAddress, $subject) { |
|
| 39 | 39 | $message->to($singleEmailAddress)->subject($subject); |
| 40 | 40 | }); |
| 41 | 41 | } |
@@ -42,11 +42,11 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | protected function registerFragmentBreadcrumbs() |
| 44 | 44 | { |
| 45 | - BreadCrumbsManager::register('fragments', function ($breadcrumbs) { |
|
| 45 | + BreadCrumbsManager::register('fragments', function($breadcrumbs) { |
|
| 46 | 46 | $breadcrumbs->push(trans('back-fragments.title'), action('Back\FragmentController@index')); |
| 47 | 47 | }); |
| 48 | 48 | |
| 49 | - BreadCrumbsManager::register('fragmentDetail', function ($breadcrumbs, $string) { |
|
| 49 | + BreadCrumbsManager::register('fragmentDetail', function($breadcrumbs, $string) { |
|
| 50 | 50 | $breadcrumbs->parent('fragments'); |
| 51 | 51 | $breadcrumbs->push($string->name, action('Back\FragmentController@edit', $string->id)); |
| 52 | 52 | }); |
@@ -54,18 +54,18 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | protected function registerUserBreadcrumbs() |
| 56 | 56 | { |
| 57 | - BreadCrumbsManager::register('userListBack', function ($breadcrumbs, $user) { |
|
| 57 | + BreadCrumbsManager::register('userListBack', function($breadcrumbs, $user) { |
|
| 58 | 58 | |
| 59 | 59 | $breadcrumbs->push(trans('back-users.title'), '/blender/user/admin'); |
| 60 | 60 | $breadcrumbs->push(trans("back-users.role.{$user->role}.plural"), action('Back\UserController@index', ['role' => $user->role])); |
| 61 | 61 | }); |
| 62 | 62 | |
| 63 | - BreadCrumbsManager::register('newUserBack', function ($breadcrumbs, $user) { |
|
| 63 | + BreadCrumbsManager::register('newUserBack', function($breadcrumbs, $user) { |
|
| 64 | 64 | $breadcrumbs->parent('userListBack', $user); |
| 65 | 65 | $breadcrumbs->push(trans('back-users.new'), action('Back\UserController@create', ['role' => $user->role])); |
| 66 | 66 | }); |
| 67 | 67 | |
| 68 | - BreadCrumbsManager::register('editUserBack', function ($breadcrumbs, $user) { |
|
| 68 | + BreadCrumbsManager::register('editUserBack', function($breadcrumbs, $user) { |
|
| 69 | 69 | $breadcrumbs->parent('userListBack', $user); |
| 70 | 70 | $breadcrumbs->push($user->present()->fullName, action('Back\UserController@edit', $user->id)); |
| 71 | 71 | }); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | BreadCrumbsManager::register( |
| 83 | 83 | "{$singular}ListBack", |
| 84 | - function ($breadcrumbs) use ($ucname, $plural) { |
|
| 84 | + function($breadcrumbs) use ($ucname, $plural) { |
|
| 85 | 85 | $breadcrumbs->push( |
| 86 | 86 | trans("back-{$plural}.title"), |
| 87 | 87 | action("Back\\{$ucname}Controller@index") |
@@ -91,12 +91,11 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | BreadCrumbsManager::register( |
| 93 | 93 | "{$singular}Back", |
| 94 | - function ($breadcrumbs, $model) use ($singular, $ucname, $plural) { |
|
| 94 | + function($breadcrumbs, $model) use ($singular, $ucname, $plural) { |
|
| 95 | 95 | $breadcrumbs->parent("{$singular}ListBack"); |
| 96 | 96 | |
| 97 | 97 | $breadcrumbs->push( |
| 98 | - $model->isDraft() ? trans("back-{$plural}.new") : |
|
| 99 | - (isset($model->name) ? $model->name : ucfirst(trans('back.change'))), |
|
| 98 | + $model->isDraft() ? trans("back-{$plural}.new") : (isset($model->name) ? $model->name : ucfirst(trans('back.change'))), |
|
| 100 | 99 | action("Back\\{$ucname}Controller@create") |
| 101 | 100 | ); |
| 102 | 101 | } |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | |
| 57 | 57 | $collectionName = $request->get('collectionName'); |
| 58 | 58 | |
| 59 | - $media = $model->getMedia($collectionName)->reduce(function (Collection $collection, Media $media) { |
|
| 59 | + $media = $model->getMedia($collectionName)->reduce(function(Collection $collection, Media $media) { |
|
| 60 | 60 | return $collection->push([ |
| 61 | 61 | 'thumb' => $media->getUrl('admin'), |
| 62 | 62 | 'image' => $media->getUrl('redactor'), |