Completed
Push — master ( 393329...74ff7b )
by Tomáš
10:49
created
src/Configuration/OptionResolver/SniffsOptionResolver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,14 +42,14 @@  discard block
 block discarded – undo
42 42
 
43 43
     private function setAllowedValues(OptionsResolver $optionsResolver)
44 44
     {
45
-        $optionsResolver->setAllowedValues(self::NAME, function (array $sniffs) {
45
+        $optionsResolver->setAllowedValues(self::NAME, function(array $sniffs) {
46 46
             $sniffs = ValueNormalizer::normalizeCommaSeparatedValues($sniffs);
47 47
 
48 48
             foreach ($sniffs as $sniff) {
49 49
                 if (substr_count($sniff, '.') !== 2) {
50 50
                     throw new InvalidSniffCodeException(sprintf(
51
-                        'The specified sniff code "%s" is invalid.' .
52
-                        PHP_EOL .
51
+                        'The specified sniff code "%s" is invalid.'.
52
+                        PHP_EOL.
53 53
                         'Correct format is "StandardName.Category.SniffName".',
54 54
                         $sniff
55 55
                     ));
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     {
65 65
         $optionsResolver->setNormalizer(
66 66
             self::NAME,
67
-            function (OptionsResolver $optionsResolver, array $sniffCodes) {
67
+            function(OptionsResolver $optionsResolver, array $sniffCodes) {
68 68
                 return ValueNormalizer::normalizeCommaSeparatedValues($sniffCodes);
69 69
             }
70 70
         );
Please login to merge, or discard this patch.
src/Sniff/Sorter/SniffSorter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public static function sort(array $sniffs) : array
19 19
     {
20
-        usort($sniffs, function ($oneSniff, $otherSniff) {
20
+        usort($sniffs, function($oneSniff, $otherSniff) {
21 21
             return strcmp(
22 22
                 get_class($oneSniff),
23 23
                 get_class($otherSniff)
Please login to merge, or discard this patch.
src/Sniff/Factory/SniffCodeToSniffsFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public function isMatch(string $reference) : bool
33 33
     {
34 34
         $partsCount = count(explode('.', $reference));
35
-        if ($partsCount >= 3 && $partsCount <=4) {
35
+        if ($partsCount >= 3 && $partsCount <= 4) {
36 36
             return true;
37 37
         }
38 38
 
Please login to merge, or discard this patch.