@@ -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 | |
@@ -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 | } |
@@ -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'), |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | { |
| 36 | 36 | $passwords = app(PasswordBroker::class); |
| 37 | 37 | |
| 38 | - $passwords->sendResetLink(['email' => $user->email], function (Message $message) { |
|
| 38 | + $passwords->sendResetLink(['email' => $user->email], function(Message $message) { |
|
| 39 | 39 | $message->subject(trans('passwords.subjectEmailNewUser', [], 'nl')); |
| 40 | 40 | }); |
| 41 | 41 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | foreach ($this->cacheRepositories as $repositoryName) { |
| 32 | 32 | $events->listen( |
| 33 | 33 | "eloquent.saved: App\\Models\\{$repositoryName}", |
| 34 | - function () {Cache::flush();} |
|
| 34 | + function() {Cache::flush(); } |
|
| 35 | 35 | ); |
| 36 | 36 | } |
| 37 | 37 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function find(int $id) |
| 23 | 23 | { |
| 24 | - return $this->rememberForever("find.{$id}", function () use ($id) { |
|
| 24 | + return $this->rememberForever("find.{$id}", function() use ($id) { |
|
| 25 | 25 | return $this->dbRepository->find($id); |
| 26 | 26 | }); |
| 27 | 27 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | protected static function bootDraftable() |
| 12 | 12 | { |
| 13 | - static::updating(function ($model) { |
|
| 13 | + static::updating(function($model) { |
|
| 14 | 14 | $model->wasDraft = $model->isDraft(); |
| 15 | 15 | $model->draft = false; |
| 16 | 16 | }); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | public function tagsWithType(TagType $type) : Collection |
| 18 | 18 | { |
| 19 | - return $this->tags->filter(function (Tag $tag) use ($type) { |
|
| 19 | + return $this->tags->filter(function(Tag $tag) use ($type) { |
|
| 20 | 20 | return $tag->hasType($type); |
| 21 | 21 | }); |
| 22 | 22 | } |