Test Setup Failed
Push — a-simpler-manager ( 9beba5...d99f82 )
by Ben
06:26
created
src/Admin/Mediagallery/MimetypeIcon.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@
 block discarded – undo
29 29
 
30 30
     public function icon(): string
31 31
     {
32
-        if(isset($this->mapping[$this->mimetype])) {
32
+        if (isset($this->mapping[$this->mimetype])) {
33 33
             return $this->mapping[$this->mimetype];
34 34
         }
35 35
 
36
-        foreach($this->mapping as $mimetype => $icon) {
37
-            if(Str::contains($this->mimetype, $mimetype)) {
36
+        foreach ($this->mapping as $mimetype => $icon) {
37
+            if (Str::contains($this->mimetype, $mimetype)) {
38 38
                 return $icon;
39 39
             }
40 40
         }
Please login to merge, or discard this patch.
src/Admin/Nav/Nav.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function untagged(): self
32 32
     {
33
-        $filteredItems = array_filter($this->items, function(NavItem $navItem){
33
+        $filteredItems = array_filter($this->items, function(NavItem $navItem) {
34 34
             return $navItem->isUntagged();
35 35
         });
36 36
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     {
42 42
         $instance = new static();
43 43
 
44
-        foreach($navItems as $item) {
44
+        foreach ($navItems as $item) {
45 45
             $instance->add($item);
46 46
         }
47 47
 
Please login to merge, or discard this patch.
src/Admin/Nav/NavItem.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function isTagged($tags): bool
33 33
     {
34
-        return count(array_intersect($this->tags, (array) $tags)) > 0;
34
+        return count(array_intersect($this->tags, (array)$tags)) > 0;
35 35
     }
36 36
 
37 37
     public function isUntagged(): bool
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     public function render(): string
43 43
     {
44
-        $output = '<a class="' . (isActiveUrl($this->url()) ? 'active' : '') . '" href="' . $this->url() . '">';
44
+        $output = '<a class="'.(isActiveUrl($this->url()) ? 'active' : '').'" href="'.$this->url().'">';
45 45
         $output .= ucfirst($this->label());
46 46
         $output .= '</a>';
47 47
 
Please login to merge, or discard this patch.
src/Admin/Settings/Application/ChangeHomepage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     {
55 55
         foreach ($modelReferences as $locale => $modelReferenceString) {
56 56
             if (!$modelReferenceString) {
57
-                throw new \InvalidArgumentException('Homepage setting value cannot be empty. Value for locale ' . $locale . ' is missing.');
57
+                throw new \InvalidArgumentException('Homepage setting value cannot be empty. Value for locale '.$locale.' is missing.');
58 58
             }
59 59
         }
60 60
     }
Please login to merge, or discard this patch.
src/Admin/Settings/SettingFieldsManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
 
52 52
     public function editFields(): Fields
53 53
     {
54
-        return $this->fields()->map(function (Field $field) {
55
-            return $field->valueResolver(function ($model = null, $locale = null, $field) {
54
+        return $this->fields()->map(function(Field $field) {
55
+            return $field->valueResolver(function($model = null, $locale = null, $field) {
56 56
                 return $this->settings->get($field->getKey(), $locale);
57 57
             });
58 58
         });
Please login to merge, or discard this patch.
src/Admin/Settings/SettingsServiceProvider.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
 
14 14
     public function register()
15 15
     {
16
-        $this->app->singleton(Settings::class, function ($app) {
16
+        $this->app->singleton(Settings::class, function($app) {
17 17
             return new Settings();
18 18
         });
19 19
     }
Please login to merge, or discard this patch.
src/Admin/Users/User.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
     public function getFullnameAttribute()
59 59
     {
60
-        return $this->firstname . ' ' . $this->lastname;
60
+        return $this->firstname.' '.$this->lastname;
61 61
     }
62 62
 
63 63
     public function isSquantoDeveloper()
@@ -67,6 +67,6 @@  discard block
 block discarded – undo
67 67
 
68 68
     public function getShortNameAttribute()
69 69
     {
70
-        return $this->firstname . ' ' . substr($this->lastname, 0, 1) . '.';
70
+        return $this->firstname.' '.substr($this->lastname, 0, 1).'.';
71 71
     }
72 72
 }
Please login to merge, or discard this patch.
src/Admin/Users/Invites/InvitationPresenter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,6 +36,6 @@
 block discarded – undo
36 36
                 break;
37 37
         }
38 38
 
39
-        return '<span class="label ' . $flair . '">uitnodiging ' . $this->invitation->stateOf(InvitationState::KEY) . '</span>';
39
+        return '<span class="label '.$flair.'">uitnodiging '.$this->invitation->stateOf(InvitationState::KEY).'</span>';
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
src/Admin/HealthMonitor/Monitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
                 }
33 33
 
34 34
                 return;
35
-            } else {
35
+            }else {
36 36
                 foreach ($notifiers as $notifier) {
37 37
                     app($notifier)->onSuccess($checkInstance);
38 38
                 }
Please login to merge, or discard this patch.