Skip to content

Commit 4e39259

Browse files
committed
Pint formatting
1 parent 6ac1e81 commit 4e39259

22 files changed

+0
-136
lines changed

src/Console/Commands/PreCommit.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ public function handle()
5555

5656
/**
5757
* Send the changed files through the pipes
58-
*
59-
* @param ChangedFiles $files
6058
*/
6159
protected function sendChangedFilesThroughHooks(ChangedFiles $files): void
6260
{

src/Console/Commands/PrepareCommitMessage.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ class PrepareCommitMessage extends Command implements HookCommand
2626

2727
/**
2828
* Get hook name
29-
*
30-
* @return string
3129
*/
3230
public function getHook(): string
3331
{

src/Console/Commands/RegisterHooks.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class RegisterHooks extends Command
2525
/**
2626
* Execute the console command.
2727
*
28-
* @param GitHooks $gitHooks
2928
* @return void
3029
*
3130
* @throws Exception

src/Contracts/HookCommand.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@ interface HookCommand
66
{
77
/**
88
* Get hook name
9-
*
10-
* @return string
119
*/
1210
public function getHook(): string;
1311

1412
/**
1513
* Get array of registered hooks
16-
*
17-
* @return array
1814
*/
1915
public function getRegisteredHooks(): array;
2016
}

src/Contracts/MessageHook.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,5 @@
77

88
interface MessageHook extends Hook
99
{
10-
/**
11-
* @param CommitMessage $message
12-
* @param Closure $next
13-
*/
1410
public function handle(CommitMessage $message, Closure $next);
1511
}

src/Contracts/PostCommitHook.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
interface PostCommitHook extends Hook
99
{
1010
/**
11-
* @param Log $log
12-
* @param Closure $next
1311
* @return mixed
1412
*/
1513
public function handle(Log $log, Closure $next);

src/Contracts/PreCommitHook.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
interface PreCommitHook extends Hook
99
{
1010
/**
11-
* @param ChangedFiles $files
12-
* @param Closure $next
1311
* @return mixed
1412
*/
1513
public function handle(ChangedFiles $files, Closure $next);

src/Contracts/PrePushHook.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
interface PrePushHook extends Hook
99
{
1010
/**
11-
* @param Log $log
12-
* @param Closure $next
1311
* @return mixed
1412
*/
1513
public function handle(Log $log, Closure $next);

src/Git/ChangedFile.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ class ChangedFile
5353
'?' => self::N,
5454
];
5555

56-
/**
57-
* @param string $line
58-
*/
5956
public function __construct(string $line)
6057
{
6158
$this->line = $line;
@@ -75,8 +72,6 @@ public function __construct(string $line)
7572

7673
/**
7774
* Check if file in commit
78-
*
79-
* @return bool
8075
*/
8176
public function isInCommit(): bool
8277
{
@@ -85,57 +80,37 @@ public function isInCommit(): bool
8580

8681
/**
8782
* Get file path
88-
*
89-
* @return string
9083
*/
9184
public function getFilePath(): string
9285
{
9386
return $this->file;
9487
}
9588

96-
/**
97-
* @return bool
98-
*/
9989
public function isStaged(): bool
10090
{
10191
return $this->isAdded() || $this->isModified() || $this->isCopied();
10292
}
10393

104-
/**
105-
* @return bool
106-
*/
10794
public function isAdded(): bool
10895
{
10996
return $this->X & static::A || $this->Y & static::A;
11097
}
11198

112-
/**
113-
* @return bool
114-
*/
11599
public function isModified(): bool
116100
{
117101
return $this->X & static::M || $this->Y & static::M;
118102
}
119103

120-
/**
121-
* @return bool
122-
*/
123104
public function isDeleted(): bool
124105
{
125106
return $this->X & static::D || $this->Y & static::D;
126107
}
127108

128-
/**
129-
* @return bool
130-
*/
131109
public function isUntracked(): bool
132110
{
133111
return $this->X & static::N || $this->Y & static::N;
134112
}
135113

136-
/**
137-
* @return bool
138-
*/
139114
public function isCopied(): bool
140115
{
141116
return $this->X & static::C || $this->Y & static::C;

src/Git/ChangedFiles.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ class ChangedFiles
1111
*/
1212
protected $files;
1313

14-
/**
15-
* @param string $log
16-
*/
1714
public function __construct(string $log)
1815
{
1916
$files = (array) preg_split("/\r\n|\n|\r/", $log);
@@ -27,8 +24,6 @@ public function __construct(string $log)
2724

2825
/**
2926
* Get all files with changes
30-
*
31-
* @return Collection
3227
*/
3328
public function getFiles(): Collection
3429
{
@@ -37,8 +32,6 @@ public function getFiles(): Collection
3732

3833
/**
3934
* Get list of staged files
40-
*
41-
* @return Collection
4235
*/
4336
public function getStaged(): Collection
4437
{
@@ -49,8 +42,6 @@ public function getStaged(): Collection
4942

5043
/**
5144
* Get added to commit files
52-
*
53-
* @return Collection
5445
*/
5546
public function getAddedToCommit(): Collection
5647
{
@@ -59,9 +50,6 @@ public function getAddedToCommit(): Collection
5950
});
6051
}
6152

62-
/**
63-
* @return Collection
64-
*/
6553
public function getDeleted(): Collection
6654
{
6755
return $this->files->filter(function (ChangedFile $file) {
@@ -71,8 +59,6 @@ public function getDeleted(): Collection
7159

7260
/**
7361
* Get untracked files
74-
*
75-
* @return Collection
7662
*/
7763
public function getUntracked(): Collection
7864
{

0 commit comments

Comments
 (0)