Skip to content

Commit 56e594b

Browse files
committed
Stop using extract()
1 parent f55d474 commit 56e594b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/View/Helper/SimpleGraphHelper.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,9 @@ class SimpleGraphHelper extends Helper
5555
public function bar($value, $offset, $options = [])
5656
{
5757
$settings = array_merge($this->_defaultSettings, $options);
58-
/** @var int $max */
59-
/** @var int $width */
60-
/** @var string $valueType */
61-
extract($settings);
58+
$max = $settings['max'];
59+
$width = $settings['width'];
60+
$valueType = $settings['valueType'];
6261

6362
$graphValue = $value / $max * $width;
6463
$graphValue = max(round($graphValue), 1);

0 commit comments

Comments
 (0)