Completed
Push — master ( 64bec4...eaf10f )
by Tomáš
05:07
created
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.
src/Sniff/Xml/Extractor/SniffPropertyValuesExtractor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
         foreach (explode(',', $value) as $val) {
73 73
             $v = '';
74 74
 
75
-            list($key, $v) = explode('=>', $val . '=>');
75
+            list($key, $v) = explode('=>', $val.'=>');
76 76
             if ($v !== '') {
77 77
                 $values[$key] = $v;
78 78
             } else {
Please login to merge, or discard this patch.
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
                     ));
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     private function setNormalizer(OptionsResolver $optionsResolver)
64 64
     {
65
-        $optionsResolver->setNormalizer(self::NAME, function (OptionsResolver $optionsResolver, array $sniffCodes) {
65
+        $optionsResolver->setNormalizer(self::NAME, function(OptionsResolver $optionsResolver, array $sniffCodes) {
66 66
             return ValueNormalizer::normalizeCommaSeparatedValues($sniffCodes);
67 67
         });
68 68
     }
Please login to merge, or discard this patch.
src/Console/Command/RunCommand.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 
8 8
 namespace Symplify\PHP7_CodeSniffer\Console\Command;
9 9
 
10
-use Exception;
11 10
 use Symfony\Component\Console\Command\Command;
12 11
 use Symfony\Component\Console\Input\InputArgument;
13 12
 use Symfony\Component\Console\Input\InputInterface;
Please login to merge, or discard this patch.
src/Console/ExitCode.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     /**
13 13
      * @var int
14 14
      */
15
-   const SUCCESS = 0;
15
+    const SUCCESS = 0;
16 16
 
17 17
     /**
18 18
      *
Please login to merge, or discard this patch.