App\services\ImportService::checkData PHP Method

checkData() private method

private checkData ( $entityType, $count )
$entityType
$count
    private function checkData($entityType, $count)
    {
        if (Utils::isNinja() && $count > MAX_IMPORT_ROWS) {
            throw new Exception(trans('texts.limit_import_rows', ['count' => MAX_IMPORT_ROWS]));
        }
        if ($entityType === ENTITY_CLIENT) {
            $this->checkClientCount($count);
        }
    }