@@ -32,7 +32,7 @@ |
||
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 |
@@ -72,7 +72,7 @@ |
||
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 { |
@@ -42,14 +42,14 @@ discard block |
||
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 |
||
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 | } |
@@ -7,7 +7,6 @@ |
||
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; |
@@ -12,7 +12,7 @@ |
||
12 | 12 | /** |
13 | 13 | * @var int |
14 | 14 | */ |
15 | - const SUCCESS = 0; |
|
15 | + const SUCCESS = 0; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * |