Skip to content

Commit 8b0c821

Browse files
committed
Fix StyleCI issues
1 parent 1b71cde commit 8b0c821

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

src/Api/Groups.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1033,10 +1033,11 @@ public function search($id, array $parameters = [])
10331033
}
10341034

10351035
/**
1036-
* Get a list of registry repositories in a group
1036+
* Get a list of registry repositories in a group.
10371037
* @see https://docs.gitlab.com/ee/api/container_registry.html#within-a-group
10381038
*
10391039
* @param $id: The ID of a group
1040+
*
10401041
* @return mixed
10411042
*/
10421043
public function registryRepositories(int $id)

src/Api/Projects.php

+1
Original file line numberDiff line numberDiff line change
@@ -1838,6 +1838,7 @@ public function search($id, array $parameters = [])
18381838
*
18391839
* @param int|string $project_id
18401840
* @param array $parameters {
1841+
*
18411842
* @var bool $tags If the parameter is included as true, each repository includes an array of "tags" in the response.
18421843
* @var bool $tags_count If the parameter is included as true, each repository includes "tags_count" in the response.
18431844
* }

src/Api/Registry.php

+8-3
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,20 @@
1515
namespace Gitlab\Api;
1616

1717
use Symfony\Component\OptionsResolver\Options;
18-
use Symfony\Component\OptionsResolver\OptionsResolver;
1918

2019
class Registry extends AbstractApi
2120
{
2221
/**
2322
* @see https://docs.gitlab.com/ee/api/container_registry.html#get-details-of-a-single-repository
2423
*
25-
* @param int|string $repository_id The ID of the registry repository accessible by the authenticated user.
24+
* @param int|string $repository_id The ID of the registry repository accessible by the authenticated user
2625
* @param array $parameters {
26+
*
2727
* @var bool $tags
2828
* @var bool $tags_count
2929
* @var bool $size
3030
* }
31+
*
3132
* @return mixed
3233
*/
3334
public function repositories($repository_id, array $parameters = [])
@@ -55,6 +56,7 @@ public function repositories($repository_id, array $parameters = [])
5556
*
5657
* @param int|string $project_id
5758
* @param int $repository_id
59+
*
5860
* @return mixed
5961
*/
6062
public function repositoryTags($project_id, int $repository_id)
@@ -71,6 +73,7 @@ public function repositoryTags($project_id, int $repository_id)
7173
* @param int|string $project_id
7274
* @param int $repository_id
7375
* @param string $tag_name
76+
*
7477
* @return mixed
7578
*/
7679
public function repositoryTag($project_id, int $repository_id, string $tag_name)
@@ -90,6 +93,7 @@ public function repositoryTag($project_id, int $repository_id, string $tag_name)
9093
* @param int|string $project_id
9194
* @param int $repository_id
9295
* @param string $tag_name
96+
*
9397
* @return mixed
9498
*/
9599
public function removeRepositoryTag($project_id, int $repository_id, string $tag_name)
@@ -108,11 +112,13 @@ public function removeRepositoryTag($project_id, int $repository_id, string $tag
108112
* @param int|string $project_id
109113
* @param int $repository_id
110114
* @param array $parameters {
115+
*
111116
* @var string $name_regex_delete
112117
* @var string $name_regex_keep
113118
* @var int $keep_n
114119
* @var string $older_than
115120
* }
121+
*
116122
* @return mixed
117123
*/
118124
public function removeRepositoryTags($project_id, int $repository_id, array $parameters = [])
@@ -127,7 +133,6 @@ public function removeRepositoryTags($project_id, int $repository_id, array $par
127133
$resolver->setDefined('older_than')
128134
->setAllowedTypes('older_than', 'string');
129135

130-
131136
return $this->delete(
132137
$this->getProjectPath(
133138
$project_id,

tests/Api/ProjectsTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3076,15 +3076,15 @@ public function shouldGetProjectRegistryRepositoriesTags(): void
30763076
{
30773077
$expectedArray = [
30783078
['id' => 1, 'name' => 'A registry', 'tags' => ['1.0', '1.1'], 'tags_count' => 2],
3079-
['id' => 2, 'name' => 'Another registry', 'tags' => ['2.0', '2.1'], 'tags_count' => 2]
3079+
['id' => 2, 'name' => 'Another registry', 'tags' => ['2.0', '2.1'], 'tags_count' => 2],
30803080
];
30813081

30823082
$api = $this->getApiMock();
30833083
$api->expects($this->once())
30843084
->method('get')
30853085
->with('projects/123/registry/repositories', [
30863086
'tags' => true,
3087-
'tags_count' => true
3087+
'tags_count' => true,
30883088
])
30893089
->will($this->returnValue($expectedArray));
30903090

tests/Api/RegistryTest.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ public function shouldGetSingleRepositoryWithParams(): void
6060
*/
6161
public function shouldGetRepositoryTags(): void
6262
{
63-
$expectedArray = [['name' => "A", 'path' => 'group/project:A'], ['name' => "B", 'path' => 'group/project:B']];
64-
63+
$expectedArray = [['name' => 'A', 'path' => 'group/project:A'], ['name' => 'B', 'path' => 'group/project:B']];
6564
$api = $this->getApiMock();
6665
$api->expects($this->once())
6766
->method('get')
@@ -77,7 +76,7 @@ public function shouldGetRepositoryTags(): void
7776
*/
7877
public function shouldGetRepositoryTag(): void
7978
{
80-
$expectedArray = ['name' => "A", 'path' => 'group/project:A'];
79+
$expectedArray = ['name' => 'A', 'path' => 'group/project:A'];
8180

8281
$api = $this->getApiMock();
8382
$api->expects($this->once())

0 commit comments

Comments
 (0)