Skip to content

Commit 3d60d65

Browse files
committed
Import StyleCI Updates
1 parent b8476a6 commit 3d60d65

File tree

3 files changed

+1
-40
lines changed

3 files changed

+1
-40
lines changed

src/Api/Integrations.php

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919

2020
class Integrations extends AbstractApi
2121
{
22-
/**
23-
* @param int|string $project_id
24-
*
25-
* @return mixed
26-
*/
2722
public function all(int|string $project_id): mixed
2823
{
2924
$path = $this->getProjectPath($project_id, 'integrations');
@@ -37,10 +32,8 @@ public function all(int|string $project_id): mixed
3732
* Create Microsoft Teams integration
3833
* Set Microsoft Teams integration for a project.
3934
*
40-
* @param int|string $project_id
4135
* @param array $params {
4236
*
43-
* @return mixed
4437
*@var string $webhook The Microsoft Teams webhook
4538
* @var bool $notify_only_broken_pipelines Send notifications for broken pipelines
4639
* @var string $branches_to_be_notified Branches to send notifications for. Valid options are all, default,
@@ -55,7 +48,6 @@ public function all(int|string $project_id): mixed
5548
* @var bool $pipeline_events Enable notifications for pipeline events
5649
* @var bool $wiki_page_events Enable notifications for wiki page events
5750
* }
58-
*
5951
*/
6052
public function createMicrosoftTeams(int|string $project_id, array $params = []): mixed
6153
{
@@ -120,10 +112,8 @@ public function createMicrosoftTeams(int|string $project_id, array $params = [])
120112
* Update Microsoft Teams integration
121113
* Set Microsoft Teams integration for a project.
122114
*
123-
* @param int|string $project_id
124115
* @param array $params {
125116
*
126-
* @return mixed
127117
*@var string $webhook The Microsoft Teams webhook
128118
* @var bool $notify_only_broken_pipelines Send notifications for broken pipelines
129119
* @var string $branches_to_be_notified Branches to send notifications for. Valid options are all, default,
@@ -138,7 +128,6 @@ public function createMicrosoftTeams(int|string $project_id, array $params = [])
138128
* @var bool $pipeline_events Enable notifications for pipeline events
139129
* @var bool $wiki_page_events Enable notifications for wiki page events
140130
* }
141-
*
142131
*/
143132
public function updateMicrosoftTeams(int|string $project_id, array $params = []): mixed
144133
{
@@ -147,10 +136,6 @@ public function updateMicrosoftTeams(int|string $project_id, array $params = [])
147136

148137
/**
149138
* Get Microsoft Teams integration settings for a project.
150-
*
151-
* @param int|string $project_id
152-
*
153-
* @return mixed
154139
*/
155140
public function getMicrosoftTeams(int|string $project_id): mixed
156141
{
@@ -159,10 +144,6 @@ public function getMicrosoftTeams(int|string $project_id): mixed
159144

160145
/**
161146
* Disable the Microsoft Teams integration for a project. Integration settings are reset.
162-
*
163-
* @param int|string $project_id
164-
*
165-
* @return mixed
166147
*/
167148
public function removeMicrosoftTeams(int|string $project_id): mixed
168149
{
@@ -175,10 +156,8 @@ public function removeMicrosoftTeams(int|string $project_id): mixed
175156
* Create Jira integration
176157
* Set Jira integration for a project.
177158
*
178-
* @param int|string $project_id
179159
* @param array $params {
180160
*
181-
* @return mixed
182161
*@var string $url The URL to the Jira project which is being linked to this GitLab project
183162
* @var bool $api_url The base URL to the Jira instance API. Web URL value is used if not set
184163
* @var string $username The email or username to be used with Jira. For Jira Cloud use an email,
@@ -205,7 +184,6 @@ public function removeMicrosoftTeams(int|string $project_id): mixed
205184
* @var string $comment_on_event_enabled Enable comments inside Jira issues on each GitLab event
206185
* (commit / merge request)
207186
* }
208-
*
209187
*/
210188
public function createJira(int|string $project_id, array $params = []): mixed
211189
{
@@ -268,10 +246,8 @@ public function createJira(int|string $project_id, array $params = []): mixed
268246
* Update Jira integration
269247
* Set Jira integration for a project.
270248
*
271-
* @param int|string $project_id
272249
* @param array $params {
273250
*
274-
* @return mixed
275251
*@var string $url The URL to the Jira project which is being linked to this GitLab project
276252
* @var bool $api_url The base URL to the Jira instance API. Web URL value is used if not set
277253
* @var string $username The email or username to be used with Jira. For Jira Cloud use an email,
@@ -298,7 +274,6 @@ public function createJira(int|string $project_id, array $params = []): mixed
298274
* @var string $comment_on_event_enabled Enable comments inside Jira issues on each GitLab event
299275
* (commit / merge request)
300276
* }
301-
*
302277
*/
303278
public function updateJira(int|string $project_id, array $params = []): mixed
304279
{
@@ -307,10 +282,6 @@ public function updateJira(int|string $project_id, array $params = []): mixed
307282

308283
/**
309284
* Get Jira integration settings for a project.
310-
*
311-
* @param int|string $project_id
312-
*
313-
* @return mixed
314285
*/
315286
public function getJira(int|string $project_id): mixed
316287
{
@@ -319,10 +290,6 @@ public function getJira(int|string $project_id): mixed
319290

320291
/**
321292
* Disable the Jira integration for a project. Integration settings are reset.
322-
*
323-
* @param int|string $project_id
324-
*
325-
* @return mixed
326293
*/
327294
public function removeJira(int|string $project_id): mixed
328295
{

src/Api/Projects.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,11 +1281,6 @@ public function search(int|string $id, array $parameters = []): mixed
12811281
return $this->get('projects/'.self::encodePath($id).'/search', $resolver->resolve($parameters));
12821282
}
12831283

1284-
/**
1285-
* @param int|string $project_id
1286-
*
1287-
* @return mixed
1288-
*/
12891284
public function integrations(int|string $project_id): mixed
12901285
{
12911286
return $this->get($this->getProjectPath($project_id, 'integrations'));

tests/Api/ProjectsTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2766,7 +2766,7 @@ public function shouldSearchGroups(): void
27662766
]));
27672767
}
27682768

2769-
# [Test]
2769+
#[Test]
27702770
public function shouldGetIntegrations(): void
27712771
{
27722772
$api = $this->getApiMock();
@@ -2779,5 +2779,4 @@ public function shouldGetIntegrations(): void
27792779

27802780
$this->assertEquals([], $api->integrations(1));
27812781
}
2782-
27832782
}

0 commit comments

Comments
 (0)