Failed Conditions
Push — master ( 2a7938...ff349a )
by Sander
27:39 queued 19:45
created
middleware/apimiddleware.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
 	}
17 17
 
18 18
 	public function afterController($controller, $methodName, Response $response) {
19
-		if($response instanceof JSONResponse){
19
+		if ($response instanceof JSONResponse) {
20 20
 			$origin = $this->request->server['HTTP_ORIGIN'];
21
-			if($origin) {
21
+			if ($origin) {
22 22
 				$response->addHeader('Access-Control-Allow-Origin', $origin);
23 23
 			}
24 24
 		}
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 	}
17 17
 
18 18
 	public function afterController($controller, $methodName, Response $response) {
19
-		if($response instanceof JSONResponse){
19
+		if($response instanceof JSONResponse) {
20 20
 			$origin = $this->request->server['HTTP_ORIGIN'];
21 21
 			if($origin) {
22 22
 				$response->addHeader('Access-Control-Allow-Origin', $origin);
Please login to merge, or discard this patch.