Code Duplication    Length = 3-3 lines in 2 locations

lib/ElectionProcess/CandidatesProcess.php 1 location

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

lib/ElectionProcess/VotesProcess.php 1 location

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