Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 41d0195

Browse files
authored
Apply fixes from StyleCI (#902)
1 parent 1b032b2 commit 41d0195

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/HttpApi/Controllers/Controller.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ protected function checkContentLength(ConnectionInterface $connection)
8080
->ensureValidAppId($laravelRequest->appId)
8181
->ensureValidSignature($laravelRequest);
8282

83-
$response = JsonResponse::create( $this($laravelRequest) );
83+
$response = JsonResponse::create($this($laravelRequest));
8484

8585
$content = $response->content();
86-
87-
$response->header( 'Content-Length', strlen($content) );
8886

89-
$connection->send( $response );
87+
$response->header('Content-Length', strlen($content));
88+
89+
$connection->send($response);
9090
$connection->close();
9191
}
9292
}
@@ -107,7 +107,7 @@ public function onError(ConnectionInterface $connection, Exception $exception)
107107

108108
$response = new Response($exception->getStatusCode(), [
109109
'Content-Type' => 'application/json',
110-
'Content-Length' => strlen( $responseData )
110+
'Content-Length' => strlen($responseData),
111111
], $responseData);
112112

113113
$connection->send(\GuzzleHttp\Psr7\str($response));

0 commit comments

Comments
 (0)