Completed
Push — master ( c5a067...e0ad06 )
by Freek
03:05
created
app/Providers/ValidationServiceProvider.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
     public function boot()
11 11
     {
12
-        Validator::extend('enum', function ($attribute, $value, $parameters) {
12
+        Validator::extend('enum', function($attribute, $value, $parameters) {
13 13
 
14 14
             /** @var \App\Foundation\Enums\Enum $class */
15 15
             $class = $parameters[0];
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
@@ -9,24 +9,24 @@
 block discarded – undo
9 9
 {
10 10
     public function register()
11 11
     {
12
-        Menu::macro('front', function () {
12
+        Menu::macro('front', function() {
13 13
             return Menu::new()->setActiveFromRequest(locale());
14 14
         });
15 15
 
16
-        Menu::macro('main', function () {
16
+        Menu::macro('main', function() {
17 17
             return Menu::front()
18 18
                 ->addClass('nav__list')
19 19
                 ->url('/', 'Home');
20 20
         });
21 21
 
22
-        Menu::macro('language', function () {
23
-            return Menu::build(locales(), function (Menu $menu, string $locale) {
22
+        Menu::macro('language', function() {
23
+            return Menu::build(locales(), function(Menu $menu, string $locale) {
24 24
                 return $menu->url($locale, strtoupper($locale));
25 25
             })->setActiveFromRequest();
26 26
         });
27 27
 
28
-        Menu::macro('articleSiblings', function (Article $article) {
29
-            return $article->siblings->reduce(function (Menu $menu, Article $article) {
28
+        Menu::macro('articleSiblings', function(Article $article) {
29
+            return $article->siblings->reduce(function(Menu $menu, Article $article) {
30 30
                 return $menu->url($article->fullUrl, $article->name);
31 31
             }, Menu::front());
32 32
         });
Please login to merge, or discard this patch.
app/Mail/EventHandler.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,18 +14,18 @@
 block discarded – undo
14 14
 {
15 15
     public function subscribe(Dispatcher $events)
16 16
     {
17
-        $events->listen(FrontUserRegistered::class, function (FrontUserRegistered $event) {
17
+        $events->listen(FrontUserRegistered::class, function(FrontUserRegistered $event) {
18 18
             Mail::send(new Welcome($event->user));
19 19
         });
20 20
 
21
-        $events->listen(FrontUserCreatedThroughBack::class, function (FrontUserCreatedThroughBack $event) {
22
-            Password::broker('front')->sendResetLink(['email' => $event->user->email], function (Message $message) {
21
+        $events->listen(FrontUserCreatedThroughBack::class, function(FrontUserCreatedThroughBack $event) {
22
+            Password::broker('front')->sendResetLink(['email' => $event->user->email], function(Message $message) {
23 23
                 $message->subject('Welkom bij '.config('app.url'));
24 24
             });
25 25
         });
26 26
 
27
-        $events->listen(BackUserCreated::class, function (BackUserCreated $event) {
28
-            Password::broker('back')->sendResetLink(['email' => $event->user->email], function (Message $message) {
27
+        $events->listen(BackUserCreated::class, function(BackUserCreated $event) {
28
+            Password::broker('back')->sendResetLink(['email' => $event->user->email], function(Message $message) {
29 29
                 $message->subject('Welkom bij '.config('app.url'));
30 30
             });
31 31
         });
Please login to merge, or discard this patch.
app/Http/Controllers/Back/Auth/LoginController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,9 +52,9 @@
 block discarded – undo
52 52
 
53 53
         $request->session()->regenerate();
54 54
 
55
-        $frontLink = '<a href="/">'. fragment('back.auth.frontLink') . '</a>';
55
+        $frontLink = '<a href="/">'.fragment('back.auth.frontLink').'</a>';
56 56
 
57
-        flash()->info( trans('auth.loggedOut') . ' ' . $frontLink);
57
+        flash()->info(trans('auth.loggedOut').' '.$frontLink);
58 58
 
59 59
         return redirect(login_url());
60 60
     }
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
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
 
26 26
     public function index()
27 27
     {
28
-        $tags = Tag::get()->reduce(function (Collection $carry, Tag $tag) {
29
-            if (! $carry->has($tag->type)) {
28
+        $tags = Tag::get()->reduce(function(Collection $carry, Tag $tag) {
29
+            if (!$carry->has($tag->type)) {
30 30
                 $carry->put($tag->type, new Collection());
31 31
             }
32 32
 
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/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/Repositories/ArticleRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@
 block discarded – undo
30 30
     {
31 31
         return Cache::rememberForever(
32 32
             "article.specialArticle.{$specialArticle}",
33
-            function () use ($specialArticle) {
33
+            function() use ($specialArticle) {
34 34
                 $article = Article::where('technical_name', $specialArticle)->first();
35 35
 
36
-                if (! $article) {
36
+                if (!$article) {
37 37
                     throw new Exception("There is no article with technical_name `{$specialArticle}`");
38 38
                 }
39 39
 
Please login to merge, or discard this patch.