Skip to content

Commit d7f2bca

Browse files
author
matt
committed
fix to ensure build passes
1 parent a435f03 commit d7f2bca

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Http/Controllers/UnSubController.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,15 @@ function ($x) {
136136
$response = $client->request('GET', $url);
137137
}
138138

139-
$code = $response->getStatusCode();
139+
$code = $response->getStatusCode();
140140

141141

142142
$body = $response->getBody();
143143

144144
$conversation->setMeta("List-Unsubscribe-Submitted", ["status" => $response->getStatusCode(), "reason" => $response->getReasonPhrase()]);
145145

146146
$auth_user = auth()->user();
147-
error_log($auth_user);
147+
error_log($auth_user);
148148
$created_by_user_id = (gettype($auth_user) == "object") ? $auth_user->id : $auth_user ;
149149
\App\Thread::create(
150150
$conversation, Thread::TYPE_LINEITEM,
@@ -163,10 +163,10 @@ function ($x) {
163163
]
164164
);
165165

166-
if ($code>=200 && $code <=299) {
167-
$conversation->changeStatus(Conversation::STATUS_CLOSED,$auth_user, false);
168-
}
169-
166+
if ($code>=200 && $code <=299) {
167+
$conversation->changeStatus(Conversation::STATUS_CLOSED, $auth_user, false);
168+
}
169+
170170
} catch (ConnectException $e) {
171171

172172
$auth_user = auth()->user();
@@ -185,10 +185,10 @@ function ($x) {
185185
'code' => 501,
186186
'message' => "Sorry, something went wrong: " . $e->getMessage(),
187187
'lineNumber' => $e->getLine(),
188-
'trace'=>$e->getTraceAsString(),
189-
'method' => ($unsubPost) ? 'POST' : "GET",
190-
'url' => $url,
191-
'opts' => $opts,
188+
'trace'=>$e->getTraceAsString(),
189+
'method' => ($unsubPost) ? 'POST' : "GET",
190+
'url' => $url,
191+
'opts' => $opts,
192192
]
193193
]
194194
);
@@ -210,11 +210,11 @@ function ($x) {
210210
'code' => 501,
211211
'message' => "Sorry, something went wrong: " . $e->getMessage(),
212212
'lineNumber' => $e->getLine(),
213-
'trace'=>$e->getTraceAsString(),
214-
'method' => ($unsubPost) ? 'POST' : "GET",
215-
'user' => json_encode($auth_user),
216-
'url' => $url,
217-
'opts' => $opts,
213+
'trace'=>$e->getTraceAsString(),
214+
'method' => ($unsubPost) ? 'POST' : "GET",
215+
'user' => json_encode($auth_user),
216+
'url' => $url,
217+
'opts' => $opts,
218218
]
219219
]
220220
);

0 commit comments

Comments
 (0)