22 lines
598 B
PHP
22 lines
598 B
PHP
<?php
|
|
|
|
namespace KupShop\POSBundle\Inspections\Compile;
|
|
|
|
use KupShop\SystemInspectionBundle\Inspections\Compile\CompileInspectionInterface;
|
|
use KupShop\SystemInspectionBundle\Inspections\Inspection;
|
|
use KupShop\SystemInspectionBundle\InspectionWriters\MessageTypes\SimpleMessage;
|
|
|
|
class PosInspection extends Inspection implements CompileInspectionInterface
|
|
{
|
|
public function runInspection(): ?array
|
|
{
|
|
$errors = [];
|
|
|
|
if (!findModule(\Modules::GRAPHQL)) {
|
|
$errors[] = new SimpleMessage('Modul graphql není zapnutý.');
|
|
}
|
|
|
|
return $errors;
|
|
}
|
|
}
|