Code Duplication    Length = 6-9 lines in 2 locations

class.AuthProvider.php 2 locations

@@ 382-387 (lines=6) @@
379
    {
380
        $ret = array();
381
        $count = count($this->methods);
382
        for($i = 0; $i < $count; $i++)
383
        {
384
            if($this->methods[$i]->supplement === false) continue;
385
386
            array_push($ret, $this->methods[$i]->getSupplementLink());
387
        }
388
        return $ret;
389
    }
390
@@ 542-550 (lines=9) @@
539
    public function getSuplementalProviderByHost($host)
540
    {
541
        $count = count($this->methods);
542
        for($i = 0; $i < $count; $i++)
543
        {
544
            if($this->methods[$i]->supplement === false) continue;
545
546
            if($this->methods[$i]->getHostName() === $host)
547
            {
548
                return $this->methods[$i];
549
            }
550
        }
551
        return false;
552
    }
553