Completed
Branch master (06cb84)
by Tomáš
06:00
created
src/EventDispatcher/SniffDispatcher.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     }
26 26
 
27 27
     /**
28
-     * @param array|string[] $sniffs
28
+     * @param Sniff[] $sniffs
29 29
      */
30 30
     public function addSniffListeners(array $sniffs)
31 31
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     {
57 57
         $this->addListener(
58 58
             $token,
59
-            function (CheckFileTokenEvent $checkFileToken) use ($sniffObject) {
59
+            function(CheckFileTokenEvent $checkFileToken) use ($sniffObject) {
60 60
                 $sniffObject->process(
61 61
                     $checkFileToken->getFile(),
62 62
                     $checkFileToken->getStackPointer()
Please login to merge, or discard this patch.
src/Configuration/OptionsResolverFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
     private function setAllowedValues(OptionsResolver $optionsResolver)
39 39
     {
40
-        $optionsResolver->setAllowedValues('standards', function (array $standards) {
40
+        $optionsResolver->setAllowedValues('standards', function(array $standards) {
41 41
             $standards = $this->normalizeCommaSeparatedValues($standards);
42 42
 
43 43
             $availableStandards = $this->standardFinder->getStandards();
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             return true;
55 55
         });
56 56
 
57
-        $optionsResolver->setAllowedValues('sniffs', function (array $sniffs) {
57
+        $optionsResolver->setAllowedValues('sniffs', function(array $sniffs) {
58 58
             $sniffs = $this->normalizeCommaSeparatedValues($sniffs);
59 59
 
60 60
             foreach ($sniffs as $sniff) {
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             return true;
72 72
         });
73 73
 
74
-        $optionsResolver->setAllowedValues('source', function (array $source) {
74
+        $optionsResolver->setAllowedValues('source', function(array $source) {
75 75
             foreach ($source as $singleSource) {
76 76
                 if (!file_exists($singleSource)) {
77 77
                     throw new SourceNotFoundException(sprintf(
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     {
90 90
         $optionsResolver->setNormalizer(
91 91
             'standards',
92
-            function (OptionsResolver $optionsResolver, array $standardNames) {
92
+            function(OptionsResolver $optionsResolver, array $standardNames) {
93 93
                 $standardNames = $this->normalizeCommaSeparatedValues($standardNames);
94 94
                 return $this->standardFinder->getRulesetPathsForStandardNames($standardNames);
95 95
             }
Please login to merge, or discard this patch.
src/File/File.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * {@inheritdoc}
79 79
      */
80
-    public function addFixableError($error, $stackPtr, $code, $data=[], $severity=0)
80
+    public function addFixableError($error, $stackPtr, $code, $data = [], $severity = 0)
81 81
     {
82 82
         $this->addError($error, $stackPtr, $code, $data, $severity, true);
83 83
         return $this->isFixer;
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $code,
95 95
         $data,
96 96
         $severity,
97
-        $isFixable=false
97
+        $isFixable = false
98 98
     ) : bool {
99 99
         if (!$error) { // skip warnings
100 100
             return false;
Please login to merge, or discard this patch.
src/ErrorDataCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
                 continue;
130 130
             }
131 131
 
132
-            uasort($errorMessagesForFile, function ($first, $second) {
132
+            uasort($errorMessagesForFile, function($first, $second) {
133 133
                 return ($first['line'] > $second['line']);
134 134
             });
135 135
 
Please login to merge, or discard this patch.
src/Fixer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
         return true;
162 162
     }
163 163
 
164
-    public function substrToken(int $stackPtr, int $start, int $length=null) : bool
164
+    public function substrToken(int $stackPtr, int $start, int $length = null) : bool
165 165
     {
166 166
         $current = $this->getTokenContent($stackPtr);
167 167
 
Please login to merge, or discard this patch.