@@ -18,7 +18,7 @@ |
||
| 18 | 18 | continue; |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | - usort($errorMessagesForFile, function ($first, $second) { |
|
| 21 | + usort($errorMessagesForFile, function($first, $second) { |
|
| 22 | 22 | return ($first['line'] > $second['line']); |
| 23 | 23 | }); |
| 24 | 24 | |
@@ -91,8 +91,8 @@ |
||
| 91 | 91 | string $message, |
| 92 | 92 | int $line, |
| 93 | 93 | string $sniffCode, |
| 94 | - array $data=[], |
|
| 95 | - bool $isFixable=false |
|
| 94 | + array $data = [], |
|
| 95 | + bool $isFixable = false |
|
| 96 | 96 | ) { |
| 97 | 97 | $this->errorCount++; |
| 98 | 98 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | |
| 39 | 39 | private function setSourceAllowedValues(OptionsResolver $optionsResolver) |
| 40 | 40 | { |
| 41 | - $optionsResolver->setAllowedValues(self::NAME, function (array $source) { |
|
| 41 | + $optionsResolver->setAllowedValues(self::NAME, function(array $source) { |
|
| 42 | 42 | foreach ($source as $singleSource) { |
| 43 | 43 | if (!file_exists($singleSource)) { |
| 44 | 44 | throw new SourceNotFoundException(sprintf( |
@@ -39,14 +39,14 @@ |
||
| 39 | 39 | |
| 40 | 40 | private function setSniffsAllowedValues(OptionsResolver $optionsResolver) |
| 41 | 41 | { |
| 42 | - $optionsResolver->setAllowedValues(self::NAME, function (array $sniffs) { |
|
| 42 | + $optionsResolver->setAllowedValues(self::NAME, function(array $sniffs) { |
|
| 43 | 43 | $sniffs = ValueNormalizer::normalizeCommaSeparatedValues($sniffs); |
| 44 | 44 | |
| 45 | 45 | foreach ($sniffs as $sniff) { |
| 46 | 46 | if (substr_count($sniff, '.') !== 2) { |
| 47 | 47 | throw new InvalidSniffCodeException(sprintf( |
| 48 | - 'The specified sniff code "%s" is invalid.' . |
|
| 49 | - PHP_EOL . |
|
| 48 | + 'The specified sniff code "%s" is invalid.'. |
|
| 49 | + PHP_EOL. |
|
| 50 | 50 | 'Correct format is "StandardName.Category.SniffName".', |
| 51 | 51 | $sniff |
| 52 | 52 | )); |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | { |
| 54 | 54 | $optionsResolver->setNormalizer( |
| 55 | 55 | self::NAME, |
| 56 | - function (OptionsResolver $optionsResolver, array $standardNames) { |
|
| 56 | + function(OptionsResolver $optionsResolver, array $standardNames) { |
|
| 57 | 57 | $standardNames = ValueNormalizer::normalizeCommaSeparatedValues($standardNames); |
| 58 | 58 | return $this->standardFinder->getRulesetPathsForStandardNames($standardNames); |
| 59 | 59 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | private function setAllowedValues(OptionsResolver $optionsResolver) |
| 64 | 64 | { |
| 65 | - $optionsResolver->setAllowedValues(self::NAME, function (array $standards) { |
|
| 65 | + $optionsResolver->setAllowedValues(self::NAME, function(array $standards) { |
|
| 66 | 66 | $standards = ValueNormalizer::normalizeCommaSeparatedValues($standards); |
| 67 | 67 | |
| 68 | 68 | $availableStandards = $this->standardFinder->getStandards(); |