@@ -300,7 +300,7 @@ |
||
300 | 300 | |
301 | 301 | $this->file->getFixer()->addContent( |
302 | 302 | $descEndPtr, |
303 | - $this->file->getEolChar() . str_repeat(' ', $descEndToken['level']) . ' *' |
|
303 | + $this->file->getEolChar().str_repeat(' ', $descEndToken['level']).' *' |
|
304 | 304 | ); |
305 | 305 | |
306 | 306 | $this->file->getFixer()->endChangeset(); |
@@ -240,7 +240,7 @@ |
||
240 | 240 | |
241 | 241 | $this->file->getFixer()->addContent( |
242 | 242 | $summaryPtr, |
243 | - $this->file->getEolChar() . str_repeat(' ', $summaryToken['level']) . ' *' |
|
243 | + $this->file->getEolChar().str_repeat(' ', $summaryToken['level']).' *' |
|
244 | 244 | ); |
245 | 245 | |
246 | 246 | $this->file->getFixer()->endChangeset(); |
@@ -328,7 +328,7 @@ |
||
328 | 328 | ); |
329 | 329 | |
330 | 330 | if ($sniffName) { |
331 | - $sniffFQCN .= '.' . $sniffName; |
|
331 | + $sniffFQCN .= '.'.$sniffName; |
|
332 | 332 | } |
333 | 333 | |
334 | 334 | return $sniffFQCN; |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | private function checkForFluentSetterErrors(File $phpcsFile, int $functionPos, int $classPos): void |
108 | 108 | { |
109 | 109 | $tokens = $phpcsFile->getTokens(); |
110 | - $errorData = $phpcsFile->getDeclarationName($classPos) . '::' . $phpcsFile->getDeclarationName($functionPos); |
|
110 | + $errorData = $phpcsFile->getDeclarationName($classPos).'::'.$phpcsFile->getDeclarationName($functionPos); |
|
111 | 111 | |
112 | 112 | $functionToken = $tokens[$functionPos]; |
113 | 113 | $openBracePtr = $functionToken['scope_opener']; |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | ); |
150 | 150 | |
151 | 151 | if ($sniffName) { |
152 | - $sniffFQCN .= '.' . $sniffName; |
|
152 | + $sniffFQCN .= '.'.$sniffName; |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | return $sniffFQCN; |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | |
225 | 225 | $phpcsFile->fixer->beginChangeset(); |
226 | 226 | $phpcsFile->fixer->addNewlineBefore($closingBracePtr - 1); |
227 | - $phpcsFile->fixer->addContentBefore($closingBracePtr - 1, $expectedReturnSpaces . 'return $this;'); |
|
227 | + $phpcsFile->fixer->addContentBefore($closingBracePtr - 1, $expectedReturnSpaces.'return $this;'); |
|
228 | 228 | $phpcsFile->fixer->addNewlineBefore($closingBracePtr - 1); |
229 | 229 | $phpcsFile->fixer->endChangeset(); |
230 | 230 | } |
@@ -328,7 +328,7 @@ |
||
328 | 328 | ); |
329 | 329 | |
330 | 330 | if ($sniffName) { |
331 | - $sniffFQCN .= '.' . $sniffName; |
|
331 | + $sniffFQCN .= '.'.$sniffName; |
|
332 | 332 | } |
333 | 333 | |
334 | 334 | return $sniffFQCN; |
@@ -113,7 +113,7 @@ |
||
113 | 113 | * @param string $error The error message. |
114 | 114 | * @param int $stackPtr The stack position where the error occurred. |
115 | 115 | * @param string $code A violation code unique to the sniff message. |
116 | - * @param array $data Replacements for the error message. |
|
116 | + * @param string[] $data Replacements for the error message. |
|
117 | 117 | * @param int $severity The severity level for this error. A value of 0 |
118 | 118 | * will be converted into the default severity level. |
119 | 119 | * |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | array_walk( |
98 | 98 | $allTags, |
99 | 99 | // TODO: Removed Duplicates |
100 | - function (array $tag, int $tagPos) use (&$checkedTags, $tagRules): void { |
|
100 | + function(array $tag, int $tagPos) use (&$checkedTags, $tagRules): void { |
|
101 | 101 | $tagContent = substr($tag['content'], 1); |
102 | 102 | |
103 | 103 | if (!in_array($tagContent, $checkedTags)) { |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $tagPos, |
113 | 113 | // We use an error code containing the tag name because we can't configure this rules from |
114 | 114 | // the outside and need specific code to exclude the rule for this special tag. |
115 | - self::CODE_TAG_OCCURRENCE_MAX_PREFIX . ucfirst($tagContent), |
|
115 | + self::CODE_TAG_OCCURRENCE_MAX_PREFIX.ucfirst($tagContent), |
|
116 | 116 | [ |
117 | 117 | $tagContent, |
118 | 118 | $maxCount, |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | |
139 | 139 | array_walk( |
140 | 140 | $rulesWithReq, |
141 | - function (array $tagRule, string $tag) use ($checkedRule, &$checkedTags): void { |
|
141 | + function(array $tagRule, string $tag) use ($checkedRule, &$checkedTags): void { |
|
142 | 142 | $minCount = $tagRule[$checkedRule]; |
143 | 143 | $tagCount = count($this->findTokensForTag($tag)); |
144 | 144 | |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | $this->getDocCommentPos(), |
149 | 149 | // We use an error code containing the tag name because we can't configure this rules from the |
150 | 150 | // outside and need specific code to exclude the rule for this special tag. |
151 | - self::CODE_TAG_OCCURRENCE_MIN_PREFIX . ucfirst($tag), |
|
151 | + self::CODE_TAG_OCCURRENCE_MIN_PREFIX.ucfirst($tag), |
|
152 | 152 | [ |
153 | 153 | $tag, |
154 | 154 | $minCount, |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | { |
172 | 172 | $allTags = $this->getAllTags(); |
173 | 173 | |
174 | - return array_filter($allTags, function (array $tag) use ($tagName): bool { |
|
174 | + return array_filter($allTags, function(array $tag) use ($tagName): bool { |
|
175 | 175 | return substr($tag['content'], 1) === $tagName; |
176 | 176 | }); |
177 | 177 | } |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | { |
216 | 216 | $processedTagRules = $this->getProcessedTagRules(); |
217 | 217 | |
218 | - $processedTagRules = array_filter($processedTagRules, function (array $tagRule) use ($requiredRule): bool { |
|
218 | + $processedTagRules = array_filter($processedTagRules, function(array $tagRule) use ($requiredRule): bool { |
|
219 | 219 | return array_key_exists($requiredRule, $tagRule); |
220 | 220 | }); |
221 | 221 | return $processedTagRules; |
@@ -254,8 +254,8 @@ discard block |
||
254 | 254 | { |
255 | 255 | $processedTagRules = $this->getTagRules(); |
256 | 256 | |
257 | - array_walk($processedTagRules, function (&$tagRule) { |
|
258 | - $tagRule = array_map(function ($valueOrCallback) { |
|
257 | + array_walk($processedTagRules, function(&$tagRule) { |
|
258 | + $tagRule = array_map(function($valueOrCallback) { |
|
259 | 259 | return is_callable($valueOrCallback, true) |
260 | 260 | ? Closure::fromCallable($valueOrCallback)->call($this) |
261 | 261 | : $valueOrCallback; |
@@ -26,7 +26,7 @@ |
||
26 | 26 | * |
27 | 27 | * @var string |
28 | 28 | */ |
29 | - private const MESSAGE_TAG_MISSING_DATES = 'Please provide the version since when its deprecated and when it will ' . |
|
29 | + private const MESSAGE_TAG_MISSING_DATES = 'Please provide the version since when its deprecated and when it will '. |
|
30 | 30 | 'be removed (Pattern: %s).'; |
31 | 31 | |
32 | 32 | /** |
@@ -41,7 +41,7 @@ |
||
41 | 41 | { |
42 | 42 | $this->file->getFixer()->replaceToken( |
43 | 43 | TokenHelper::findNext($this->file->getBaseFile(), [T_DOC_COMMENT_STRING], $this->stackPos), |
44 | - ' ' . $currentNamespace |
|
44 | + ' '.$currentNamespace |
|
45 | 45 | ); |
46 | 46 | } |
47 | 47 |