Completed
Push — master ( 35155e...7f072f )
by Sebastian
09:52 queued 06:27
created
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/Middleware/LoginAs.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
             return $next($request);
19 19
         }
20 20
 
21
-        if (! $this->canLoginAs()) {
21
+        if (!$this->canLoginAs()) {
22 22
             throw new Exception("You can't log in as a specific user right now");
23 23
         }
24 24
 
@@ -29,15 +29,15 @@  discard block
 block discarded – undo
29 29
     {
30 30
         // Just to be sure...
31 31
 
32
-        if (! app()->environment('local')) {
32
+        if (!app()->environment('local')) {
33 33
             return false;
34 34
         }
35 35
 
36
-        if (! ends_with(request()->getHost(), '.dev')) {
36
+        if (!ends_with(request()->getHost(), '.dev')) {
37 37
             return false;
38 38
         }
39 39
 
40
-        if (! in_array(env('DB_USERNAME'), ['homestead', 'root'])) {
40
+        if (!in_array(env('DB_USERNAME'), ['homestead', 'root'])) {
41 41
             return false;
42 42
         }
43 43
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     protected function getUser(string $identifier): Authenticatable
63 63
     {
64
-        if (! str_contains($identifier, '@')) {
64
+        if (!str_contains($identifier, '@')) {
65 65
             $identifier .= '@spatie.be';
66 66
         }
67 67
 
Please login to merge, or discard this patch.
app/Foundation/helpers.php 1 patch
Spacing   +6 added lines, -8 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
  */
36 36
 function current_front_user()
37 37
 {
38
-    if (! auth()->guard('front')->check()) {
38
+    if (!auth()->guard('front')->check()) {
39 39
         return;
40 40
     }
41 41
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
  */
48 48
 function current_back_user()
49 49
 {
50
-    if (! auth()->guard('back')->check()) {
50
+    if (!auth()->guard('back')->check()) {
51 51
         return;
52 52
     }
53 53
 
@@ -89,15 +89,13 @@  discard block
 block discarded – undo
89 89
 function login_url(): string
90 90
 {
91 91
     return request()->isFront() ?
92
-        action('Front\Auth\LoginController@showLoginForm') :
93
-        action('Back\Auth\LoginController@showLoginForm');
92
+        action('Front\Auth\LoginController@showLoginForm') : action('Back\Auth\LoginController@showLoginForm');
94 93
 }
95 94
 
96 95
 function logout_url(): string
97 96
 {
98 97
     return request()->isFront() ?
99
-        action('Front\Auth\LoginController@logout') :
100
-        action('Back\Auth\LoginController@logout');
98
+        action('Front\Auth\LoginController@logout') : action('Back\Auth\LoginController@logout');
101 99
 }
102 100
 
103 101
 function roman_year(int $year = null): string
@@ -158,11 +156,11 @@  discard block
 block discarded – undo
158 156
  */
159 157
 function validate($fields, $rules): bool
160 158
 {
161
-    if (! is_array($fields)) {
159
+    if (!is_array($fields)) {
162 160
         $fields = ['default' => $fields];
163 161
     }
164 162
 
165
-    if (! is_array($rules)) {
163
+    if (!is_array($rules)) {
166 164
         $rules = ['default' => $rules];
167 165
     }
168 166
 
Please login to merge, or discard this patch.
app/Models/FormResponse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
 
12 12
     public static function downloadAll()
13 13
     {
14
-        Excel::create('Responses '.date('Y-m-d'), function ($excel) {
15
-            $excel->sheet('Responses', function ($sheet) {
14
+        Excel::create('Responses '.date('Y-m-d'), function($excel) {
15
+            $excel->sheet('Responses', function($sheet) {
16 16
                 $sheet->freezeFirstRow();
17 17
 
18
-                $sheet->cells('A1:Z1', function ($cells) {
18
+                $sheet->cells('A1:Z1', function($cells) {
19 19
                     $cells->setFontWeight('bold');
20 20
                     $cells->setBorder('node', 'none', 'solid', 'none');
21 21
                 });
Please login to merge, or discard this patch.
app/Providers/ValidationServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 {
11 11
     public function boot()
12 12
     {
13
-        Validator::extend('tags_exist', function ($attribute, $tagNames, $parameters) {
13
+        Validator::extend('tags_exist', function($attribute, $tagNames, $parameters) {
14 14
             list($tagType) = $parameters;
15 15
             $tagType = new TagType($tagType);
16 16
 
@@ -19,14 +19,14 @@  discard block
 block discarded – undo
19 19
                 ->pluck('name')
20 20
                 ->toArray();
21 21
 
22
-            if (! \Spatie\values_in_array($tagNames, $exisitingTagNames)) {
22
+            if (!\Spatie\values_in_array($tagNames, $exisitingTagNames)) {
23 23
                 return false;
24 24
             }
25 25
 
26 26
             return true;
27 27
         });
28 28
 
29
-        Validator::extend('enum', function ($attribute, $value, $parameters) {
29
+        Validator::extend('enum', function($attribute, $value, $parameters) {
30 30
 
31 31
             /** @var \App\Foundation\Models\Enums\Enum $class */
32 32
             $class = $parameters[0];
Please login to merge, or discard this patch.
app/Providers/ConfigServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         }
33 33
 
34 34
         try {
35
-            if (! class_exists('Memcached')) {
35
+            if (!class_exists('Memcached')) {
36 36
                 throw new Exception();
37 37
             }
38 38
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         config()->set(
52 52
             'mail.recipients',
53
-            collect(config('mail.recipients'))->map(function () {
53
+            collect(config('mail.recipients'))->map(function() {
54 54
                 return '[email protected]';
55 55
             })
56 56
         );
Please login to merge, or discard this patch.
app/Foundation/Enums/Enum.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 {
10 10
     public function doesntEqual(Enum $enum): bool
11 11
     {
12
-        return ! $this->equals($enum);
12
+        return !$this->equals($enum);
13 13
     }
14 14
 
15 15
     public static function toCollection():  Collection
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
     public static function allAsRegex(): string
21 21
     {
22
-        return collect(static::values())->map(function ($value) {
22
+        return collect(static::values())->map(function($value) {
23 23
             return "({$value})";
24 24
         })->implode('|');
25 25
     }
Please login to merge, or discard this patch.
app/Services/Navigation/Menu/FrontMenus.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,24 +10,24 @@
 block discarded – undo
10 10
 {
11 11
     public function register()
12 12
     {
13
-        Menu::macro('front', function () {
13
+        Menu::macro('front', function() {
14 14
             return Menu::new()->setActiveFromRequest(locale());
15 15
         });
16 16
 
17
-        Menu::macro('main', function () {
17
+        Menu::macro('main', function() {
18 18
             return Menu::front()
19 19
                 ->addClass('nav__list')
20 20
                 ->url('/', 'Home');
21 21
         });
22 22
 
23
-        Menu::macro('language', function () {
24
-            return locales()->reduce(function (Menu $menu, string $locale) {
23
+        Menu::macro('language', function() {
24
+            return locales()->reduce(function(Menu $menu, string $locale) {
25 25
                 $menu->url($locale, $locale);
26 26
             }, Menu::front());
27 27
         });
28 28
 
29
-        Menu::macro('articleSiblings', function (Article $article) {
30
-            return $article->siblings->reduce(function (Menu $menu, Article $article) {
29
+        Menu::macro('articleSiblings', function(Article $article) {
30
+            return $article->siblings->reduce(function(Menu $menu, Article $article) {
31 31
                 return $menu->url($article->fullUrl, $article->name);
32 32
             }, Menu::front());
33 33
         });
Please login to merge, or discard this patch.
app/Models/Article.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     public function isSpecialArticle(): bool
43 43
     {
44
-        return ! empty($this->technical_name);
44
+        return !empty($this->technical_name);
45 45
     }
46 46
 
47 47
     public function children(): HasMany
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
     public function getFirstChildAttribute(): Article
58 58
     {
59
-        if (! $this->hasChildren()) {
59
+        if (!$this->hasChildren()) {
60 60
             throw new Exception("Article `{$this->id}` doesn't have any children.");
61 61
         }
62 62
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
     public function hasParent(): bool
79 79
     {
80
-        return ! is_null($this->parent);
80
+        return !is_null($this->parent);
81 81
     }
82 82
 
83 83
     public function getFullUrlAttribute(): string
Please login to merge, or discard this patch.