Test Setup Failed
Push — master ( 9c051c...e3a06c )
by Nathan
05:54
created
app/Filters/SubscriptionFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      *
13 13
      * @var array
14 14
      */
15
-    public $relations = [];
15
+    public $relations = [ ];
16 16
 
17 17
     /**
18 18
      * @param $filter
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function filter($filter)
22 22
     {
23
-        return $this->where(function ($q) use ($filter) {
23
+        return $this->where(function($q) use ($filter) {
24 24
             return $q->where('email', 'LIKE', '%'.$filter.'%')
25 25
                 ->orWhere('name', 'LIKE', '%'.$filter.'%');
26 26
         });
Please login to merge, or discard this patch.
app/Models/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 
72 72
     public function generate2faKey()
73 73
     {
74
-        if (! $this->google2fa_secret) {
74
+        if (!$this->google2fa_secret) {
75 75
             $google2fa = new Google2FA();
76 76
 
77 77
             $this->google2fa_secret = $google2fa->generateSecretKey();
Please login to merge, or discard this patch.
app/Models/Subscription.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
     {
69 69
         parent::boot();
70 70
 
71
-        static::creating(function ($subscription) {
71
+        static::creating(function($subscription) {
72 72
             $subscription->unsubscribe = str_random(25);
73 73
         });
74 74
     }
Please login to merge, or discard this patch.
app/Mail/ListImported.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
         return $this->markdown('emails.lists.imported')
36 36
             ->subject(trans('emails.lists.imported.subject'))
37
-            ->with(['list' => $this->list]);
37
+            ->with([ 'list' => $this->list ]);
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
app/Mail/CampaignSendMail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public function build()
33 33
     {
34
-        return $this->markdown('emails.campaigns.send', ['campaign' => $this->campaign->name, 'subscribers' => count($this->subscriptions)])
34
+        return $this->markdown('emails.campaigns.send', [ 'campaign' => $this->campaign->name, 'subscribers' => count($this->subscriptions) ])
35 35
             ->subject(trans('emails.campaigns.send.subject'));
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
app/Mail/CampaignMail.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@
 block discarded – undo
45 45
                     '%email%' => $this->subscription->email,
46 46
                     '%name%' => $this->subscription->name,
47 47
                     '%country%' => countries($this->subscription->country),
48
-                    '%unsubscribe_link%' => route('subscriptions.preunsubscribe', [$this->subscription->email, $this->subscription->unsubscribe])
48
+                    '%unsubscribe_link%' => route('subscriptions.preunsubscribe', [ $this->subscription->email, $this->subscription->unsubscribe ])
49 49
                 ], $this->template->content)
50
-            ])->withSwiftMessage(function ($message) {
50
+            ])->withSwiftMessage(function($message) {
51 51
                 $headers = $message->getHeaders();
52 52
                 $headers->addTextHeader('X-Campaign-ID', $this->campaign->id);
53 53
             });
Please login to merge, or discard this patch.
app/Filters/TemplateFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      *
13 13
      * @var array
14 14
      */
15
-    public $relations = [];
15
+    public $relations = [ ];
16 16
 
17 17
     /**
18 18
      * @param $name
Please login to merge, or discard this patch.
app/Filters/MailingListFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      *
13 13
      * @var array
14 14
      */
15
-    public $relations = [];
15
+    public $relations = [ ];
16 16
 
17 17
     /**
18 18
      * @param $name
Please login to merge, or discard this patch.
app/Http/Middleware/LocaleMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 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.
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     public function handle($request, Closure $next)
20 20
     {
21 21
         if (Auth::check()) {
22
-            $lang = Auth::user()->preferences['language'];
22
+            $lang = Auth::user()->preferences[ 'language' ];
23 23
 
24 24
             app()->setLocale($lang);
25 25
         }
Please login to merge, or discard this patch.