Test Failed
Push — master ( b4ac3a...033694 )
by PHPLicengine
09:57 queued 02:57
created
lib/PHPLicengine/Service/Custom.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -28,58 +28,58 @@
 block discarded – undo
28 28
 
29 29
 class Custom  {
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/custom_bitlinks';       
38
-      }
34
+       public function __construct (ApiInterface $api)
35
+       {
36
+              $this->api = $api;
37
+              $this->url = 'https://api-ssl.bitly.com/v4/custom_bitlinks';       
38
+       }
39 39
  
40
-      /*
40
+       /*
41 41
       Update Custom Bitlink
42 42
       https://dev.bitly.com/api-reference#updateCustomBitlink
43 43
       */
44
-      public function updateCustomBitlink(string $custom_bitlink, array $params)
45
-      {
46
-             return $this->api->patch($this->url . '/'.$custom_bitlink, $params);
47
-      }
44
+       public function updateCustomBitlink(string $custom_bitlink, array $params)
45
+       {
46
+              return $this->api->patch($this->url . '/'.$custom_bitlink, $params);
47
+       }
48 48
 
49
-      /*
49
+       /*
50 50
       Retrieve Custom Bitlink
51 51
       https://dev.bitly.com/api-reference#getCustomBitlink
52 52
       */
53
-      public function getCustomBitlink(string $custom_bitlink)
54
-      {
55
-             return $this->api->get($this->url . '/'.$custom_bitlink);
56
-      }
53
+       public function getCustomBitlink(string $custom_bitlink)
54
+       {
55
+              return $this->api->get($this->url . '/'.$custom_bitlink);
56
+       }
57 57
       
58
-      /*
58
+       /*
59 59
       Add Custom Bitlink
60 60
       https://dev.bitly.com/api-reference#addCustomBitlink
61 61
       */
62
-      public function addCustomBitlink(array $params)
63
-      {
64
-             return $this->api->post($this->url, $params);
65
-      }
62
+       public function addCustomBitlink(array $params)
63
+       {
64
+              return $this->api->post($this->url, $params);
65
+       }
66 66
       
67
-      /*
67
+       /*
68 68
       Get Metrics for a Custom Bitlink by destination
69 69
       https://dev.bitly.com/api-reference#getCustomBitlinkMetricsByDestination
70 70
       */
71
-      public function getCustomBitlinkMetricsByDestination(string $custom_bitlink, array $params = array())
72
-      {
73
-             return $this->api->get($this->url . '/'.$custom_bitlink.'/clicks_by_destination', $params);
74
-      }
71
+       public function getCustomBitlinkMetricsByDestination(string $custom_bitlink, array $params = array())
72
+       {
73
+              return $this->api->get($this->url . '/'.$custom_bitlink.'/clicks_by_destination', $params);
74
+       }
75 75
       
76
-      /*
76
+       /*
77 77
       Get Clicks for a Custom Bitlink's Entire History
78 78
       https://dev.bitly.com/api-reference#getClicksForCustomBitlink
79 79
       */
80
-      public function getClicksForCustomBitlink(string $custom_bitlink, array $params = array())
81
-      {
82
-             return $this->api->get($this->url . '/'.$custom_bitlink."/clicks", $params);
83
-      }
80
+       public function getClicksForCustomBitlink(string $custom_bitlink, array $params = array())
81
+       {
82
+              return $this->api->get($this->url . '/'.$custom_bitlink."/clicks", $params);
83
+       }
84 84
  
85 85
 }
Please login to merge, or discard this patch.