@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | #!/bin/sh |
| 25 | 25 | |
| 26 | 26 | vendor/bin/git-lint-validators git-lint-validator:hook $1 |
| 27 | -CONTENT; |
|
| 27 | +content; |
|
| 28 | 28 | |
| 29 | 29 | const TEMPLATE_CONTENTS = <<<CONTENT |
| 30 | 30 | Subject line |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | # - Use the subject body to explain what and why vs. how |
| 39 | 39 | # - Wrap the subject body at 72 characters |
| 40 | 40 | |
| 41 | -CONTENT; |
|
| 41 | +content; |
|
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * Installs and activates the Git commit message |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PurpleBooth\GitLintValidators\Composer; |
| 6 | 6 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | if (file_exists($hookFile)) { |
| 76 | 76 | $existingHookFile = copy( |
| 77 | 77 | $hookFile, |
| 78 | - $hookFile.self::BACKUP_EXTENSION |
|
| 78 | + $hookFile . self::BACKUP_EXTENSION |
|
| 79 | 79 | ); |
| 80 | 80 | } |
| 81 | 81 | |
@@ -57,6 +57,7 @@ |
||
| 57 | 57 | * Associate a status with this message. |
| 58 | 58 | * |
| 59 | 59 | * @param Status $status |
| 60 | + * @return void |
|
| 60 | 61 | */ |
| 61 | 62 | public function addStatus(Status $status); |
| 62 | 63 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PurpleBooth\GitLintValidators; |
| 6 | 6 | |
@@ -13,6 +13,7 @@ |
||
| 13 | 13 | * Test a message against a number of validators. |
| 14 | 14 | * |
| 15 | 15 | * @param Message $message |
| 16 | + * @return void |
|
| 16 | 17 | */ |
| 17 | 18 | public function validate(Message $message); |
| 18 | 19 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PurpleBooth\GitLintValidators; |
| 6 | 6 | |
@@ -15,6 +15,7 @@ |
||
| 15 | 15 | * Check if a message passes a specific test, and return a status that identifies if it is or isn't. |
| 16 | 16 | * |
| 17 | 17 | * @param Message $message |
| 18 | + * @return void |
|
| 18 | 19 | */ |
| 19 | 20 | public function validate(Message $message); |
| 20 | 21 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PurpleBooth\GitLintValidators\Validator; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PurpleBooth\GitLintValidators\Validator; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PurpleBooth\GitLintValidators\Validator; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PurpleBooth\GitLintValidators\Validator; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PurpleBooth\GitLintValidators\Validator; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PurpleBooth\GitLintValidators\Validator; |
| 6 | 6 | |