Completed
Branch master (73f336)
by John
01:59
created
src/Request/URLParser/BasicURLParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      */
15 15
     public function parse(string $url): ParsedURL {
16 16
         $splitURL = explode('/', trim($url, '/'));
17
-        if(count($splitURL) < 3){
17
+        if (count($splitURL) < 3) {
18 18
             throw new InvalidRequestURLException();
19 19
         }
20 20
         //Find endpoint
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
         $instance = null;
29 29
 
30
-        if(count($splitURL) == 4){
30
+        if (count($splitURL) == 4) {
31 31
             $instance = implode('.', $splitExtension);
32 32
         } else {
33 33
             $endpoint = implode('.', $splitExtension);
Please login to merge, or discard this patch.
src/Request/Request.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * @param string $extension
63 63
      * @param string $instance
64 64
      */
65
-    public function __construct($method, array $headers, RequestData $body, RequestData $urlData, $ip, $version, $apiKey, $endpoint, $extension, $instance = null){
65
+    public function __construct($method, array $headers, RequestData $body, RequestData $urlData, $ip, $version, $apiKey, $endpoint, $extension, $instance = null) {
66 66
         $this->method = strtolower($method);
67 67
         $this->headers = $headers;
68 68
         $this->body = $body;
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * @return string
87 87
      */
88 88
     public function getMethod() {
89
-        return $this->method . ($this->instance ? '' : 'All');
89
+        return $this->method.($this->instance ? '' : 'All');
90 90
     }
91 91
 
92 92
     /**
Please login to merge, or discard this patch.