Code Duplication    Length = 3-3 lines in 2 locations

lib/ElectionProcess/CandidatesProcess.php 1 location

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

lib/ElectionProcess/VotesProcess.php 1 location

@@ 287-289 (lines=3) @@
284
285
            // addVote
286
            for ($i = 0; $i < $multiple; $i++) :
287
                if (self::$_maxParseIteration !== null && count($adding) >= self::$_maxParseIteration) :
288
                    throw new CondorcetException(12, self::$_maxParseIteration);
289
                endif;
290
291
                try {
292
                    $adding[] = ($newVote = $this->addVote($vote, $tags));