Completed
Push — master ( 150f22...447137 )
by Andrii
02:13
created

NpmRegistry   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 1
cbo 2
dl 0
loc 11
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildPackageUrl() 0 4 1
1
<?php
2
3
/*
4
 * Asset Packagist
5
 *
6
 * @link      https://github.com/hiqdev/asset-packagist
7
 * @package   asset-packagist
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hiqdev\assetpackagist\registry;
13
14
class NpmRegistry extends \Fxp\Composer\AssetPlugin\Repository\NpmRepository
15
{
16
    use RegistryTrait;
17
18
    public $siteUrl = 'https://www.npmjs.com/';
19
20
    public function buildPackageUrl($name)
21
    {
22
        return $this->siteUrl . 'package/' . $name;
23
    }
24
}
25