Test Failed
Push — master ( 8bcecd...9000f3 )
by PHPLicengine
49s queued 10s
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/api-reference#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/Campaign.php 1 patch
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -28,85 +28,85 @@
 block discarded – undo
28 28
 
29 29
 class Campaign {
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';       
38
-      }
34
+       public function __construct(ApiInterface $api)
35
+       {
36
+              $this->api = $api;
37
+              $this->url = 'https://api-ssl.bitly.com/v4';       
38
+       }
39 39
  
40
-      /*
40
+       /*
41 41
       Create Channel
42 42
       https://dev.bitly.com/api-reference#createChannel
43 43
       */
44
-      public function createChannel(array $params)
45
-      {
46
-             return $this->api->post($this->url.'/channels', $params);
47
-      }
44
+       public function createChannel(array $params)
45
+       {
46
+              return $this->api->post($this->url.'/channels', $params);
47
+       }
48 48
 
49
-      /*
49
+       /*
50 50
       Retrieve Channels
51 51
       https://dev.bitly.com/api-reference#getChannels
52 52
       */
53
-      public function getChannels(array $params)
54
-      {
55
-             return $this->api->get($this->url.'/channels', $params);
56
-      }
53
+       public function getChannels(array $params)
54
+       {
55
+              return $this->api->get($this->url.'/channels', $params);
56
+       }
57 57
       
58
-      /*
58
+       /*
59 59
       Create Campaign
60 60
       https://dev.bitly.com/api-reference#createCampaign
61 61
       */
62
-      public function createCampaign(array $params)
63
-      {
64
-             return $this->api->post($this->url.'/campaigns', $params);
65
-      }
62
+       public function createCampaign(array $params)
63
+       {
64
+              return $this->api->post($this->url.'/campaigns', $params);
65
+       }
66 66
       
67
-      /*
67
+       /*
68 68
       Retrieve Campaigns
69 69
       https://dev.bitly.com/api-reference#getCampaigns
70 70
       */
71
-      public function getCampaigns(array $params)
72
-      {
73
-             return $this->api->get($this->url.'/campaigns', $params);
74
-      }
71
+       public function getCampaigns(array $params)
72
+       {
73
+              return $this->api->get($this->url.'/campaigns', $params);
74
+       }
75 75
       
76
-      /*
76
+       /*
77 77
       Retrieve a Campaign
78 78
       https://dev.bitly.com/api-reference#getCampaign
79 79
       */
80
-      public function getCampaign(string $campaign_guid)
81
-      {
82
-             return $this->api->get($this->url.'/campaigns/'.$campaign_guid);
83
-      }
80
+       public function getCampaign(string $campaign_guid)
81
+       {
82
+              return $this->api->get($this->url.'/campaigns/'.$campaign_guid);
83
+       }
84 84
       
85
-      /*
85
+       /*
86 86
       Update Campaign
87 87
       https://dev.bitly.com/api-reference#updateCampaign
88 88
       */
89
-      public function updateCampaign(string $campaign_guid, array $params)
90
-      {
91
-             return $this->api->patch($this->url.'/campaigns/'.$campaign_guid, $params);
92
-      }
89
+       public function updateCampaign(string $campaign_guid, array $params)
90
+       {
91
+              return $this->api->patch($this->url.'/campaigns/'.$campaign_guid, $params);
92
+       }
93 93
       
94
-      /*
94
+       /*
95 95
       Get A Channel
96 96
       https://dev.bitly.com/api-reference#getChannel
97 97
       */
98
-      public function getChannel(string $channel_guid)
99
-      {
100
-             return $this->api->get($this->url.'/channels/'.$channel_guid);
101
-      }
98
+       public function getChannel(string $channel_guid)
99
+       {
100
+              return $this->api->get($this->url.'/channels/'.$channel_guid);
101
+       }
102 102
       
103
-      /*
103
+       /*
104 104
       Update A Channel
105 105
       https://dev.bitly.com/api-reference#updateChannel
106 106
       */
107
-      public function updateChannel(string $channel_guid, array $params)
108
-      {
109
-             return $this->api->patch($this->url.'/channels/'.$channel_guid, $params);
110
-      }      
107
+       public function updateChannel(string $channel_guid, array $params)
108
+       {
109
+              return $this->api->patch($this->url.'/channels/'.$channel_guid, $params);
110
+       }      
111 111
  
112 112
 }
Please login to merge, or discard this patch.
lib/PHPLicengine/Service/Webhook.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 Webhook {
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/webhooks';       
38
-      }
34
+       public function __construct(ApiInterface $api)
35
+       {
36
+              $this->api = $api;
37
+              $this->url = 'https://api-ssl.bitly.com/v4/webhooks';       
38
+       }
39 39
  
40
-      /*
40
+       /*
41 41
       Create Webhook
42 42
       https://dev.bitly.com/api-reference#createWebhook
43 43
       */
44
-      public function createWebhook(array $params) 
45
-      {
46
-             return $this->api->post($this->url, $params);
47
-      }
44
+       public function createWebhook(array $params) 
45
+       {
46
+              return $this->api->post($this->url, $params);
47
+       }
48 48
 
49
-      /*
49
+       /*
50 50
       Get Webhooks
51 51
       https://dev.bitly.com/api-reference#getWebhooks
52 52
       */
53
-      public function getWebhooks(string $organization_guid) 
54
-      {
55
-             return $this->api->get("https://api-ssl.bitly.com/v4/organizations/".$organization_guid."/webhooks");
56
-      }
53
+       public function getWebhooks(string $organization_guid) 
54
+       {
55
+              return $this->api->get("https://api-ssl.bitly.com/v4/organizations/".$organization_guid."/webhooks");
56
+       }
57 57
       
58
-      /*
58
+       /*
59 59
       Retrieve Webhook
60 60
       https://dev.bitly.com/api-reference#getWebhook
61 61
       */
62
-      public function getWebhook(string $webhook_guid) 
63
-      {
64
-             return $this->api->get($this->url."/".$webhook_guid);
65
-      }      
62
+       public function getWebhook(string $webhook_guid) 
63
+       {
64
+              return $this->api->get($this->url."/".$webhook_guid);
65
+       }      
66 66
 
67
-      /*
67
+       /*
68 68
       Update Webhook
69 69
       https://dev.bitly.com/api-reference#updateWebhook
70 70
       */
71
-      public function updateWebhook(string $webhook_guid, array $params) 
72
-      {
73
-             return $this->api->patch($this->url."/".$webhook_guid, $params);
74
-      }      
71
+       public function updateWebhook(string $webhook_guid, array $params) 
72
+       {
73
+              return $this->api->patch($this->url."/".$webhook_guid, $params);
74
+       }      
75 75
 
76
-      /*
76
+       /*
77 77
       Delete Webhook
78 78
       https://dev.bitly.com/api-reference#deleteWebhook
79 79
       */
80
-      public function deleteWebhook(string $webhook_guid) 
81
-      {
82
-             return $this->api->delete($this->url."/".$webhook_guid);
83
-      }      
80
+       public function deleteWebhook(string $webhook_guid) 
81
+       {
82
+              return $this->api->delete($this->url."/".$webhook_guid);
83
+       }      
84 84
 
85 85
 }
Please login to merge, or discard this patch.