@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | array_walk( |
91 | 91 | $allTags, |
92 | 92 | // TODO: Removed Duplicates |
93 | - function (array $tag, int $tagPos) use (&$checkedTags, $tagRules): void { |
|
93 | + function(array $tag, int $tagPos) use (&$checkedTags, $tagRules): void { |
|
94 | 94 | $tagContent = substr($tag['content'], 1); |
95 | 95 | |
96 | 96 | if (!in_array($tagContent, $checkedTags)) { |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $tagPos, |
106 | 106 | // We use an error code containing the tag name because we can't configure this rules from |
107 | 107 | // the outside and need specific code to exclude the rule for this special tag. |
108 | - self::CODE_TAG_OCCURRENCE_MAX_PREFIX . ucfirst($tagContent), |
|
108 | + self::CODE_TAG_OCCURRENCE_MAX_PREFIX.ucfirst($tagContent), |
|
109 | 109 | [ |
110 | 110 | $tagContent, |
111 | 111 | $maxCount, |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | |
131 | 131 | array_walk( |
132 | 132 | $rulesWithReq, |
133 | - function (array $tagRule, string $tag) use ($checkedRule): void { |
|
133 | + function(array $tagRule, string $tag) use ($checkedRule): void { |
|
134 | 134 | $minCount = $tagRule[$checkedRule]; |
135 | 135 | $tagCount = count($this->findTokensForTag($tag)); |
136 | 136 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | $this->getDocCommentPos(), |
141 | 141 | // We use an error code containing the tag name because we can't configure this rules from the |
142 | 142 | // outside and need specific code to exclude the rule for this special tag. |
143 | - self::CODE_TAG_OCCURRENCE_MIN_PREFIX . ucfirst($tag), |
|
143 | + self::CODE_TAG_OCCURRENCE_MIN_PREFIX.ucfirst($tag), |
|
144 | 144 | [ |
145 | 145 | $tag, |
146 | 146 | $minCount, |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | { |
164 | 164 | $allTags = $this->getAllTags(); |
165 | 165 | |
166 | - return array_filter($allTags, function (array $tag) use ($tagName): bool { |
|
166 | + return array_filter($allTags, function(array $tag) use ($tagName): bool { |
|
167 | 167 | return substr($tag['content'], 1) === $tagName; |
168 | 168 | }); |
169 | 169 | } |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | { |
208 | 208 | $processedTagRules = $this->getProcessedTagRules(); |
209 | 209 | |
210 | - $processedTagRules = array_filter($processedTagRules, function (array $tagRule) use ($requiredRule): bool { |
|
210 | + $processedTagRules = array_filter($processedTagRules, function(array $tagRule) use ($requiredRule): bool { |
|
211 | 211 | return array_key_exists($requiredRule, $tagRule); |
212 | 212 | }); |
213 | 213 | return $processedTagRules; |
@@ -246,8 +246,8 @@ discard block |
||
246 | 246 | { |
247 | 247 | $processedTagRules = $this->getTagRules(); |
248 | 248 | |
249 | - array_walk($processedTagRules, function (&$tagRule) { |
|
250 | - $tagRule = array_map(function ($valueOrCallback) { |
|
249 | + array_walk($processedTagRules, function(&$tagRule) { |
|
250 | + $tagRule = array_map(function($valueOrCallback) { |
|
251 | 251 | return is_callable($valueOrCallback, true) |
252 | 252 | ? Closure::fromCallable($valueOrCallback)->call($this) |
253 | 253 | : $valueOrCallback; |
@@ -173,13 +173,13 @@ discard block |
||
173 | 173 | $this->stackPos - 1 |
174 | 174 | ); |
175 | 175 | |
176 | - $tagPosBeforeThis = array_filter($tagPosBeforeThis, function (int $position) { |
|
176 | + $tagPosBeforeThis = array_filter($tagPosBeforeThis, function(int $position) { |
|
177 | 177 | return $this->tokens[$position]['content'] === '@param'; |
178 | 178 | }); |
179 | 179 | |
180 | 180 | $varOfThisTag = array_values($this->varTokens)[count($tagPosBeforeThis)]; |
181 | 181 | |
182 | - return '/(?P<type>[\w|\|\[\]]*) ?(?P<var>' . preg_quote($varOfThisTag['content'], '/') . |
|
182 | + return '/(?P<type>[\w|\|\[\]]*) ?(?P<var>'.preg_quote($varOfThisTag['content'], '/'). |
|
183 | 183 | ') ?(?P<desc>.*)/m'; |
184 | 184 | } |
185 | 185 | |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | ->setToken($this->token); |
201 | 201 | } |
202 | 202 | |
203 | - $this->varTokens = array_filter($this->tokens, function (array $token) use ($varPositions): bool { |
|
203 | + $this->varTokens = array_filter($this->tokens, function(array $token) use ($varPositions): bool { |
|
204 | 204 | return in_array($token['pointer'], $varPositions, true); |
205 | 205 | }); |
206 | 206 |
@@ -59,7 +59,7 @@ |
||
59 | 59 | // Satisfy php md |
60 | 60 | unset($callback); |
61 | 61 | |
62 | - return $this->isValidContentInTrait($tagContent, function (array $matches): bool { |
|
62 | + return $this->isValidContentInTrait($tagContent, function(array $matches): bool { |
|
63 | 63 | return (bool) filter_var($matches['mail'], FILTER_VALIDATE_EMAIL); |
64 | 64 | }); |
65 | 65 | } |