Completed
Push — master ( df6562...fef404 )
by Sebastian
26:19 queued 20:10
created
app/Providers/BroadcastServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         /*
20 20
          * Authenticate the user's personal channel...
21 21
          */
22
-        Broadcast::channel('App.User.*', function ($user, $userId) {
22
+        Broadcast::channel('App.User.*', function($user, $userId) {
23 23
             return (int) $user->id === (int) $userId;
24 24
         });
25 25
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Back/Auth/LoginController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      * Get the response for a successful password reset.
61 61
      *
62 62
      * @param  string  $response
63
-     * @return \Illuminate\Http\Response
63
+     * @return \Illuminate\Http\RedirectResponse
64 64
      */
65 65
     protected function sendResetResponse($response)
66 66
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Front/Auth/LoginController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      * Get the response for a successful password reset.
61 61
      *
62 62
      * @param  string  $response
63
-     * @return \Illuminate\Http\Response
63
+     * @return \Illuminate\Http\RedirectResponse
64 64
      */
65 65
     protected function sendResetResponse($response)
66 66
     {
Please login to merge, or discard this patch.
app/Services/Html/BlenderFormBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -245,11 +245,11 @@  discard block
 block discarded – undo
245 245
 
246 246
     public function seo(): string
247 247
     {
248
-        return locales()->map(function ($locale) {
248
+        return locales()->map(function($locale) {
249 249
 
250 250
             return collect($this->model->defaultSeoValues())
251 251
                 ->keys()
252
-                ->map(function ($attribute) use ($locale) {
252
+                ->map(function($attribute) use ($locale) {
253 253
 
254 254
                     $fieldName = translate_field_name("seo.{$attribute}", $locale);
255 255
 
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
                         ),
262 262
                     ]);
263 263
                 })
264
-                ->pipe(function (Collection $fields) use ($locale) {
264
+                ->pipe(function(Collection $fields) use ($locale) {
265 265
                     return $this->languageFieldSet($locale, $fields->toArray());
266 266
                 });
267 267
         })->implode('');
Please login to merge, or discard this patch.
app/Mail/EventHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,12 +13,12 @@
 block discarded – undo
13 13
 {
14 14
     public function subscribe(Dispatcher $events)
15 15
     {
16
-        $events->listen(UserRegistered::class, function (UserRegistered $event) {
16
+        $events->listen(UserRegistered::class, function(UserRegistered $event) {
17 17
             Mail::send(new Welcome($event->user));
18 18
         });
19 19
 
20
-        $events->listen(UserCreatedThroughBack::class, function (UserCreatedThroughBack $event) {
21
-            Password::broker('front')->sendResetLink(['email' => $event->user->email], function (Message $message) {
20
+        $events->listen(UserCreatedThroughBack::class, function(UserCreatedThroughBack $event) {
21
+            Password::broker('front')->sendResetLink(['email' => $event->user->email], function(Message $message) {
22 22
                 $message->subject('Welkom bij '.config('app.url'));
23 23
             });
24 24
         });
Please login to merge, or discard this patch.
app/Http/Controllers/Back/ModuleController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -153,6 +153,9 @@
 block discarded – undo
153 153
         $model->save();
154 154
     }
155 155
 
156
+    /**
157
+     * @param Model $model
158
+     */
156 159
     protected function updatedEventDescriptionFor($model): string
157 160
     {
158 161
         $modelName = fragment("back.{$this->moduleName}.singular");
Please login to merge, or discard this patch.
app/Http/Controllers/Back/Updaters/UpdateSeoValues.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@  discard block
 block discarded – undo
13 13
     protected function updateSeoValues(Model $model, FormRequest $request)
14 14
     {
15 15
         collect($request->all())
16
-            ->filter(function ($value, $fieldName) {
16
+            ->filter(function($value, $fieldName) {
17 17
                 // Filter out everything that starts with 'translated_<locale>_seo_'
18 18
                 return Regex::match('/^translated_([a-z][a-z])_seo_/', $fieldName)->hasMatch();
19 19
             })
20
-            ->map(function ($value, $fieldName) {
20
+            ->map(function($value, $fieldName) {
21 21
 
22 22
                 // Replace 'translated_<locale>_seo_<attribute>' with '<locale>_<attribute>'
23
-                $localeAndAttribute = Regex::replace('/translated_([a-z][a-z])_seo_/', function (MatchResult $matchResult) {
23
+                $localeAndAttribute = Regex::replace('/translated_([a-z][a-z])_seo_/', function(MatchResult $matchResult) {
24 24
                     return $matchResult->group(1).'_';
25 25
                 }, $fieldName)->result();
26 26
 
@@ -33,12 +33,12 @@  discard block
 block discarded – undo
33 33
                 ];
34 34
             })
35 35
             ->groupBy('locale')
36
-            ->map(function (Collection $valuesInLocale) {
37
-                return $valuesInLocale->mapToAssoc(function ($values) {
36
+            ->map(function(Collection $valuesInLocale) {
37
+                return $valuesInLocale->mapToAssoc(function($values) {
38 38
                     return [$values['attribute'], $values['value']];
39 39
                 });
40 40
             })
41
-            ->each(function ($values, $locale) use ($model) {
41
+            ->each(function($values, $locale) use ($model) {
42 42
                 $model->setTranslation('seo_values', $locale, $values);
43 43
             });
44 44
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Back/Updaters/UpdateMedia.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,12 +10,12 @@  discard block
 block discarded – undo
10 10
 {
11 11
     protected function updateMedia(Model $model, FormRequest $request)
12 12
     {
13
-        if (! isset($model->mediaLibraryCollections)) {
13
+        if (!isset($model->mediaLibraryCollections)) {
14 14
             return;
15 15
         }
16 16
 
17 17
         foreach ($model->mediaLibraryCollections as $collection) {
18
-            if (! $request->has($collection)) {
18
+            if (!$request->has($collection)) {
19 19
                 continue;
20 20
             }
21 21
 
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
                 $collection
25 25
             );
26 26
 
27
-            collect($updatedMedia)->each(function (Media $media) {
27
+            collect($updatedMedia)->each(function(Media $media) {
28 28
                 $media->setCustomProperty('temp', false);
29 29
                 $media->save();
30 30
             });
Please login to merge, or discard this patch.
app/Http/Controllers/Back/Updaters/UpdateTags.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
         $model->tags()->detach();
15 15
 
16 16
         foreach ($model->tagTypes as $type) {
17
-            collect($request->get("{$type}_tags"))->each(function ($name) use ($model, $type) {
17
+            collect($request->get("{$type}_tags"))->each(function($name) use ($model, $type) {
18 18
                 $type = new TagType($type);
19 19
 
20 20
                 $tag = Tag::findByNameOrCreate($name, $type);
Please login to merge, or discard this patch.