From 136dbbf97e4451af6343167f1ee896bf0016cff0 Mon Sep 17 00:00:00 2001 From: Stanislav Krotov Date: Mon, 18 Oct 2021 20:52:23 +0300 Subject: [PATCH] 1.1.7.2 --- composer.json | 2 +- src/ImportResult.php | 24 ++++++------------------ 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/composer.json b/composer.json index 548cd68..b584d2e 100755 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "license": "", "authors": [], "minimum-stability": "stable", - "version": "1.1.7.1", + "version": "1.1.7.2", "require": { "php": ">=7", "silex/silex": "^2.0", diff --git a/src/ImportResult.php b/src/ImportResult.php index 61733dc..a9417ef 100644 --- a/src/ImportResult.php +++ b/src/ImportResult.php @@ -82,30 +82,18 @@ public function addInsertTime(float $time): self return $this; } - public function getSelectTime(): float + public function getSelectTime(): array { - if (!count($this->selectTime)) { - return 0.0; - } - - return array_sum($this->selectTime) / count($this->selectTime); + return $this->selectTime; } - public function getConvertTime(): float + public function getConvertTime(): array { - if (!count($this->convertTime)) { - return 0.0; - } - - return array_sum($this->convertTime) / count($this->convertTime); + return $this->convertTime; } - public function getInsertTime(): float + public function getInsertTime(): array { - if (!count($this->insertTime)) { - return 0.0; - } - - return array_sum($this->insertTime) / count($this->insertTime); + return $this->insertTime; } }