metric) { return $this->getMetricAsIntSafe($row, $this->metric); } } public function getTemporaryMetrics() { if ($this->metric) { return [$this->metric]; } return []; } public function getMetricAsIntSafe(Row $row, $metric) { $value = $this->getMetric($row, $metric); if (false !== $value) { if (strlen((string)$value) >= 9 && is_numeric($value)) { return $value; } else { $value = (int)$value; } } return $value; } public function format($value, Formatter $formatter) { if ($value) { $value = $formatter->getPrettySizeFromBytes($value, null, 2); } return $value; } public function getDependentMetrics() { return []; } public function getMetricId() { return $this->metric; } }