Форматирование
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
<?php
|
||||
|
||||
// app/Services/MetricCalculators/LethalityCalculator.php
|
||||
|
||||
namespace App\Services\MetricCalculators;
|
||||
|
||||
use App\Services\Base\BaseMetricService;
|
||||
use App\Contracts\MetricCalculatorInterface;
|
||||
use App\Services\Base\BaseMetricService;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class LethalityCalculator extends BaseMetricService implements MetricCalculatorInterface
|
||||
@@ -42,8 +43,11 @@ class LethalityCalculator extends BaseMetricService implements MetricCalculatorI
|
||||
|
||||
if (isset($results[$deptId])) {
|
||||
foreach ($results[$deptId] as $item) {
|
||||
if ($item->rf_metrika_item_id == 9) $deceased = (int)$item->total;
|
||||
else $discharged = (int)$item->total;
|
||||
if ($item->rf_metrika_item_id == 9) {
|
||||
$deceased = (int) $item->total;
|
||||
} else {
|
||||
$discharged = (int) $item->total;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user