Completed
Push — master ( a1e4b4...06575d )
by Freek
03:19
created
app/Http/Controllers/Front/Api/NewsletterController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
         $result = Newsletter::subscribe($email);
29 29
 
30
-        if (! $result) {
30
+        if (!$result) {
31 31
             return $this->respondWithBadRequest(['message' => fragment('newsletter.subscription.result.error'), 'type' => 'error']);
32 32
         }
33 33
 
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/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/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/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.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
     protected function registerMacros(Router $router)
27 27
     {
28
-        $router->macro('module', function ($module, $sortable = false) use ($router) {
28
+        $router->macro('module', function($module, $sortable = false) use ($router) {
29 29
             $controller = ucfirst($module).'Controller';
30 30
             if ($sortable) {
31 31
                 $router->patch("{$module}/changeOrder", $controller.'@changeOrder');
@@ -39,15 +39,15 @@  discard block
 block discarded – undo
39 39
 
40 40
     public function map(Router $router)
41 41
     {
42
-        Route::group(['namespace' => $this->namespace], function () {
42
+        Route::group(['namespace' => $this->namespace], function() {
43 43
 
44 44
             /*
45 45
              * Special routes
46 46
              */
47
-            Route::group(['middleware' => 'web'], function () {
47
+            Route::group(['middleware' => 'web'], function() {
48 48
                 Route::demoAccess('/demo');
49 49
 
50
-                Route::get('coming-soon', function () {
50
+                Route::get('coming-soon', function() {
51 51
                     return view('temp/index');
52 52
                 });
53 53
             });
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
             /*
56 56
              * Back site
57 57
              */
58
-            Route::group(['namespace' => 'Back', 'middleware' => 'web', 'prefix' => 'blender'], function () {
58
+            Route::group(['namespace' => 'Back', 'middleware' => 'web', 'prefix' => 'blender'], function() {
59 59
                 Auth::routes();
60 60
 
61
-                Route::group(['middleware' => 'auth'], function () {
61
+                Route::group(['middleware' => 'auth'], function() {
62 62
                     require base_path('routes/back.php');
63 63
                 });
64 64
             });
@@ -67,15 +67,15 @@  discard block
 block discarded – undo
67 67
              * Frontsite
68 68
              */
69 69
 
70
-            Route::group(['namespace' => 'Front'], function () {
71
-                Route::group(['namespace' => 'Api', 'middleware' => 'api', 'prefix' => 'api'], function () {
70
+            Route::group(['namespace' => 'Front'], function() {
71
+                Route::group(['namespace' => 'Api', 'middleware' => 'api', 'prefix' => 'api'], function() {
72 72
                     require base_path('routes/frontApi.php');
73 73
                 });
74 74
 
75
-                Route::group(['middleware' => ['web', 'demoMode', 'rememberLocale']], function () {
75
+                Route::group(['middleware' => ['web', 'demoMode', 'rememberLocale']], function() {
76 76
                     $multiLingual = count(config('app.locales')) > 1;
77 77
 
78
-                    Route::group($multiLingual ? ['prefix' => locale()] : [], function () {
78
+                    Route::group($multiLingual ? ['prefix' => locale()] : [], function() {
79 79
                         try {
80 80
                             Auth::routes();
81 81
                             require base_path('routes/front.php');
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                     });
86 86
 
87 87
                     if ($multiLingual) {
88
-                        Route::get('/', function () {
88
+                        Route::get('/', function() {
89 89
                             return redirect(locale());
90 90
                         });
91 91
                     }
Please login to merge, or discard this patch.
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/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/Models/ContentBlock.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,11 +56,11 @@
 block discarded – undo
56 56
         }
57 57
 
58 58
         foreach ($this->mediaLibraryCollectionNames() as $collection) {
59
-            if (! isset($values[$collection])) {
59
+            if (!isset($values[$collection])) {
60 60
                 continue;
61 61
             }
62 62
 
63
-            $media = array_filter($values[$collection], function ($media) {
63
+            $media = array_filter($values[$collection], function($media) {
64 64
                 return ($media['markedForRemoval'] ?? false) !== true;
65 65
             });
66 66
 
Please login to merge, or discard this patch.