Code Duplication    Length = 3-3 lines in 2 locations

lib/ElectionProcess/CandidatesProcess.php 1 location

@@ 212-214 (lines=3) @@
209
210
            // addCandidate
211
            try {
212
                if (self::$_maxParseIteration !== null && count($adding) >= self::$_maxParseIteration) :
213
                    throw new CondorcetException(12, self::$_maxParseIteration);
214
                endif;
215
216
                $adding[] = $this->addCandidate($line);
217
            } catch (CondorcetException $e) {

lib/ElectionProcess/VotesProcess.php 1 location

@@ 297-299 (lines=3) @@
294
295
            // addVote
296
            for ($i = 0; $i < $multiple; $i++) :
297
                if (self::$_maxParseIteration !== null && count($adding) >= self::$_maxParseIteration) :
298
                    throw new CondorcetException(12, self::$_maxParseIteration);
299
                endif;
300
301
                try {
302
                    $adding[] = ($newVote = $this->addVote($vote, $tags));