Code Duplication    Length = 3-4 lines in 2 locations

src/validator/Validator.class.php 2 locations

@@ 613-616 (lines=4) @@
610
        $base = clone $base;
611
        if ($base->length() == 0) {
612
            // we have an empty base so we do the actual validation
613
            if ($this->getDependencyManager() && (count($this->getParameter('depends')) > 0 && !$this->getDependencyManager()->checkDependencies($this->getParameter('depends'), $this->curBase))) {
614
                // dependencies not met, exit with success
615
                return self::NOT_PROCESSED;
616
            }
617
618
            $this->affectedArguments = $this->getFullArgumentNames();
619
@@ 651-653 (lines=3) @@
648
649
            $this->incident = null;
650
            // put dependencies provided by this validator into manager
651
            if ($this->getDependencyManager() && ($result == self::SUCCESS && count($this->getParameter('provides')) > 0)) {
652
                $this->getDependencyManager()->addDependTokens($this->getParameter('provides'), $this->curBase);
653
            }
654
            return $result;
655
        } elseif ($base->left() !== '') {
656
            /*