22 lines
633 B
PHP
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;
|
|
}
|
|
}
|