Test Failed
Push — master ( 63cce0...9c051c )
by Nathan
06:39 queued 10s
created
app/Console/Commands/InstallCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     {
40 40
         $this->info("\nWelcome to the installation process of Laravel Newsletter!\n");
41 41
 
42
-        if (! $this->confirm('Do you like to continue with the installation of Laravel Newsletter?')) {
42
+        if (!$this->confirm('Do you like to continue with the installation of Laravel Newsletter?')) {
43 43
             $this->info("\nYou stopped the installation of Laravel Newsletter\n");
44 44
 
45 45
             return;
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $this->line("\nInstalling..");
60 60
 
61
-        if (! file_exists('.env')) {
61
+        if (!file_exists('.env')) {
62 62
             exec('mv .env.example .env');
63 63
             $this->line("\n.env file successfully created\n");
64 64
         }
@@ -68,10 +68,10 @@  discard block
 block discarded – undo
68 68
             $this->line("\nSecret key properly generated\n");
69 69
         }
70 70
 
71
-        $dbEnv['DB_HOST'] = $this->ask('Database host');
72
-        $dbEnv['DB_DATABASE'] = $this->ask('Database name');
73
-        $dbEnv['DB_USERNAME'] = $this->ask('Database user');
74
-        $dbEnv['DB_PASSWORD'] = $this->secret('Database password ("null" for no password)');
71
+        $dbEnv[ 'DB_HOST' ] = $this->ask('Database host');
72
+        $dbEnv[ 'DB_DATABASE' ] = $this->ask('Database name');
73
+        $dbEnv[ 'DB_USERNAME' ] = $this->ask('Database user');
74
+        $dbEnv[ 'DB_PASSWORD' ] = $this->secret('Database password ("null" for no password)');
75 75
         $this->updateEnvironmentFile($dbEnv);
76 76
 
77 77
         $this->line("Application installed.\n");
Please login to merge, or discard this patch.
app/Providers/EventServiceProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
             \App\Listeners\EmailViewed::class,
21 21
         ],
22 22
         'jdavidbakr\MailTracker\Events\LinkClickedEvent' => [
23
-          \App\Listeners\EmailClicked::class,
23
+            \App\Listeners\EmailClicked::class,
24 24
         ],
25 25
     ];
26 26
 
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
     protected function mapWebRoutes()
53 53
     {
54 54
         Route::middleware('web')
55
-             ->namespace($this->namespace)
56
-             ->group(base_path('routes/web.php'));
55
+                ->namespace($this->namespace)
56
+                ->group(base_path('routes/web.php'));
57 57
     }
58 58
 
59 59
     /**
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
     protected function mapApiRoutes()
67 67
     {
68 68
         Route::prefix('api')
69
-             ->middleware('api')
70
-             ->namespace($this->namespace)
71
-             ->group(base_path('routes/api.php'));
69
+                ->middleware('api')
70
+                ->namespace($this->namespace)
71
+                ->group(base_path('routes/api.php'));
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
app/Jobs/SendCampaign.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,9 +56,9 @@
 block discarded – undo
56 56
 
57 57
         $chunk = ceil($lists->count() / 4);
58 58
 
59
-        $lists->each(function ($list) use ($chunk) {
60
-            $list->subscriptions()->chunk($chunk, function ($subscriptions) {
61
-                $subscriptions->each(function ($subscription) {
59
+        $lists->each(function($list) use ($chunk) {
60
+            $list->subscriptions()->chunk($chunk, function($subscriptions) {
61
+                $subscriptions->each(function($subscription) {
62 62
                     Mail::to($subscription)->queue(new CampaignMail($subscription, $this->campaign, $this->template));
63 63
                 });
64 64
             });
Please login to merge, or discard this patch.
app/Utilities/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -271,7 +271,7 @@
 block discarded – undo
271 271
     ];
272 272
 
273 273
     if ($key) {
274
-        return $arr[$key];
274
+        return $arr[ $key ];
275 275
     }
276 276
 
277 277
     return $arr;
Please login to merge, or discard this patch.
app/Http/Middleware/LocaleMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 
8 8
 class LocaleMiddleware
9 9
 {
10
-    protected $languages = ['en', 'nl'];
10
+    protected $languages = [ 'en', 'nl' ];
11 11
 
12 12
     /**
13 13
      * Handle an incoming request.
Please login to merge, or discard this patch.
app/Http/Controllers/Account/PasswordController.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
         $check = Hash::check($request->input('old_password'), auth()->user()->password);
26 26
 
27
-        if (! $check) {
28
-            return redirect()->back()->withErrors(['Your current password is incorrect!']);
27
+        if (!$check) {
28
+            return redirect()->back()->withErrors([ 'Your current password is incorrect!' ]);
29 29
         }
30 30
 
31 31
         $user = $request->user();
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/RegisterController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,9 +63,9 @@
 block discarded – undo
63 63
     protected function create(array $data)
64 64
     {
65 65
         return User::create([
66
-            'username' => $data['username'],
67
-            'email' => $data['email'],
68
-            'password' => bcrypt($data['password']),
66
+            'username' => $data[ 'username' ],
67
+            'email' => $data[ 'email' ],
68
+            'password' => bcrypt($data[ 'password' ]),
69 69
         ]);
70 70
     }
71 71
 
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/LoginController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
      */
35 35
     public function __construct()
36 36
     {
37
-        $this->middleware('guest', ['except' => 'logout']);
37
+        $this->middleware('guest', [ 'except' => 'logout' ]);
38 38
     }
39 39
 }
Please login to merge, or discard this patch.