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

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