Skip to content

Commit 3e4e892

Browse files
committed
unnecessary assignment
1 parent 86ba915 commit 3e4e892

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sabberworm/CSS/Parser.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,6 @@ private function parseNumericValue($bForColor = false) {
397397
$sSize .= $this->consume(1);
398398
}
399399
}
400-
$fSize = floatval($sSize);
401400
$sUnit = null;
402401
foreach($this->sizeUnits as $sDefinedUnit) {
403402
if ($this->comes($sDefinedUnit, true)) {
@@ -406,7 +405,7 @@ private function parseNumericValue($bForColor = false) {
406405
break;
407406
}
408407
}
409-
return new Size($fSize, $sUnit, $bForColor);
408+
return new Size(floatval($sSize), $sUnit, $bForColor);
410409
}
411410

412411
private function parseColorValue() {

0 commit comments

Comments
 (0)