Failed Conditions
Pull Request — master (#18)
by Billie
07:27 queued 04:36
created
src/PurpleBooth/GitLintValidators/Composer/Scripts.php 2 patches
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/PurpleBooth/GitLintValidators/Validator/Validator.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -15,6 +15,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace PurpleBooth\GitLintValidators;
6 6
 
Please login to merge, or discard this patch.
src/PurpleBooth/GitLintValidators/Command/Hook.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace PurpleBooth\GitLintValidators\Command;
6 6
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             }
104 104
         }
105 105
 
106
-        $safeCommitMessage = preg_replace('/'.preg_quote($commentCharacter).'.*/', '', $commitMessage);
106
+        $safeCommitMessage = preg_replace('/' . preg_quote($commentCharacter) . '.*/', '', $commitMessage);
107 107
         $message = new MessageImplementation($safeCommitMessage);
108 108
 
109 109
         $validators->validate($message);
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
         /** @var Status $status */
119 119
         foreach ($message->getStatuses() as $status) {
120
-            $statusList[] = $status->getMessage().' ('.$status->getDetailsUrl().')';
120
+            $statusList[] = $status->getMessage() . ' (' . $status->getDetailsUrl() . ')';
121 121
 
122 122
             $isPositive = $status->isPositive() && $isPositive;
123 123
         }
Please login to merge, or discard this patch.
src/PurpleBooth/GitLintValidators/ValidatorFactoryImplementation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace PurpleBooth\GitLintValidators;
6 6
 
Please login to merge, or discard this patch.
src/PurpleBooth/GitLintValidators/Message.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -15,6 +15,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace PurpleBooth\GitLintValidators;
6 6
 
Please login to merge, or discard this patch.
src/PurpleBooth/GitLintValidators/ValidateMessage.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -15,6 +15,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace PurpleBooth\GitLintValidators;
6 6
 
Please login to merge, or discard this patch.
Validator/LimitTheBodyWrapLengthTo72CharactersValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace PurpleBooth\GitLintValidators;
6 6
 
Please login to merge, or discard this patch.
GitLintValidators/Validator/LimitTheTitleLengthTo69CharactersValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace PurpleBooth\GitLintValidators;
6 6
 
Please login to merge, or discard this patch.
Validator/SoftLimitTheTitleLengthTo50CharactersValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace PurpleBooth\GitLintValidators;
6 6
 
Please login to merge, or discard this patch.