Skip to content

Commit fe75ace

Browse files
committed
LaravelGitHooks changed to GitHooks only
1 parent 9ee2249 commit fe75ace

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+173
-173
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
},
3838
"autoload": {
3939
"psr-4": {
40-
"Igorsgm\\LaravelGitHooks\\": "src"
40+
"Igorsgm\\GitHooks\\": "src"
4141
}
4242
},
4343
"autoload-dev": {
4444
"psr-4": {
45-
"Igorsgm\\LaravelGitHooks\\Tests\\": "tests"
45+
"Igorsgm\\GitHooks\\Tests\\": "tests"
4646
}
4747
},
4848
"scripts": {
@@ -55,10 +55,10 @@
5555
"extra": {
5656
"laravel": {
5757
"providers": [
58-
"Igorsgm\\LaravelGitHooks\\LaravelGitHooksServiceProvider"
58+
"Igorsgm\\GitHooks\\GitHooksServiceProvider"
5959
],
6060
"aliases": {
61-
"LaravelGitHooks": "Igorsgm\\LaravelGitHooks\\LaravelGitHooksFacade"
61+
"GitHooks": "Igorsgm\\GitHooks\\GitHooksFacade"
6262
}
6363
}
6464
},

config/git-hooks.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
| equivalent), check for trailing whitespace (the default hook does exactly this), or check for appropriate
1515
| documentation on new methods.
1616
|
17-
| These hooks must implement \Igorsgm\LaravelGitHooks\Contracts\PreCommitHook
17+
| These hooks must implement \Igorsgm\GitHooks\Contracts\PreCommitHook
1818
|
1919
*/
2020
'pre-commit' => [
@@ -34,7 +34,7 @@
3434
| commits, and amended commits. You may use it in conjunction with a commit template to programmatically insert
3535
| information.
3636
|
37-
| These hooks must implement \Igorsgm\LaravelGitHooks\Contracts\MessageHook
37+
| These hooks must implement \Igorsgm\GitHooks\Contracts\MessageHook
3838
|
3939
*/
4040
'prepare-commit-msg' => [
@@ -50,7 +50,7 @@
5050
| message written by the developer. If this script exits non-zero, Git aborts the commit process, so you can use
5151
| it to validate your project state or commit message before allowing a commit to go through.
5252
|
53-
| These hooks must implement \Igorsgm\LaravelGitHooks\Contracts\MessageHook
53+
| These hooks must implement \Igorsgm\GitHooks\Contracts\MessageHook
5454
|
5555
*/
5656
'commit-msg' => [
@@ -66,7 +66,7 @@
6666
| but you can easily get the last commit by running git log -1 HEAD. Generally, this script is used for
6767
| notification or something similar.
6868
|
69-
| These hooks must implement \Igorsgm\LaravelGitHooks\Contracts\PostCommitHook
69+
| These hooks must implement \Igorsgm\GitHooks\Contracts\PostCommitHook
7070
|
7171
*/
7272
'post-commit' => [
@@ -140,7 +140,7 @@
140140
| refs through stdin. You can use it to validate a set of ref updates before a push occurs (a non-zero exit code
141141
| will abort the push).
142142
|
143-
| These hooks must implement \Igorsgm\LaravelGitHooks\Contracts\PrePushHook
143+
| These hooks must implement \Igorsgm\GitHooks\Contracts\PrePushHook
144144
|
145145
*/
146146
'pre-push' => [

src/CommitMessageStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Igorsgm\LaravelGitHooks;
3+
namespace Igorsgm\GitHooks;
44

55
class CommitMessageStorage implements Contracts\CommitMessageStorage
66
{

src/Console/Commands/CommitMessage.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Igorsgm\LaravelGitHooks\Console\Commands;
3+
namespace Igorsgm\GitHooks\Console\Commands;
44

5-
use Igorsgm\LaravelGitHooks\Contracts\CommitMessageStorage;
6-
use Igorsgm\LaravelGitHooks\Contracts\HookCommand;
7-
use Igorsgm\LaravelGitHooks\Traits\WithCommitMessage;
5+
use Igorsgm\GitHooks\Contracts\CommitMessageStorage;
6+
use Igorsgm\GitHooks\Contracts\HookCommand;
7+
use Igorsgm\GitHooks\Traits\WithCommitMessage;
88
use Illuminate\Console\Command;
99
use Illuminate\Contracts\Config\Repository;
1010

src/Console/Commands/PostCommit.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace Igorsgm\LaravelGitHooks\Console\Commands;
3+
namespace Igorsgm\GitHooks\Console\Commands;
44

5-
use Igorsgm\LaravelGitHooks\Contracts\HookCommand;
6-
use Igorsgm\LaravelGitHooks\Exceptions\HookFailException;
7-
use Igorsgm\LaravelGitHooks\Git\GetLasCommitFromLog;
8-
use Igorsgm\LaravelGitHooks\Git\Log;
9-
use Igorsgm\LaravelGitHooks\Traits\WithPipeline;
5+
use Igorsgm\GitHooks\Contracts\HookCommand;
6+
use Igorsgm\GitHooks\Exceptions\HookFailException;
7+
use Igorsgm\GitHooks\Git\GetLasCommitFromLog;
8+
use Igorsgm\GitHooks\Git\Log;
9+
use Igorsgm\GitHooks\Traits\WithPipeline;
1010
use Illuminate\Console\Command;
1111
use Illuminate\Contracts\Config\Repository;
1212

src/Console/Commands/PreCommit.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace Igorsgm\LaravelGitHooks\Console\Commands;
3+
namespace Igorsgm\GitHooks\Console\Commands;
44

5-
use Igorsgm\LaravelGitHooks\Contracts\HookCommand;
6-
use Igorsgm\LaravelGitHooks\Exceptions\HookFailException;
7-
use Igorsgm\LaravelGitHooks\Git\ChangedFiles;
8-
use Igorsgm\LaravelGitHooks\Git\GetListOfChangedFiles;
9-
use Igorsgm\LaravelGitHooks\Traits\WithPipeline;
5+
use Igorsgm\GitHooks\Contracts\HookCommand;
6+
use Igorsgm\GitHooks\Exceptions\HookFailException;
7+
use Igorsgm\GitHooks\Git\ChangedFiles;
8+
use Igorsgm\GitHooks\Git\GetListOfChangedFiles;
9+
use Igorsgm\GitHooks\Traits\WithPipeline;
1010
use Illuminate\Console\Command;
1111
use Illuminate\Contracts\Config\Repository;
1212

src/Console/Commands/PrePush.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace Igorsgm\LaravelGitHooks\Console\Commands;
3+
namespace Igorsgm\GitHooks\Console\Commands;
44

5-
use Igorsgm\LaravelGitHooks\Contracts\HookCommand;
6-
use Igorsgm\LaravelGitHooks\Exceptions\HookFailException;
7-
use Igorsgm\LaravelGitHooks\Git\GetLasCommitFromLog;
8-
use Igorsgm\LaravelGitHooks\Git\Log;
9-
use Igorsgm\LaravelGitHooks\Traits\WithPipeline;
5+
use Igorsgm\GitHooks\Contracts\HookCommand;
6+
use Igorsgm\GitHooks\Exceptions\HookFailException;
7+
use Igorsgm\GitHooks\Git\GetLasCommitFromLog;
8+
use Igorsgm\GitHooks\Git\Log;
9+
use Igorsgm\GitHooks\Traits\WithPipeline;
1010
use Illuminate\Console\Command;
1111
use Illuminate\Contracts\Config\Repository;
1212

src/Console/Commands/PrepareCommitMessage.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Igorsgm\LaravelGitHooks\Console\Commands;
3+
namespace Igorsgm\GitHooks\Console\Commands;
44

5-
use Igorsgm\LaravelGitHooks\Contracts\CommitMessageStorage;
6-
use Igorsgm\LaravelGitHooks\Contracts\HookCommand;
7-
use Igorsgm\LaravelGitHooks\Traits\WithCommitMessage;
5+
use Igorsgm\GitHooks\Contracts\CommitMessageStorage;
6+
use Igorsgm\GitHooks\Contracts\HookCommand;
7+
use Igorsgm\GitHooks\Traits\WithCommitMessage;
88
use Illuminate\Console\Command;
99
use Illuminate\Contracts\Config\Repository;
1010

src/Console/Commands/RegisterHooks.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace Igorsgm\LaravelGitHooks\Console\Commands;
3+
namespace Igorsgm\GitHooks\Console\Commands;
44

5-
use Igorsgm\LaravelGitHooks\LaravelGitHooks;
5+
use Igorsgm\GitHooks\GitHooks;
66
use Illuminate\Console\Command;
77

88
class RegisterHooks extends Command
@@ -24,11 +24,11 @@ class RegisterHooks extends Command
2424
/**
2525
* Execute the console command.
2626
*
27-
* @param LaravelGitHooks $laravelGitHooks
27+
* @param GitHooks $gitHooks
2828
*/
29-
public function handle(LaravelGitHooks $laravelGitHooks)
29+
public function handle(GitHooks $gitHooks)
3030
{
31-
$laravelGitHooks->run();
31+
$gitHooks->run();
3232

3333
$this->info('Git hooks have been successfully created');
3434
}

src/Contracts/CommitMessageStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Igorsgm\LaravelGitHooks\Contracts;
3+
namespace Igorsgm\GitHooks\Contracts;
44

55
interface CommitMessageStorage
66
{

0 commit comments

Comments
 (0)