Passed
Push — master ( b5dd0a...3bec69 )
by
unknown
07:48
created
src/NewsletterServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     public function register()
24 24
     {
25
-        $this->app->singleton(Newsletter::class, function () {
25
+        $this->app->singleton(Newsletter::class, function() {
26 26
             $driver = config('newsletter.driver', null);
27 27
             if ($driver === null || $driver === 'log') {
28 28
                 return new NullDriver($driver === 'log');
Please login to merge, or discard this patch.
src/Drivers/MailchimpDriver.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         $response = $this->client->post("lists/{$list->getId()}/members", $options);
46 46
 
47
-        if (! $this->client->success()) {
47
+        if (!$this->client->success()) {
48 48
             throw ApiError::responseError($this->client->getLastError(), 'mailchimp');
49 49
         }
50 50
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
         $response = $this->client->put("lists/{$list->getId()}/members/{$this->getSubscriberHash($email)}", $options);
70 70
 
71
-        if (! $this->client->success()) {
71
+        if (!$this->client->success()) {
72 72
             throw ApiError::responseError($this->client->getLastError(), 'mailchimp');
73 73
         }
74 74
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     {
119 119
         $response = $this->getMember($email, $listName);
120 120
 
121
-        if (! isset($response['email_address'])) {
121
+        if (!isset($response['email_address'])) {
122 122
             return false;
123 123
         }
124 124
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     {
140 140
         $response = $this->getMember($email, $listName);
141 141
 
142
-        if (! isset($response)) {
142
+        if (!isset($response)) {
143 143
             return false;
144 144
         }
145 145
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
             'status' => 'unsubscribed',
166 166
         ]);
167 167
 
168
-        if (! $this->client->success()) {
168
+        if (!$this->client->success()) {
169 169
             throw ApiError::responseError($this->client->getLastError(), 'mailchimp');
170 170
         }
171 171
 
Please login to merge, or discard this patch.
src/Drivers/MailjetDriver.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
         $response = $this->client->post(Resources::$ContactslistManagecontact, ['id' => $list->getId(), 'body' => $body]);
53 53
 
54
-        if (! $response->success()) {
54
+        if (!$response->success()) {
55 55
             $this->lastError = $response->getData();
56 56
             throw ApiError::responseError($response->getReasonPhrase(), 'mailjet', $response->getStatus());
57 57
         }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
         $response = $this->client->get(Resources::$Contact, $body);
108 108
 
109
-        if (! $response->success()) {
109
+        if (!$response->success()) {
110 110
             $this->lastError = $response->getData();
111 111
             throw ApiError::responseError($response->getReasonPhrase(), 'mailjet', $response->getStatus());
112 112
         }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     {
125 125
         $response = $this->client->get(Resources::$Contact, ['id' => $email]);
126 126
 
127
-        if (! $response->success()) {
127
+        if (!$response->success()) {
128 128
             $this->lastError = $response->getData();
129 129
             throw ApiError::responseError($response->getReasonPhrase(), 'mailjet', $response->getStatus());
130 130
         }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
         $response = $this->client->get(Resources::$Contact, ['ContactsList' => $listId]);
148 148
 
149
-        if (! $response->success()) {
149
+        if (!$response->success()) {
150 150
             $this->lastError = $response->getData();
151 151
             throw ApiError::responseError($response->getReasonPhrase(), 'mailjet', $response->getStatus());
152 152
         }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 
176 176
         $response = $this->client->get(Resources::$ContactGetcontactslists, ['id' => $email]);
177 177
 
178
-        if (! $response->success()) {
178
+        if (!$response->success()) {
179 179
             $this->lastError = $response->getData();
180 180
             throw ApiError::responseError($response->getReasonPhrase(), 'mailjet', $response->getStatus());
181 181
         }
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 
210 210
         $response = $this->client->post(Resources::$ContactslistManagecontact, ['id' => $list->getId(), 'body' => $body]);
211 211
 
212
-        if (! $response->success()) {
212
+        if (!$response->success()) {
213 213
             $this->lastError = $response->getData();
214 214
             throw ApiError::responseError($response->getReasonPhrase(), 'mailjet', $response->getStatus());
215 215
         }
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
             ]
241 241
         );
242 242
 
243
-        if (! $response->success()) {
243
+        if (!$response->success()) {
244 244
             $this->lastError = $response->getData();
245 245
             throw ApiError::responseError($response->getReasonPhrase(), 'mailjet', $response->getStatus());
246 246
         }
Please login to merge, or discard this patch.