Completed
Push — master ( 84b6a3...e6719d )
by John
01:59
created
src/Server/HTTPServer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -39,24 +39,24 @@
 block discarded – undo
39 39
 
40 40
             try {
41 41
                 $response = $this->server->handleRequest($request);
42
-                header("Content-Type: " . $response->getMIMEType());
42
+                header("Content-Type: ".$response->getMIMEType());
43 43
                 echo $response->getAsString();
44
-            } catch(InvalidAPIKeyException $e){
44
+            } catch (InvalidAPIKeyException $e) {
45 45
                 header('400 Bad Request', true, 400);
46
-            } catch(UnknownEndpointException $e){
46
+            } catch (UnknownEndpointException $e) {
47 47
                 header('404 Not Found', true, 404);
48
-            } catch(NotAcceptableResponseTypeException $e){
48
+            } catch (NotAcceptableResponseTypeException $e) {
49 49
                 header('406 Not Acceptable', true, 406);
50
-            } catch(AccessDeniedException $e){
50
+            } catch (AccessDeniedException $e) {
51 51
                 header('403 Access Denied', true, 403);
52
-            } catch(ThrottleLimitExceededException $e){
52
+            } catch (ThrottleLimitExceededException $e) {
53 53
                 header('429 Too Many Requests', true, 429);
54 54
             } catch (\Exception $e) {
55 55
                 header('500 Internal Server Error', true, 500);
56 56
             }
57
-        } catch(InvalidRequestURLException $e){
57
+        } catch (InvalidRequestURLException $e) {
58 58
             header('400 Bad Request', true, 400);
59
-        } catch(\Exception $e){
59
+        } catch (\Exception $e) {
60 60
             header('500 Internal Server Error', true, 500);
61 61
         }
62 62
     }
Please login to merge, or discard this patch.