Completed
Pull Request — master (#4)
by
unknown
15:46 queued 08:25
created
lib/PHPLicengine/Service/App.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -28,22 +28,22 @@
 block discarded – undo
28 28
 
29 29
 class App {
30 30
  
31
-      private $url;
32
-      private $api;
31
+       private $url;
32
+       private $api;
33 33
  
34
-      public function __construct (ApiInterface $api)
35
-      {
36
-             $this->api = $api;
37
-             $this->url = 'https://api-ssl.bitly.com/v4/apps';       
38
-      }
34
+       public function __construct (ApiInterface $api)
35
+       {
36
+              $this->api = $api;
37
+              $this->url = 'https://api-ssl.bitly.com/v4/apps';       
38
+       }
39 39
  
40
-      /*
40
+       /*
41 41
       Retrieve OAuth App
42 42
       https://dev.bitly.com/v4/#operation/getOAuthApp
43 43
       */
44
-      public function getOAuthApp(string $client_id) 
45
-      {
46
-             return $this->api->get($this->url . '/'.$client_id);
47
-      }
44
+       public function getOAuthApp(string $client_id) 
45
+       {
46
+              return $this->api->get($this->url . '/'.$client_id);
47
+       }
48 48
       
49 49
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
       private $url;
32 32
       private $api;
33 33
  
34
-      public function __construct (ApiInterface $api)
34
+      public function __construct(ApiInterface $api)
35 35
       {
36 36
              $this->api = $api;
37 37
              $this->url = 'https://api-ssl.bitly.com/v4/apps';       
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
       */
44 44
       public function getOAuthApp(string $client_id) 
45 45
       {
46
-             return $this->api->get($this->url . '/'.$client_id);
46
+             return $this->api->get($this->url.'/'.$client_id);
47 47
       }
48 48
       
49 49
 }
Please login to merge, or discard this patch.
lib/PHPLicengine/Api/ApiInterface.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,15 +25,15 @@
 block discarded – undo
25 25
 
26 26
 interface ApiInterface
27 27
 {
28
-    public function get($url, $params = null, $headers = null);
28
+       public function get($url, $params = null, $headers = null);
29 29
 
30
-    public function post($url, $params = null, $headers = null);
30
+       public function post($url, $params = null, $headers = null);
31 31
 
32
-    public function delete($url, $params = null, $headers = null); 
32
+       public function delete($url, $params = null, $headers = null); 
33 33
 
34
-    public function put($url, $params = null, $headers = null);
34
+       public function put($url, $params = null, $headers = null);
35 35
     
36
-    public function patch($url, $params = null, $headers = null); 
36
+       public function patch($url, $params = null, $headers = null); 
37 37
     
38
-    public function setApiKey($api_key);
38
+       public function setApiKey($api_key);
39 39
 }
Please login to merge, or discard this patch.
lib/PHPLicengine/Api/Result.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,12 +102,12 @@  discard block
 block discarded – undo
102 102
               $this->curlInfo = $curlInfo;
103 103
        }
104 104
 
105
-       public function isError () 
105
+       public function isError() 
106 106
        {
107 107
               return isset($this->getResponseObject()->errors) && $this->getResponseObject()->errors;
108 108
        }
109 109
      
110
-       public function getDescription () 
110
+       public function getDescription() 
111 111
        {
112 112
               return $this->getResponseObject()->description;
113 113
        }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
               return json_decode($this->body);
128 128
        }
129 129
 
130
-       public function getResponseArray () 
130
+       public function getResponseArray() 
131 131
        {
132 132
               return json_decode($this->body, true);
133 133
        }
Please login to merge, or discard this patch.