diff --git a/src/Service/WarrantyBulkUploader.php b/src/Service/WarrantyBulkUploader.php index 8ba278a3..fec7b657 100644 --- a/src/Service/WarrantyBulkUploader.php +++ b/src/Service/WarrantyBulkUploader.php @@ -37,7 +37,7 @@ class WarrantyBulkUploader const F_BATT_ID = 18; // sap code in system const F_OWNER_TYPE = 19; - const F_TOTAL = 20; + const FIELD_COUNT = 20; protected $em; protected $batt_hash; @@ -205,7 +205,7 @@ class WarrantyBulkUploader // check number of fields. // (1) should match what is in F_TOTAL - if (count($fields) != self::F_TOTAL) + if (count($fields) != self::FIELD_COUNT) { $message = 'Invalid row.'; $errors = $this->setOutputInfo($fields, 'NOT UPLOADED', $message, $row_num); @@ -319,7 +319,7 @@ class WarrantyBulkUploader protected function setOutputInfo($fields, $status, $message, $row_num) { - if (count($fields) != self::F_TOTAL) + if (count($fields) != self::FIELD_COUNT) { // since we don't know field might be missing, we just output status and reason return [