Files
kupshop/bundles/KupShop/OSSVatsBundle/Inspection/OSSVatsInspection.php
2025-08-02 16:30:27 +02:00

22 lines
633 B
PHP

<?php
namespace KupShop\OSSVatsBundle\Inspection;
use KupShop\SystemInspectionBundle\Inspections\Inspection;
use KupShop\SystemInspectionBundle\Inspections\User\UserInspectionInterface;
use KupShop\SystemInspectionBundle\InspectionWriters\MessageTypes\SimpleMessage;
class OSSVatsInspection extends Inspection implements UserInspectionInterface
{
public function runInspection(): ?array
{
$defaultCN = \Settings::getDefault()['oss_vats']['default'];
if (empty($defaultCN)) {
return [new SimpleMessage('Není nastavená výchozí celní nomenklatura')];
}
return null;
}
}