Commit 7dd25917 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

[FIX] Problèmes signalés par PHPStorm

parent ac51b26d
Loading
Loading
Loading
Loading
Loading
+3 −12
Original line number Diff line number Diff line
@@ -3,21 +3,12 @@
namespace UnicaenDbAnonym;

use Laminas\Config\Factory as ConfigFactory;
use Unicaen\Console\Adapter\AdapterInterface;
use Laminas\Mvc\ModuleRouteListener;
use Laminas\Mvc\MvcEvent;
use Laminas\Stdlib\Glob;
use Unicaen\Console\Adapter\AdapterInterface;

class Module
{
//    public function onBootstrap(MvcEvent $e)
//    {
//        $eventManager        = $e->getApplication()->getEventManager();
//        $moduleRouteListener = new ModuleRouteListener();
//        $moduleRouteListener->attach($eventManager);
//    }

    public function getConfig()
    public function getConfig(): array
    {
        $paths = array_merge(
            [__DIR__ . '/config/module.config.php'],
@@ -49,7 +40,7 @@ class Module
    /**
     * @inheritDoc
     */
    public function getConsoleUsage(AdapterInterface $console)
    public function getConsoleUsage(AdapterInterface $console): array
    {
        return [
            /**
+1 −6
Original line number Diff line number Diff line
@@ -3,19 +3,14 @@
namespace UnicaenDbAnonym\Controller;

use Exception;
use RuntimeException;
use Unicaen\Console\Controller\AbstractConsoleController;
use UnicaenApp\Exception\RuntimeException;
use UnicaenDbAnonym\Service\AnonymServiceAwareTrait;

class ConsoleController extends AbstractConsoleController
{
    use AnonymServiceAwareTrait;

    /**
     * @var string
     */
    protected $outputDir;

    public function genererAction()
    {
        $start = microtime(true);
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ namespace UnicaenDbAnonym\Controller;
use Application\Controller\AbstractController;
use Exception;
use Laminas\View\Model\ViewModel;
use UnicaenApp\Exception\RuntimeException;
use RuntimeException;
use UnicaenApp\Service\SQL\RunSQLResult;
use UnicaenDbAnonym\Service\AnonymServiceAwareTrait;

+2 −0
Original line number Diff line number Diff line
@@ -12,6 +12,8 @@ class IndexControllerFactory
     *
     * @param ContainerInterface $container
     * @return IndexController
     * @throws \Psr\Container\ContainerExceptionInterface
     * @throws \Psr\Container\NotFoundExceptionInterface
     */
    public function __invoke(ContainerInterface $container): IndexController
    {
+4 −2
Original line number Diff line number Diff line
@@ -17,12 +17,12 @@ class AnonymService
    /**
     * @var array
     */
    protected $entitiesConfig = [];
    protected array $entitiesConfig = [];

    /**
     * @var array
     */
    protected $outputConfig = [];
    protected array $outputConfig = [];

    /**
     * @param array $config
@@ -105,6 +105,7 @@ class AnonymService

    /**
     * @throws \Doctrine\DBAL\ConnectionException
     * @throws \Doctrine\DBAL\Exception
     */
    public function anonymiser(): RunSQLResult
    {
@@ -122,6 +123,7 @@ class AnonymService

    /**
     * @throws \Doctrine\DBAL\ConnectionException
     * @throws \Doctrine\DBAL\Exception
     */
    public function restaurer(): RunSQLResult
    {
Loading