We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f55d474 commit 56e594bCopy full SHA for 56e594b
src/View/Helper/SimpleGraphHelper.php
@@ -55,10 +55,9 @@ class SimpleGraphHelper extends Helper
55
public function bar($value, $offset, $options = [])
56
{
57
$settings = array_merge($this->_defaultSettings, $options);
58
- /** @var int $max */
59
- /** @var int $width */
60
- /** @var string $valueType */
61
- extract($settings);
+ $max = $settings['max'];
+ $width = $settings['width'];
+ $valueType = $settings['valueType'];
62
63
$graphValue = $value / $max * $width;
64
$graphValue = max(round($graphValue), 1);
0 commit comments