Skip to content

Commit 92b2c76

Browse files
committed
Php Inspections (EA Extended) - static code analysis includes:
Reduce couple count calls in [Yaml] Modernize type casting, fix several strict comparisons Unsets merged Elvis operator usage Short syntax for applied operations
1 parent 34439fb commit 92b2c76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dumper/PhpDumper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,13 +1341,13 @@ private function getNextVariableName()
13411341

13421342
if ('' === $name) {
13431343
$name .= $firstChars[$i%$firstCharsLength];
1344-
$i = intval($i/$firstCharsLength);
1344+
$i = (int) ($i/$firstCharsLength);
13451345
}
13461346

13471347
while ($i > 0) {
13481348
--$i;
13491349
$name .= $nonFirstChars[$i%$nonFirstCharsLength];
1350-
$i = intval($i/$nonFirstCharsLength);
1350+
$i = (int) ($i/$nonFirstCharsLength);
13511351
}
13521352

13531353
++$this->variableCount;

0 commit comments

Comments
 (0)