Skip to content

Commit 85dac94

Browse files
committed
Apply fixes from StyleCI
1 parent aabd6cc commit 85dac94

Some content is hidden

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

41 files changed

+0
-1131
lines changed

src/Api/AbstractApi.php

-12
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ protected function getAsResponse(string $uri, array $params = [], array $headers
7777
/**
7878
* @param array<string,mixed> $params
7979
* @param array<string,string> $headers
80-
*
81-
* @return mixed
8280
*/
8381
protected function get(string $uri, array $params = [], array $headers = []): mixed
8482
{
@@ -92,8 +90,6 @@ protected function get(string $uri, array $params = [], array $headers = []): mi
9290
* @param array<string,string> $headers
9391
* @param array<string,string> $files
9492
* @param array<string,mixed> $uriParams
95-
*
96-
* @return mixed
9793
*/
9894
protected function post(string $uri, array $params = [], array $headers = [], array $files = [], array $uriParams = []): mixed
9995
{
@@ -118,8 +114,6 @@ protected function post(string $uri, array $params = [], array $headers = [], ar
118114
* @param array<string,mixed> $params
119115
* @param array<string,string> $headers
120116
* @param array<string,string> $files
121-
*
122-
* @return mixed
123117
*/
124118
protected function put(string $uri, array $params = [], array $headers = [], array $files = []): mixed
125119
{
@@ -144,8 +138,6 @@ protected function put(string $uri, array $params = [], array $headers = [], arr
144138
* @param array<string,mixed> $params
145139
* @param array<string,string> $headers
146140
* @param array<string,string> $files
147-
*
148-
* @return mixed
149141
*/
150142
protected function patch(string $uri, array $params = [], array $headers = [], array $files = []): mixed
151143
{
@@ -169,8 +161,6 @@ protected function patch(string $uri, array $params = [], array $headers = [], a
169161
/**
170162
* @param array<string,string> $headers
171163
* @param array<string,mixed> $uriParams
172-
*
173-
* @return mixed
174164
*/
175165
protected function putFile(string $uri, string $file, array $headers = [], array $uriParams = []): mixed
176166
{
@@ -189,8 +179,6 @@ protected function putFile(string $uri, string $file, array $headers = [], array
189179
/**
190180
* @param array<string,mixed> $params
191181
* @param array<string,string> $headers
192-
*
193-
* @return mixed
194182
*/
195183
protected function delete(string $uri, array $params = [], array $headers = []): mixed
196184
{

src/Api/DeployKeys.php

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616

1717
class DeployKeys extends AbstractApi
1818
{
19-
/**
20-
* @return mixed
21-
*/
2219
public function all(array $parameters = []): mixed
2320
{
2421
$resolver = $this->createOptionsResolver();

src/Api/Deployments.php

-5
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ class Deployments extends AbstractApi
2727
* 'canceled', 'blocked'
2828
* @var string $environment Return deployments filtered to a particular environment
2929
* }
30-
*
31-
* @return mixed
3230
*/
3331
public function all(int|string $project_id, array $parameters = []): mixed
3432
{
@@ -48,9 +46,6 @@ public function all(int|string $project_id, array $parameters = []): mixed
4846
return $this->get($this->getProjectPath($project_id, 'deployments'), $resolver->resolve($parameters));
4947
}
5048

51-
/**
52-
* @return mixed
53-
*/
5449
public function show(int|string $project_id, int $deployment_id): mixed
5550
{
5651
return $this->get($this->getProjectPath($project_id, 'deployments/'.$deployment_id));

src/Api/Environments.php

-14
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818

1919
class Environments extends AbstractApi
2020
{
21-
/**
22-
* @return mixed
23-
*/
2421
public function all(int|string $project_id, array $parameters = []): mixed
2522
{
2623
$resolver = $this->createOptionsResolver();
@@ -42,8 +39,6 @@ public function all(int|string $project_id, array $parameters = []): mixed
4239
* @var string $external_url Place to link to for this environment
4340
* @var string $tier The tier of the new environment. Allowed values are production, staging, testing, development, and other.
4441
* }
45-
*
46-
* @return mixed
4742
*/
4843
public function create(int|string $project_id, array $parameters = []): mixed
4944
{
@@ -59,25 +54,16 @@ public function create(int|string $project_id, array $parameters = []): mixed
5954
return $this->post($this->getProjectPath($project_id, 'environments'), $resolver->resolve($parameters));
6055
}
6156

62-
/**
63-
* @return mixed
64-
*/
6557
public function remove(int|string $project_id, int $environment_id): mixed
6658
{
6759
return $this->delete($this->getProjectPath($project_id, 'environments/'.$environment_id));
6860
}
6961

70-
/**
71-
* @return mixed
72-
*/
7362
public function stop(int|string $project_id, int $environment_id): mixed
7463
{
7564
return $this->post($this->getProjectPath($project_id, 'environments/'.self::encodePath($environment_id).'/stop'));
7665
}
7766

78-
/**
79-
* @return mixed
80-
*/
8167
public function show(int|string $project_id, int $environment_id): mixed
8268
{
8369
return $this->get($this->getProjectPath($project_id, 'environments/'.self::encodePath($environment_id)));

src/Api/Events.php

-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ class Events extends AbstractApi
2828
* @var string $sort sort events in asc or desc order by created_at
2929
*
3030
* }
31-
*
32-
* @return mixed
3331
*/
3432
public function all(array $parameters = []): mixed
3533
{

0 commit comments

Comments
 (0)