Code Duplication    Length = 6-9 lines in 2 locations

class.AuthProvider.php 2 locations

@@ 276-281 (lines=6) @@
273
    {
274
        $ret = array();
275
        $count = count($this->methods);
276
        for($i = 0; $i < $count; $i++)
277
        {
278
            if($this->methods[$i]->supplement === false)
279
            {
280
                continue;
281
            }
282
283
            array_push($ret, $this->methods[$i]->getSupplementLink());
284
        }
@@ 423-431 (lines=9) @@
420
    public function getSuplementalProviderByHost($host)
421
    {
422
        $count = count($this->methods);
423
        for($i = 0; $i < $count; $i++)
424
        {
425
            if($this->methods[$i]->supplement === false)
426
            {
427
                continue;
428
            }
429
430
            if($this->methods[$i]->getHostName() === $host)
431
            {
432
                return $this->methods[$i];
433
            }
434
        }