public function addDuplicateLinks($type, array $packages)
    {
        if ( ! isset($this->duplicateLinks[$type])) {
            $this->duplicateLinks[$type] = [];
        }

        $this->duplicateLinks[$type] = array_merge(
            $this->duplicateLinks[$type],
            $packages
        );

        return $this;
    }
public function addDuplicateLinks($type, array $packages)
    {
        if ( ! isset($this->duplicateLinks[$type])) {
            $this->duplicateLinks[$type] = [];
        }

        $this->duplicateLinks[$type] = array_merge(
            $this->duplicateLinks[$type],
            $packages
        );

        return $this;
    }
public function addDuplicateLinks ( $ type , array $ packages ) { if ( ! isset ( $ this -> duplicateLinks [ $ type ] ) ) { $ this -> duplicateLinks [ $ type ] = [ ] ; } $ this -> duplicateLinks [ $ type ] = array_merge ( $ this -> duplicateLinks [ $ type ] , $ packages ) ; return $ this ; }
Add duplicate packages.

@param  string  $type
@param  array   $packages

@return self
Add duplicate packages .