Skip to content

Commit c70316f

Browse files
committed
Apply fixes from StyleCI
1 parent 2c62008 commit c70316f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+1
-2066
lines changed

src/Api/AbstractApi.php

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -36,30 +36,22 @@ abstract class AbstractApi
3636

3737
/**
3838
* The client instance.
39-
*
40-
* @var Client
4139
*/
4240
private Client $client;
4341

4442
/**
4543
* The per page parameter.
46-
*
47-
* @var int|null
4844
*/
4945
private ?int $perPage;
5046

5147
/**
5248
* The page parameter.
53-
*
54-
* @var int|null
5549
*/
5650
private ?int $page;
5751

5852
/**
5953
* Create a new API instance.
6054
*
61-
* @param Client $client
62-
*
6355
* @return void
6456
*/
6557
public function __construct(Client $client)
@@ -70,13 +62,9 @@ public function __construct(Client $client)
7062
/**
7163
* Send a GET request with query params.
7264
*
73-
* @param string $uri
74-
* @param array $params
7565
* @param array<string,string> $headers
7666
*
7767
* @throws ExceptionInterface
78-
*
79-
* @return stdClass
8068
*/
8169
protected function get(string $uri, array $params = [], array $headers = []): stdClass
8270
{
@@ -96,13 +84,9 @@ protected function get(string $uri, array $params = [], array $headers = []): st
9684
/**
9785
* Send a POST request with JSON-encoded params.
9886
*
99-
* @param string $uri
100-
* @param array $params
10187
* @param array<string,string> $headers
10288
*
10389
* @throws ExceptionInterface
104-
*
105-
* @return stdClass
10690
*/
10791
protected function post(string $uri, array $params = [], array $headers = []): stdClass
10892
{
@@ -120,13 +104,9 @@ protected function post(string $uri, array $params = [], array $headers = []): s
120104
/**
121105
* Send a PUT request with JSON-encoded params.
122106
*
123-
* @param string $uri
124-
* @param array $params
125107
* @param array<string,string> $headers
126108
*
127109
* @throws ExceptionInterface
128-
*
129-
* @return stdClass
130110
*/
131111
protected function put(string $uri, array $params = [], array $headers = []): stdClass
132112
{
@@ -144,14 +124,10 @@ protected function put(string $uri, array $params = [], array $headers = []): st
144124
/**
145125
* Send a DELETE request with JSON-encoded params.
146126
*
147-
* @param string $uri
148-
* @param array $params
149127
* @param array<string,string> $headers
150128
* @param array<string,string> $queryParams
151129
*
152130
* @throws ExceptionInterface
153-
*
154-
* @return void
155131
*/
156132
protected function delete(string $uri, array $params = [], array $headers = [], array $queryParams = []): void
157133
{
@@ -166,11 +142,6 @@ protected function delete(string $uri, array $params = [], array $headers = [],
166142

167143
/**
168144
* Prepare the request URI.
169-
*
170-
* @param string $uri
171-
* @param array $query
172-
*
173-
* @return string
174145
*/
175146
private static function prepareUri(string $uri, array $query = []): string
176147
{
@@ -179,10 +150,6 @@ private static function prepareUri(string $uri, array $query = []): string
179150

180151
/**
181152
* Prepare the request JSON body.
182-
*
183-
* @param array $params
184-
*
185-
* @return string|null
186153
*/
187154
private static function prepareJsonBody(array $params): ?string
188155
{

src/Api/Account.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ class Account extends AbstractApi
2525
{
2626
/**
2727
* @throws ExceptionInterface
28-
*
29-
* @return AccountEntity
3028
*/
3129
public function getUserInformation(): AccountEntity
3230
{

src/Api/Action.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@ public function getAll(): array
3838
}
3939

4040
/**
41-
* @param int $id
42-
*
4341
* @throws ExceptionInterface
44-
*
45-
* @return ActionEntity
4642
*/
4743
public function getById(int $id): ActionEntity
4844
{

src/Api/App.php

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,7 @@ public function getAll(): array
4343
}
4444

4545
/**
46-
* @param string $appID
47-
*
4846
* @throws ExceptionInterface
49-
*
50-
* @return AppEntity
5147
*/
5248
public function getByID(string $appID): AppEntity
5349
{
@@ -57,11 +53,7 @@ public function getByID(string $appID): AppEntity
5753
}
5854

5955
/**
60-
* @param array $spec
61-
*
6256
* @throws ExceptionInterface
63-
*
64-
* @return AppEntity
6557
*/
6658
public function create(array $spec): AppEntity
6759
{
@@ -73,12 +65,7 @@ public function create(array $spec): AppEntity
7365
}
7466

7567
/**
76-
* @param string $appID
77-
* @param array $spec
78-
*
7968
* @throws ExceptionInterface
80-
*
81-
* @return AppEntity
8269
*/
8370
public function update(string $appID, array $spec): AppEntity
8471
{
@@ -90,20 +77,14 @@ public function update(string $appID, array $spec): AppEntity
9077
}
9178

9279
/**
93-
* @param string $appID
94-
*
9580
* @throws ExceptionInterface
96-
*
97-
* @return void
9881
*/
9982
public function remove(string $appID): void
10083
{
10184
$this->delete(\sprintf('apps/%s', $appID));
10285
}
10386

10487
/**
105-
* @param string $appID
106-
*
10788
* @throws ExceptionInterface
10889
*
10990
* @return AppDeploymentEntity[]
@@ -118,11 +99,7 @@ public function getAppDeployments(string $appID): array
11899
}
119100

120101
/**
121-
* @param string $deploymentID
122-
*
123102
* @throws ExceptionInterface
124-
*
125-
* @return AppDeploymentEntity
126103
*/
127104
public function getAppDeployment(string $appID, string $deploymentID): AppDeploymentEntity
128105
{
@@ -132,12 +109,7 @@ public function getAppDeployment(string $appID, string $deploymentID): AppDeploy
132109
}
133110

134111
/**
135-
* @param string $appID
136-
* @param bool $force_build
137-
*
138112
* @throws ExceptionInterface
139-
*
140-
* @return AppDeploymentEntity
141113
*/
142114
public function createAppDeployment(string $appID, bool $force_build = true): AppDeploymentEntity
143115
{
@@ -149,12 +121,7 @@ public function createAppDeployment(string $appID, bool $force_build = true): Ap
149121
}
150122

151123
/**
152-
* @param string $appID
153-
* @param string $deploymentID
154-
*
155124
* @throws ExceptionInterface
156-
*
157-
* @return AppDeploymentEntity
158125
*/
159126
public function cancelAppDeployment(string $appID, string $deploymentID): AppDeploymentEntity
160127
{
@@ -164,13 +131,7 @@ public function cancelAppDeployment(string $appID, string $deploymentID): AppDep
164131
}
165132

166133
/**
167-
* @param string $appID
168-
* @param string $deploymentID
169-
* @param string $componentName
170-
*
171134
* @throws ExceptionInterface
172-
*
173-
* @return AppDeploymentLogEntity
174135
*/
175136
public function getDeploymentLogs(string $appID, string $deploymentID, string $componentName): AppDeploymentLogEntity
176137
{
@@ -180,12 +141,7 @@ public function getDeploymentLogs(string $appID, string $deploymentID, string $c
180141
}
181142

182143
/**
183-
* @param string $appID
184-
* @param string $deploymentID
185-
*
186144
* @throws ExceptionInterface
187-
*
188-
* @return AppDeploymentLogEntity
189145
*/
190146
public function getAggregateDeploymentLogs(string $appID, string $deploymentID): AppDeploymentLogEntity
191147
{
@@ -223,11 +179,7 @@ public function getTiers(): array
223179
}
224180

225181
/**
226-
* @param string $slug
227-
*
228182
* @throws ExceptionInterface
229-
*
230-
* @return AppTierEntity
231183
*/
232184
public function getTierBySlug(string $slug): AppTierEntity
233185
{
@@ -251,11 +203,7 @@ public function getInstanceSizes(): array
251203
}
252204

253205
/**
254-
* @param string $slug
255-
*
256206
* @throws ExceptionInterface
257-
*
258-
* @return AppInstanceSizeEntity
259207
*/
260208
public function getInstanceSizeBySlug(string $slug): AppInstanceSizeEntity
261209
{

src/Api/CdnEndpoint.php

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,7 @@
2424
class CdnEndpoint extends AbstractApi
2525
{
2626
/**
27-
* @param string $origin
28-
* @param int|null $ttl
29-
* @param string|null $certificateId
30-
* @param string|null $customDomain
31-
*
3227
* @throws ExceptionInterface
33-
*
34-
* @return CdnEndpointEntity
3528
*/
3629
public function create(string $origin, ?int $ttl = null, ?string $certificateId = null, ?string $customDomain = null): CdnEndpointEntity
3730
{
@@ -53,11 +46,7 @@ public function create(string $origin, ?int $ttl = null, ?string $certificateId
5346
}
5447

5548
/**
56-
* @param string $id
57-
*
5849
* @throws ExceptionInterface
59-
*
60-
* @return CdnEndpointEntity
6150
*/
6251
public function getById(string $id): CdnEndpointEntity
6352
{
@@ -81,15 +70,8 @@ public function getAll(): array
8170
}
8271

8372
/**
84-
* @param string $id
85-
* @param int|null $ttl
86-
* @param string|null $certificateId
87-
* @param string|null $customDomain
88-
*
8973
* @throws ExceptionInterface
9074
* @throws InvalidArgumentException
91-
*
92-
* @return CdnEndpointEntity
9375
*/
9476
public function update(string $id, ?int $ttl = null, ?string $certificateId = null, ?string $customDomain = null): CdnEndpointEntity
9577
{
@@ -107,24 +89,15 @@ public function update(string $id, ?int $ttl = null, ?string $certificateId = nu
10789
}
10890

10991
/**
110-
* @param string $id
111-
*
11292
* @throws ExceptionInterface
113-
*
114-
* @return void
11593
*/
11694
public function remove(string $id): void
11795
{
11896
$this->delete(\sprintf('cdn/endpoints/%s', $id));
11997
}
12098

12199
/**
122-
* @param string $id
123-
* @param array|null $fileList
124-
*
125100
* @throws ExceptionInterface
126-
*
127-
* @return void
128101
*/
129102
public function purgeCache(string $id, ?array $fileList = null): void
130103
{

src/Api/Certificate.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ public function getAll(): array
3737
}
3838

3939
/**
40-
* @param string $id
41-
*
4240
* @throws ExceptionInterface
43-
*
44-
* @return CertificateEntity
4541
*/
4642
public function getById(string $id): CertificateEntity
4743
{
@@ -51,14 +47,7 @@ public function getById(string $id): CertificateEntity
5147
}
5248

5349
/**
54-
* @param string $name
55-
* @param string $privateKey
56-
* @param string $leafCertificate
57-
* @param string|null $certificateChain
58-
*
5950
* @throws ExceptionInterface
60-
*
61-
* @return CertificateEntity
6251
*/
6352
public function create(string $name, string $privateKey, string $leafCertificate, ?string $certificateChain = null): CertificateEntity
6453
{
@@ -79,12 +68,9 @@ public function create(string $name, string $privateKey, string $leafCertificate
7968
}
8069

8170
/**
82-
* @param string $name
8371
* @param string[] $dnsNames
8472
*
8573
* @throws ExceptionInterface
86-
*
87-
* @return CertificateEntity
8874
*/
8975
public function createLetsEncrypt(string $name, array $dnsNames): CertificateEntity
9076
{
@@ -100,11 +86,7 @@ public function createLetsEncrypt(string $name, array $dnsNames): CertificateEnt
10086
}
10187

10288
/**
103-
* @param string $id
104-
*
10589
* @throws ExceptionInterface
106-
*
107-
* @return void
10890
*/
10991
public function remove(string $id): void
11092
{

0 commit comments

Comments
 (0)