Completed
Push — master ( 12ce9b...85cdc9 )
by Sebastian
33:43 queued 28:34
created
app/Http/Requests/Back/BackUserRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $uniqueRule = Rule::unique('users_back', 'email');
23 23
 
24 24
         if ($this->method() === 'PATCH') {
25
-            $uniqueRule = $uniqueRule->where(function ($query) {
25
+            $uniqueRule = $uniqueRule->where(function($query) {
26 26
                 $query->where('email', $this->getRouteParameter('backUser'));
27 27
             });
28 28
         }
Please login to merge, or discard this patch.
app/Http/Requests/Back/FrontUserRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $uniqueRule = Rule::unique('users_back', 'email');
23 23
 
24 24
         if ($this->method() === 'PATCH') {
25
-            $uniqueRule = $uniqueRule->where(function ($query) {
25
+            $uniqueRule = $uniqueRule->where(function($query) {
26 26
                 $query->where('email', $this->getRouteParameter('backUser'));
27 27
             });
28 28
         }
Please login to merge, or discard this patch.
app/Services/Locale/TranslationLoader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,17 +20,17 @@
 block discarded – undo
20 20
      */
21 21
     public function load($locale, $group, $namespace = null): array
22 22
     {
23
-        if (! is_null($namespace) && $namespace !== '*') {
23
+        if (!is_null($namespace) && $namespace !== '*') {
24 24
             return $this->loadNamespaced($locale, $group, $namespace);
25 25
         }
26 26
 
27
-        if (! $this->fragmentsAreAvailable()) {
27
+        if (!$this->fragmentsAreAvailable()) {
28 28
             return [];
29 29
         }
30 30
 
31 31
         return Cache::rememberForever(
32 32
             "locale.fragments.{$locale}.{$group}",
33
-            function () use ($group, $locale) {
33
+            function() use ($group, $locale) {
34 34
                 return Fragment::getGroup($group, $locale);
35 35
             }
36 36
         );
Please login to merge, or discard this patch.
app/Services/Html/HtmlBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function flashMessage(): string
13 13
     {
14
-        if (! Session::has('flash_notification.message')) {
14
+        if (!Session::has('flash_notification.message')) {
15 15
             return '';
16 16
         }
17 17
 
Please login to merge, or discard this patch.
app/Services/MissingPageRedirector/DatabaseRedirector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     {
11 11
         public function getRedirectsFor(Request $request): array
12 12
         {
13
-            return Redirect::getAll()->flatMap(function ($redirect) {
13
+            return Redirect::getAll()->flatMap(function($redirect) {
14 14
                 return [$redirect->old_url => $redirect->new_url];
15 15
             })->toArray();
16 16
         }
Please login to merge, or discard this patch.
app/Http/Controllers/Back/Updaters/UpdateTranslations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
             foreach ($model->getTranslatableAttributes() as $fieldName) {
14 14
                 $translatedFieldName = translate_field_name($fieldName, $locale);
15 15
 
16
-                if (! $request->has($translatedFieldName)) {
16
+                if (!$request->has($translatedFieldName)) {
17 17
                     continue;
18 18
                 }
19 19
 
Please login to merge, or discard this patch.
app/Http/Controllers/Back/Api/MediaLibraryController.php 1 patch
Spacing   +5 added lines, -5 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'),
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
 
59 59
     protected function getModelFromRequest(Request $request)
60 60
     {
61
-        if (! isset($request['model_name'])) {
61
+        if (!isset($request['model_name'])) {
62 62
             throw new Exception('No model name provided');
63 63
         }
64 64
 
65
-        if (! isset($request['model_id'])) {
65
+        if (!isset($request['model_id'])) {
66 66
             throw new Exception('No model id provided');
67 67
         }
68 68
 
Please login to merge, or discard this patch.
app/Http/Controllers/Back/TagsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
 
25 25
     public function index()
26 26
     {
27
-        $tags = Tag::nonDraft()->get()->reduce(function (Collection $carry, Tag $tag) {
28
-            if (! $carry->has($tag->type)) {
27
+        $tags = Tag::nonDraft()->get()->reduce(function(Collection $carry, Tag $tag) {
28
+            if (!$carry->has($tag->type)) {
29 29
                 $carry->put($tag->type, new Collection());
30 30
             }
31 31
 
Please login to merge, or discard this patch.
app/Http/Controllers/Back/MembersController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     {
59 59
         $user = $this->frontUserRepository->find($id);
60 60
 
61
-        if (! $user) {
61
+        if (!$user) {
62 62
             abort(404);
63 63
         }
64 64
 
Please login to merge, or discard this patch.