@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | private $config; |
30 | 30 | |
31 | - public function __construct (array $config) |
|
31 | + public function __construct(array $config) |
|
32 | 32 | { |
33 | 33 | $this->config = $config; |
34 | 34 | } |
@@ -38,7 +38,7 @@ discard block |
||
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 () |
|
41 | + public function getCache() |
|
42 | 42 | { |
43 | 43 | switch ($this->config['type']) { |
44 | 44 | case 'apc': |
@@ -31,7 +31,7 @@ |
||
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/user'; |
@@ -31,7 +31,7 @@ |
||
31 | 31 | private $url; |
32 | 32 | private $api; |
33 | 33 | |
34 | - public function __construct (ApiInterface $api, array $config) |
|
34 | + public function __construct(ApiInterface $api, array $config) |
|
35 | 35 | { |
36 | 36 | $this->api = $api; |
37 | 37 | $this->url = 'https://api-ssl.bitly.com/oauth/access_token'; |
@@ -31,7 +31,7 @@ discard block |
||
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'; |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function createChannel(array $params) |
45 | 45 | { |
46 | - return $this->api->post($this->url . '/channels', $params); |
|
46 | + return $this->api->post($this->url.'/channels', $params); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | /* |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function getChannels(array $params) |
54 | 54 | { |
55 | - return $this->api->get($this->url . '/channels', $params); |
|
55 | + return $this->api->get($this->url.'/channels', $params); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /* |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function createCampaign(array $params) |
63 | 63 | { |
64 | - return $this->api->post($this->url . '/campaigns', $params); |
|
64 | + return $this->api->post($this->url.'/campaigns', $params); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /* |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | public function getCampaigns(array $params) |
72 | 72 | { |
73 | - return $this->api->get($this->url . '/campaigns', $params); |
|
73 | + return $this->api->get($this->url.'/campaigns', $params); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /* |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | public function getCampaign(string $campaign_guid) |
81 | 81 | { |
82 | - return $this->api->get($this->url . '/campaigns/'.$campaign_guid); |
|
82 | + return $this->api->get($this->url.'/campaigns/'.$campaign_guid); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | /* |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | public function updateCampaign(string $campaign_guid, array $params) |
90 | 90 | { |
91 | - return $this->api->patch($this->url . '/campaigns/'.$campaign_guid, $params); |
|
91 | + return $this->api->patch($this->url.'/campaigns/'.$campaign_guid, $params); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /* |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | */ |
98 | 98 | public function getChannel(string $channel_guid) |
99 | 99 | { |
100 | - return $this->api->get($this->url . '/channels/'.$channel_guid); |
|
100 | + return $this->api->get($this->url.'/channels/'.$channel_guid); |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | /* |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | */ |
107 | 107 | public function updateChannel(string $channel_guid, array $params) |
108 | 108 | { |
109 | - return $this->api->patch($this->url . '/channels/'.$channel_guid, $params); |
|
109 | + return $this->api->patch($this->url.'/channels/'.$channel_guid, $params); |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | } |
@@ -31,7 +31,7 @@ |
||
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/bsds'; |
@@ -26,12 +26,12 @@ discard block |
||
26 | 26 | use PHPLicengine\Exception\CurlException; |
27 | 27 | use PHPLicengine\Api\ApiInterface; |
28 | 28 | |
29 | -class Custom { |
|
29 | +class Custom { |
|
30 | 30 | |
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/custom_bitlinks'; |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function updateCustomBitlink(string $custom_bitlink, array $params) |
45 | 45 | { |
46 | - return $this->api->patch($this->url . '/'.$custom_bitlink, $params); |
|
46 | + return $this->api->patch($this->url.'/'.$custom_bitlink, $params); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | /* |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function getCustomBitlink(string $custom_bitlink) |
54 | 54 | { |
55 | - return $this->api->get($this->url . '/'.$custom_bitlink); |
|
55 | + return $this->api->get($this->url.'/'.$custom_bitlink); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /* |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | public function getCustomBitlinkMetricsByDestination(string $custom_bitlink) |
72 | 72 | { |
73 | - return $this->api->get($this->url . '/'.$custom_bitlink.'/clicks_by_destination'); |
|
73 | + return $this->api->get($this->url.'/'.$custom_bitlink.'/clicks_by_destination'); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /* |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | public function getClicksForCustomBitlink(string $custom_bitlink, array $params) |
81 | 81 | { |
82 | - return $this->api->get($this->url . '/'.$custom_bitlink."/clicks", $params); |
|
82 | + return $this->api->get($this->url.'/'.$custom_bitlink."/clicks", $params); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | } |
@@ -31,7 +31,7 @@ |
||
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/webhooks'; |
@@ -31,7 +31,7 @@ discard block |
||
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/organizations'; |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function getOrganizationShortenCounts(string $organization_guid) |
54 | 54 | { |
55 | - return $this->api->get($this->url . '/'.$organization_guid.'/shorten_counts'); |
|
55 | + return $this->api->get($this->url.'/'.$organization_guid.'/shorten_counts'); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /* |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function getOrganization(string $organization_guid) |
63 | 63 | { |
64 | - return $this->api->get($this->url . '/'.$organization_guid); |
|
64 | + return $this->api->get($this->url.'/'.$organization_guid); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /* |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | public function getPlanLimits(string $organization_guid) |
72 | 72 | { |
73 | - return $this->api->get($this->url . '/'.$organization_guid."/plan_limits"); |
|
73 | + return $this->api->get($this->url.'/'.$organization_guid."/plan_limits"); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | } |