Commit 5b7032b8 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

[FIX] Correction de choses signalées par phpcs pour la version cible PHP 8.2

parent 3464100d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
<?php

namespace Doctorant\Entity\Db\Interface;

use Doctorant\Entity\Db\Doctorant;
namespace Doctorant\Entity\Db;

interface HasDoctorantInterface
{
+1 −3
Original line number Diff line number Diff line
<?php

namespace Doctorant\Entity\Db\Trait;

use Doctorant\Entity\Db\Doctorant;
namespace Doctorant\Entity\Db;

trait HasDoctorantTrait
{
+0 −2
Original line number Diff line number Diff line
@@ -2,8 +2,6 @@

namespace Doctorant\Entity\Db;

use Doctorant\Entity\Db\Interface\HasDoctorantInterface;
use Doctorant\Entity\Db\Trait\HasDoctorantTrait;
use UnicaenUtilisateur\Entity\Db\HistoriqueAwareInterface;
use UnicaenUtilisateur\Entity\Db\HistoriqueAwareTrait;

+0 −17
Original line number Diff line number Diff line
<?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Soutenance\Validator;

@@ -65,16 +58,6 @@ class DateLesserThan extends AbstractValidator
        if ($options instanceof Traversable) {
            $options = ArrayUtils::iteratorToArray($options);
        }
        if (!is_array($options)) {
            $options = func_get_args();
            $temp['max'] = array_shift($options);

            if (!empty($options)) {
                $temp['inclusive'] = array_shift($options);
            }

            $options = $temp;
        }

        if (!array_key_exists('max', $options)) {
            throw new InvalidArgumentException("Missing option 'max'");