| @@ 243-247 (lines=5) @@ | ||
| 240 | } |
|
| 241 | ||
| 242 | // Is this a variable assignment ? |
|
| 243 | if ($nextNonEmpty !== false |
|
| 244 | && in_array($tokens[$nextNonEmpty]['code'], \PHP_CodeSniffer_Tokens::$assignmentTokens, true) |
|
| 245 | ) { |
|
| 246 | return false; |
|
| 247 | } |
|
| 248 | ||
| 249 | // Is this a function param shadowing the PHP native one ? |
|
| 250 | if ($function !== false) { |
|
| @@ 292-296 (lines=5) @@ | ||
| 289 | true |
|
| 290 | ); |
|
| 291 | ||
| 292 | if ($nextNonEmpty !== false |
|
| 293 | && in_array($tokens[$nextNonEmpty]['code'], \PHP_CodeSniffer_Tokens::$assignmentTokens, true) |
|
| 294 | ) { |
|
| 295 | return false; |
|
| 296 | } |
|
| 297 | } |
|
| 298 | ||
| 299 | return true; |
|