Completed
Pull Request — master (#18)
by Billie
08:07 queued 05:22
created
src/PurpleBooth/GitLintValidators/Composer/Scripts.php 1 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/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.
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.
GitLintValidators/Validator/DoNotEndTheSubjectLineWithAPeriodValidator.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/SeparateSubjectFromBodyWithABlankLineValidator.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/Validator/Validator.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.