Completed
Push — master ( 0d8264...0f9782 )
by Sebastian
03:43
created
app/Foundation/Models/Enums/Enum.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 {
9 9
     public function equals(Enum $enum) : bool
10 10
     {
11
-        if (! $enum instanceof $this) {
11
+        if (!$enum instanceof $this) {
12 12
             throw new EnumTypesDontMatch();
13 13
         }
14 14
 
@@ -17,12 +17,12 @@  discard block
 block discarded – undo
17 17
 
18 18
     public function doesntEqual(Enum $enum) : bool
19 19
     {
20
-        return ! $this->equals($enum);
20
+        return !$this->equals($enum);
21 21
     }
22 22
 
23 23
     public static function allAsRegex() : string
24 24
     {
25
-        return collect(static::values())->map(function ($value) {
25
+        return collect(static::values())->map(function($value) {
26 26
             return "({$value})";
27 27
         })->implode('|');
28 28
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Back/FrontUserController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     {
58 58
         $user = $this->frontUserRepository->find($id);
59 59
 
60
-        if (! $user) abort(404);
60
+        if (!$user) abort(404);
61 61
 
62 62
         return view('back.frontUsers.edit')->with(compact('user'));
63 63
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,9 @@
 block discarded – undo
57 57
     {
58 58
         $user = $this->frontUserRepository->find($id);
59 59
 
60
-        if (! $user) abort(404);
60
+        if (! $user) {
61
+            abort(404);
62
+        }
61 63
 
62 64
         return view('back.frontUsers.edit')->with(compact('user'));
63 65
     }
Please login to merge, or discard this patch.
app/Http/Middleware/Authenticate.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 handle($request, Closure $next)
12 12
     {
13
-        if (! current_user()) {
13
+        if (!current_user()) {
14 14
             return $this->handleUnauthorizedRequest($request);
15 15
         }
16 16
 
Please login to merge, or discard this patch.
app/Http/Routes/front_auth.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-Route::group(['middleware' => 'guest'], function () {
3
+Route::group(['middleware' => 'guest'], function() {
4 4
 
5 5
     Route::get('login', 'AuthController@getLogin');
6 6
     Route::post('login', 'AuthController@postLogin');
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     Route::get('password/reset/{token}', 'PasswordController@getReset');
11 11
     Route::post('password/reset/{token}', 'PasswordController@postReset');
12 12
 
13
-    Route::get('password', function () {
13
+    Route::get('password', function() {
14 14
         return redirect()->action('PasswordController@getEmail');
15 15
     });
16 16
 });
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,14 +21,14 @@  discard block
 block discarded – undo
21 21
 
22 22
     public function map(Router $router)
23 23
     {
24
-        $router->group(['namespace' => $this->namespace], function () {
24
+        $router->group(['namespace' => $this->namespace], function() {
25 25
             require app_path('Http/Routes/routes.php');
26 26
         });
27 27
     }
28 28
 
29 29
     protected function registerMacros(Router $router)
30 30
     {
31
-        $router->macro('module', function ($slug, $className, $sortable = false) use ($router) {
31
+        $router->macro('module', function($slug, $className, $sortable = false) use ($router) {
32 32
             if ($sortable) {
33 33
                 $router->patch("{$slug}/changeOrder", "{$className}Controller@changeOrder");
34 34
             }
@@ -36,15 +36,15 @@  discard block
 block discarded – undo
36 36
             $router->resource($slug, "{$className}Controller");
37 37
         });
38 38
 
39
-        $router->macro('articleList', function ($technicalNamePrefix, $action) use ($router) {
39
+        $router->macro('articleList', function($technicalNamePrefix, $action) use ($router) {
40 40
 
41 41
             $articles = Article::getWithTechnicalNameLike($technicalNamePrefix);
42 42
 
43
-            $router->get(app()->getLocale().'/'.fragment_slug("navigation.{$technicalNamePrefix}"),  function () use ($articles) {
43
+            $router->get(app()->getLocale().'/'.fragment_slug("navigation.{$technicalNamePrefix}"), function() use ($articles) {
44 44
                 return redirect(route("{$articles->first()->technical_name}"));
45 45
             })->name($technicalNamePrefix);
46 46
 
47
-            $articles->map(function ($article) use ($technicalNamePrefix, $action, $router) {
47
+            $articles->map(function($article) use ($technicalNamePrefix, $action, $router) {
48 48
                 $router->get(app()->getLocale().'/'.fragment_slug("navigation.{$technicalNamePrefix}").'/'.$article->url, $action)->name("{$article->technical_name}");
49 49
             });
50 50
         });
Please login to merge, or discard this patch.
app/Services/Auth/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
     public function isCurrentUser() : bool
57 57
     {
58
-        if (! $this->id) {
58
+        if (!$this->id) {
59 59
             return false;
60 60
         }
61 61
 
Please login to merge, or discard this patch.
app/Services/Locale/CurrentLocale.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     public static function getContentLocale() : string
26 26
     {
27
-        if (! static::isValidLocale(locale())) {
27
+        if (!static::isValidLocale(locale())) {
28 28
             return config('app.locales')[0];
29 29
         }
30 30
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     protected static function isValidLocale($locale) : bool
35 35
     {
36
-        if (! is_string($locale)) {
36
+        if (!is_string($locale)) {
37 37
             return false;
38 38
         }
39 39
 
Please login to merge, or discard this patch.
app/Services/Mailers/MemberMailer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     public function sendPasswordEmail(User $user)
21 21
     {
22
-        Password::broker('front')->sendResetLink(['email' => $user->email], function (Message $message) {
22
+        Password::broker('front')->sendResetLink(['email' => $user->email], function(Message $message) {
23 23
             $message->subject('Welkom bij '.request()->getHost());
24 24
         });
25 25
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Back/AuthController.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@
 block discarded – undo
38 38
         return fragment('auth.failed');
39 39
     }
40 40
 
41
+    /**
42
+     * @param Request $request
43
+     */
41 44
     protected function sendInactiveAccountResponse($request)
42 45
     {
43 46
         return redirect()->back()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     protected function authenticated(Request $request, User $user)
26 26
     {
27
-        if (! $user->isActive()) {
27
+        if (!$user->isActive()) {
28 28
             auth()->guard('front')->logout();
29 29
 
30 30
             return $this->sendInactiveAccountResponse($request);
Please login to merge, or discard this patch.