Completed
Push — master ( 99efad...cd6453 )
by PHPLicengine
08:45 queued 05:31
created
lib/PHPLicengine/Service/Bsd.php 1 patch
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 Bsd {
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/bsds';       
38
-      }
34
+       public function __construct (ApiInterface $api)
35
+       {
36
+              $this->api = $api;
37
+              $this->url = 'https://api-ssl.bitly.com/v4/bsds';       
38
+       }
39 39
  
40
-      /*
40
+       /*
41 41
       Get BSDs
42 42
       https://dev.bitly.com/v4/#operation/getBSDs
43 43
       */
44
-      public function getBSDs() 
45
-      {
46
-             return $this->api->get($this->url);
47
-      }
44
+       public function getBSDs() 
45
+       {
46
+              return $this->api->get($this->url);
47
+       }
48 48
       
49 49
 }
Please login to merge, or discard this patch.
lib/PHPLicengine/Service/App.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -28,21 +28,21 @@
 block discarded – undo
28 28
 
29 29
 class App {
30 30
  
31
-      private $url;
31
+       private $url;
32 32
       
33
-      public function __construct (ApiInterface $api)
34
-      {
35
-             $this->api = $api;
36
-             $this->url = 'https://api-ssl.bitly.com/v4/apps';       
37
-      }
33
+       public function __construct (ApiInterface $api)
34
+       {
35
+              $this->api = $api;
36
+              $this->url = 'https://api-ssl.bitly.com/v4/apps';       
37
+       }
38 38
  
39
-      /*
39
+       /*
40 40
       Retrieve OAuth App
41 41
       https://dev.bitly.com/v4/#operation/getOAuthApp
42 42
       */
43
-      public function getOAuthApp(string $client_id) 
44
-      {
45
-             return $this->api->get($this->url . '/'.$client_id);
46
-      }
43
+       public function getOAuthApp(string $client_id) 
44
+       {
45
+              return $this->api->get($this->url . '/'.$client_id);
46
+       }
47 47
       
48 48
 }
Please login to merge, or discard this patch.
lib/PHPLicengine/Cache/Cache.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -26,21 +26,21 @@  discard block
 block discarded – undo
26 26
 
27 27
 class Cache {
28 28
  
29
-      private $config;
29
+       private $config;
30 30
       
31
-      public function __construct (array $config)
32
-      {
33
-             $this->config = $config;       
34
-      }
31
+       public function __construct (array $config)
32
+       {
33
+              $this->config = $config;       
34
+       }
35 35
 
36
-      /*
36
+       /*
37 37
       This class uses Doctrine Cache. You can look at its doc to add more cache type.
38 38
       Whatever option you need to setup the cache type, must be passed as array to constructor.
39 39
       https://www.doctrine-project.org/projects/doctrine-cache/en/1.8/index.html
40 40
       */
41
-      public function getCache ()
42
-      {
43
-             switch ($this->config['type']) {
41
+       public function getCache ()
42
+       {
43
+              switch ($this->config['type']) {
44 44
                      case 'apc':
45 45
                           $cache = new \Doctrine\Common\Cache\ApcuCache();
46 46
                      break;
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
                      break;
50 50
                      case 'sqlite3':
51 51
                           $db = new \SQLite3($this->config['sqlite3_db']);
52
-                          $cache = new \Doctrine\Common\Cache\SQLite3Cache($db, $this->config['sqlite3_table']);
52
+                            $cache = new \Doctrine\Common\Cache\SQLite3Cache($db, $this->config['sqlite3_table']);
53 53
                      break;
54
-                      default:
54
+                            default:
55 55
                           throw new CacheException('Invalid cache system');
56
-                      break;
57
-             } 
58
-             return $cache;
59
-      }
56
+                            break;
57
+              } 
58
+              return $cache;
59
+       }
60 60
 }
Please login to merge, or discard this patch.