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 30ef3f3 commit 4eb9d27Copy full SHA for 4eb9d27
src/StatisticsManager.php
@@ -52,14 +52,18 @@ public function getNumbers(string $query): array
52
53
/**
54
* @param string $data
55
- * @return int[][]|float[][]
+ * @return float[][]
56
*/
57
public function getData(string $data): array
58
{
59
$return = [];
60
61
foreach (explode("\n", Strings::normalize($data)) as $line) {
62
- $return[] = $this->getNumbers($line);
+ $numbers = [];
63
+ foreach ($this->getNumbers($line) as $number) {
64
+ $numbers[] = (float) $number;
65
+ }
66
+ $return[] = $numbers;
67
}
68
69
return $return;
0 commit comments