Skip to content

Commit f7feca5

Browse files
Apply fixes from StyleCI (#561)
1 parent e7e6bc3 commit f7feca5

34 files changed

+322
-322
lines changed

src/Api/AbstractApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,10 @@ private static function addJsonContentType(array $headers)
348348
* @param string $filename File to open
349349
* @param string $mode Mode used to open the file
350350
*
351-
* @return resource
352-
*
353351
* @throws RuntimeException if the file cannot be opened
354352
*
353+
* @return resource
354+
*
355355
* @see https://github.com/guzzle/psr7/blob/1.6.1/src/functions.php#L287-L320
356356
*/
357357
private static function tryFopen(string $filename, string $mode)

src/Model/AbstractModel.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ public function getData()
8787
* @param string $property
8888
* @param mixed $value
8989
*
90-
* @return void
91-
*
9290
* @throws RuntimeException
91+
*
92+
* @return void
9393
*/
9494
public function __set(string $property, $value)
9595
{
@@ -99,9 +99,9 @@ public function __set(string $property, $value)
9999
/**
100100
* @param string $property
101101
*
102-
* @return mixed
103-
*
104102
* @throws RuntimeException
103+
*
104+
* @return mixed
105105
*/
106106
public function __get(string $property)
107107
{

src/Model/Badge.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
use Gitlab\Client;
88

99
/**
10-
* @property-read int $id
11-
* @property-read string $link_url
12-
* @property-read string $image_url
13-
* @property-read string $rendered_image_url
14-
* @property-read string $rendered_image_url
15-
* @property-read string $kind
10+
* @property int $id
11+
* @property string $link_url
12+
* @property string $image_url
13+
* @property string $rendered_image_url
14+
* @property string $rendered_image_url
15+
* @property string $kind
1616
*/
1717
final class Badge extends AbstractModel
1818
{

src/Model/Branch.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
use Gitlab\Client;
99

1010
/**
11-
* @property-read string $name
12-
* @property-read bool $protected
13-
* @property-read Commit|null $commit
14-
* @property-read Project $project
11+
* @property string $name
12+
* @property bool $protected
13+
* @property Commit|null $commit
14+
* @property Project $project
1515
*/
1616
final class Branch extends AbstractModel
1717
{

src/Model/Commit.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
use Gitlab\Client;
88

99
/**
10-
* @property-read string $id
11-
* @property-read string $short_id
12-
* @property-read string $title
13-
* @property-read string $message
14-
* @property-read string $author_name
15-
* @property-read string $author_email
16-
* @property-read string $authored_date
17-
* @property-read string $committed_date
18-
* @property-read string $created_at
19-
* @property-read Commit[]|null $parents
20-
* @property-read Node[] $tree
21-
* @property-read User|null $committer
22-
* @property-read User|null $author
23-
* @property-read Project $project
24-
* @property-read array|null $stats
10+
* @property string $id
11+
* @property string $short_id
12+
* @property string $title
13+
* @property string $message
14+
* @property string $author_name
15+
* @property string $author_email
16+
* @property string $authored_date
17+
* @property string $committed_date
18+
* @property string $created_at
19+
* @property Commit[]|null $parents
20+
* @property Node[] $tree
21+
* @property User|null $committer
22+
* @property User|null $author
23+
* @property Project $project
24+
* @property array|null $stats
2525
*/
2626
final class Commit extends AbstractModel
2727
{

src/Model/CommitNote.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
use Gitlab\Client;
88

99
/**
10-
* @property-read string $note
11-
* @property-read string $path
12-
* @property-read string $line
13-
* @property-read string $line_type
14-
* @property-read User|null $author
10+
* @property string $note
11+
* @property string $path
12+
* @property string $line
13+
* @property string $line_type
14+
* @property User|null $author
1515
*/
1616
final class CommitNote extends AbstractModel
1717
{

src/Model/Comparison.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
use Gitlab\Client;
88

99
/**
10-
* @property-read bool $compare_timeout
11-
* @property-read bool $compare_same_ref
12-
* @property-read Commit|null $commit
13-
* @property-read Commit[]|null $commits
14-
* @property-read Diff[]|null $diffs
15-
* @property-read Project $project
10+
* @property bool $compare_timeout
11+
* @property bool $compare_same_ref
12+
* @property Commit|null $commit
13+
* @property Commit[]|null $commits
14+
* @property Diff[]|null $diffs
15+
* @property Project $project
1616
*/
1717
final class Comparison extends AbstractModel
1818
{

src/Model/Contributor.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
use Gitlab\Client;
88

99
/**
10-
* @property-read string $name
11-
* @property-read string $email
12-
* @property-read int $commits
13-
* @property-read int $additions
14-
* @property-read int $deletions
15-
* @property-read Project $project
10+
* @property string $name
11+
* @property string $email
12+
* @property int $commits
13+
* @property int $additions
14+
* @property int $deletions
15+
* @property Project $project
1616
*/
1717
final class Contributor extends AbstractModel
1818
{

src/Model/Diff.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
use Gitlab\Client;
88

99
/**
10-
* @property-read string $old_path
11-
* @property-read string $new_path
12-
* @property-read string $a_mode
13-
* @property-read string $b_mode
14-
* @property-read string $diff
15-
* @property-read bool $new_file
16-
* @property-read bool $renamed_file
17-
* @property-read bool $deleted_file
18-
* @property-read Project $project
10+
* @property string $old_path
11+
* @property string $new_path
12+
* @property string $a_mode
13+
* @property string $b_mode
14+
* @property string $diff
15+
* @property bool $new_file
16+
* @property bool $renamed_file
17+
* @property bool $deleted_file
18+
* @property Project $project
1919
*/
2020
final class Diff extends AbstractModel
2121
{

src/Model/Event.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
use Gitlab\Client;
88

99
/**
10-
* @property-read string $title
11-
* @property-read int $id
12-
* @property-read string $action_name
13-
* @property-read string $data
14-
* @property-read int $target_id
15-
* @property-read string $target_type
16-
* @property-read string $target_title
17-
* @property-read int $author_id
18-
* @property-read string $author_username
19-
* @property-read User|null $author
20-
* @property-read Project $project
10+
* @property string $title
11+
* @property int $id
12+
* @property string $action_name
13+
* @property string $data
14+
* @property int $target_id
15+
* @property string $target_type
16+
* @property string $target_title
17+
* @property int $author_id
18+
* @property string $author_username
19+
* @property User|null $author
20+
* @property Project $project
2121
*/
2222
final class Event extends AbstractModel
2323
{

0 commit comments

Comments
 (0)