Skip to content

Commit a61fe84

Browse files
committed
StyleCI fixes
1 parent c72fdae commit a61fe84

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

lib/Github/Api/Deployment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Github\Api;
44

5-
use Github\Api\Deployment\Policies;
65
use Github\Api\Deployment\Environments;
6+
use Github\Api\Deployment\Policies;
77
use Github\Exception\MissingArgumentException;
88

99
/**

lib/Github/Api/Deployment/Policies.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
class Policies extends AbstractApi
1313
{
1414
/**
15-
* List deployment branch policies
15+
* List deployment branch policies.
1616
*
1717
* @link https://docs.github.com/en/rest/deployments/branch-policies?apiVersion=2022-11-28#list-deployment-branch-policies
1818
*
19-
* @param string $username the username of the user who owns the repository
20-
* @param string $repository the name of the repository
19+
* @param string $username the username of the user who owns the repository
20+
* @param string $repository the name of the repository
2121
* @param string $environment the name of the environment.
22-
* @param array $params query parameters to filter deployments by (see link)
22+
* @param array $params query parameters to filter deployments by (see link)
2323
*
2424
* @return array the deployments requested
2525
*/
@@ -29,14 +29,14 @@ public function all(string $username, string $repository, string $environment, a
2929
}
3030

3131
/**
32-
* Get a deployment branch policy
32+
* Get a deployment branch policy.
3333
*
3434
* @link https://docs.github.com/en/rest/deployments/branch-policies?apiVersion=2022-11-28#get-a-deployment-branch-policy
3535
*
36-
* @param string $username the username of the user who owns the repository
37-
* @param string $repository the name of the repository
36+
* @param string $username the username of the user who owns the repository
37+
* @param string $repository the name of the repository
3838
* @param string $environment the name of the environment.
39-
* @param int $id The unique identifier of the branch policy.
39+
* @param int $id the unique identifier of the branch policy.
4040
*
4141
* @return array
4242
*/
@@ -50,8 +50,8 @@ public function show(string $username, string $repository, string $environment,
5050
*
5151
* @link https://docs.github.com/en/rest/deployments/branch-policies?apiVersion=2022-11-28#create-a-deployment-branch-policy
5252
*
53-
* @param string $username the username of the user who owns the repository
54-
* @param string $repository the name of the repository
53+
* @param string $username the username of the user who owns the repository
54+
* @param string $repository the name of the repository
5555
* @param string $environment the name of the environment.
5656
*
5757
* @return array information about the deployment branch policy
@@ -66,10 +66,10 @@ public function create(string $username, string $repository, string $environment
6666
*
6767
* @link https://docs.github.com/en/rest/deployments/branch-policies?apiVersion=2022-11-28#update-a-deployment-branch-policy
6868
*
69-
* @param string $username the username of the user who owns the repository
70-
* @param string $repository the name of the repository
69+
* @param string $username the username of the user who owns the repository
70+
* @param string $repository the name of the repository
7171
* @param string $environment the name of the environment.
72-
* @param int $id The unique identifier of the branch policy.
72+
* @param int $id the unique identifier of the branch policy.
7373
*
7474
* @return array information about the deployment branch policy
7575
*/
@@ -79,14 +79,14 @@ public function update(string $username, string $repository, string $environment
7979
}
8080

8181
/**
82-
* Delete a deployment branch policy
82+
* Delete a deployment branch policy.
8383
*
8484
* @link https://docs.github.com/en/rest/deployments/branch-policies?apiVersion=2022-11-28#delete-a-deployment-branch-policy
8585
*
86-
* @param string $username the username of the user who owns the repository
87-
* @param string $repository the name of the repository
86+
* @param string $username the username of the user who owns the repository
87+
* @param string $repository the name of the repository
8888
* @param string $environment the name of the environment.
89-
* @param int $id The unique identifier of the branch policy.
89+
* @param int $id the unique identifier of the branch policy.
9090
*
9191
* @return mixed null on success, array on error with 'message'
9292
*/

test/Github/Tests/Api/Deployment/PoliciesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function shouldCreatePolicy()
1818
->with('/repos/KnpLabs/php-github-api/environments/production/deployment-branch-policies');
1919

2020
$api->create('KnpLabs', 'php-github-api', 'production', [
21-
'name' => 'name'
21+
'name' => 'name',
2222
]);
2323
}
2424

@@ -34,7 +34,7 @@ public function shouldUpdatePolicy()
3434
->with('/repos/KnpLabs/php-github-api/environments/production/deployment-branch-policies/1');
3535

3636
$api->update('KnpLabs', 'php-github-api', 'production', 1, [
37-
'name' => 'name'
37+
'name' => 'name',
3838
]);
3939
}
4040

0 commit comments

Comments
 (0)