Completed
Push — master ( 7ef4f0...fad325 )
by Sebastian
17:53 queued 12:31
created
app/Services/MissingPageRedirector/DatabaseRedirector.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
         public function getRedirectsFor(Request $request): array
12 12
         {
13 13
             return Redirect::getAll()->flatMap(function($redirect) {
14
-               return [$redirect->old_url => $redirect->new_url];
14
+                return [$redirect->old_url => $redirect->new_url];
15 15
             })->toArray();
16 16
         }
17 17
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Back/AdministratorsController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use App\Services\Auth\Back\Events\UserCreated;
8 8
 use App\Http\Requests\Back\BackUserRequest;
9 9
 use App\Services\Auth\Back\User;
10
-use App\Services\Auth\Back\UserUpdater;
11 10
 use App\Repositories\BackUserRepository;
12 11
 
13 12
 class AdministratorsController
Please login to merge, or discard this patch.
app/Http/Controllers/Back/MembersController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use App\Services\Auth\Front\Events\UserCreatedThroughBack;
8 8
 use App\Http\Requests\Back\FrontUserRequest;
9 9
 use App\Services\Auth\Front\User;
10
-use App\Services\Auth\Front\UserUpdater;
11 10
 use App\Repositories\FrontUserRepository;
12 11
 
13 12
 class MembersController
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/Api/MediaLibraryController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@  discard block
 block discarded – undo
20 20
 
21 21
         $files = $request->file('file');
22 22
 
23
-        if (! is_array($files)) {
23
+        if (!is_array($files)) {
24 24
             $files = [$files];
25 25
         }
26 26
 
27 27
         $media = collect($files)
28
-            ->map(function (UploadedFile $file) use ($model, $request) {
28
+            ->map(function(UploadedFile $file) use ($model, $request) {
29 29
                 return $model
30 30
                     ->addMedia($file)
31 31
                     ->withCustomProperties(['temp' => $request->has('redactor') ? false : true])
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $collectionName = $request->get('collectionName');
47 47
 
48
-        $media = $model->getMedia($collectionName)->reduce(function (Collection $collection, Media $media) {
48
+        $media = $model->getMedia($collectionName)->reduce(function(Collection $collection, Media $media) {
49 49
             return $collection->push([
50 50
                 'thumb' => $media->getUrl('admin'),
51 51
                 'image' => $media->getUrl('redactor'),
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.
app/Http/Controllers/Back/Updaters/UpdatePublishDate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     protected function updatePublishDate(Model $model, FormRequest $request)
11 11
     {
12
-        if (! $request->has('publish_date')) {
12
+        if (!$request->has('publish_date')) {
13 13
             return;
14 14
         }
15 15
 
Please login to merge, or discard this patch.