@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | public function jsonSerialize(): array |
114 | 114 | { |
115 | 115 | return [ |
116 | - 'value' => collect($this->value ?? [])->map(function ($value, $label) { |
|
116 | + 'value' => collect($this->value ?? [])->map(function($value, $label) { |
|
117 | 117 | return ['label' => $label, 'value' => $value]; |
118 | 118 | })->values()->all(), |
119 | 119 | 'prefix' => $this->prefix, |
@@ -136,8 +136,7 @@ discard block |
||
136 | 136 | if (2 == count($labelParts)) { |
137 | 137 | $newLabel = $this->formatStrNumber($labelParts[0], $labelPrecision) . ' - ' . |
138 | 138 | $this->formatStrNumber($labelParts[1], $labelPrecision); |
139 | - $newData[$newLabel] = isset($newData[$newLabel]) ? ($value + $newData[$newLabel]) : |
|
140 | - $value; |
|
139 | + $newData[$newLabel] = isset($newData[$newLabel]) ? ($value + $newData[$newLabel]) : $value; |
|
141 | 140 | } |
142 | 141 | } |
143 | 142 |