@@ -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 | } |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use App\Models\Enums\TagType; |
| 6 | 6 | use App\Models\Tag; |
| 7 | 7 | use App\Models\Transformers\MediaTransformer; |
| 8 | -use App\Repositories\TagRepository; |
|
| 9 | 8 | use Carbon\Carbon; |
| 10 | 9 | use Illuminate\Html\FormBuilder as BaseFormBuilder; |
| 11 | 10 | use HTML; |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | { |
| 16 | 16 | public function openDraftable(array $options, Model $subject) : string |
| 17 | 17 | { |
| 18 | - $identifier = short_class_name($subject) . '_' . ($subject->isDraft() ? 'new' : $subject->id); |
|
| 18 | + $identifier = short_class_name($subject).'_'.($subject->isDraft() ? 'new' : $subject->id); |
|
| 19 | 19 | |
| 20 | 20 | $options = array_merge($options, [ |
| 21 | 21 | 'data-autosave' => '', |
@@ -32,12 +32,12 @@ discard block |
||
| 32 | 32 | $formOptions['data-confirm'] = 'true'; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - return $this->open($formOptions) . substr(el('button', $buttonOptions, ''), 0, -strlen('</button>')); |
|
| 35 | + return $this->open($formOptions).substr(el('button', $buttonOptions, ''), 0, -strlen('</button>')); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | public function closeButton() : string |
| 39 | 39 | { |
| 40 | - return '</button>' . $this->close(); |
|
| 40 | + return '</button>'.$this->close(); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | public function redactor($subject, string $fieldName, string $locale = '', array $options = []) : string |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | return el('label.-checkbox', |
| 65 | 65 | $this->checkbox($fieldName, 1, $this->useInitialValue($subject, $fieldName), $options) |
| 66 | - . ' ' . $label |
|
| 66 | + . ' '.$label |
|
| 67 | 67 | ); |
| 68 | 68 | } |
| 69 | 69 | |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | public function locales(array $locales, string $current) : string |
| 101 | 101 | { |
| 102 | - $list = array_reduce($locales, function (array $list, string $locale) { |
|
| 102 | + $list = array_reduce($locales, function(array $list, string $locale) { |
|
| 103 | 103 | $list[$locale] = trans("locales.{$locale}"); |
| 104 | 104 | return $list; |
| 105 | 105 | }, []); |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | public function getLabelForTranslatedField(string $fieldName, string $label, string $locale) : string |
| 158 | 158 | { |
| 159 | 159 | return HTML::decode( |
| 160 | - $this->label($fieldName, $label . el('span.label_lang', $locale)) |
|
| 160 | + $this->label($fieldName, $label.el('span.label_lang', $locale)) |
|
| 161 | 161 | ); |
| 162 | 162 | } |
| 163 | 163 | } |
@@ -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 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | { |
| 35 | 35 | $model = static::MODEL; |
| 36 | 36 | |
| 37 | - if (! isset((new $model)->translatedAttributes)) { |
|
| 37 | + if (!isset((new $model)->translatedAttributes)) { |
|
| 38 | 38 | return $this->query()->online()->where('url', $url)->first(); |
| 39 | 39 | } |
| 40 | 40 | |
@@ -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 | } |