Completed
Push — master ( 464f3e...afe7d8 )
by r
13s queued 10s
created

Zone   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 12.5%

Importance

Changes 0
Metric Value
dl 0
loc 42
ccs 2
cts 16
cp 0.125
rs 10
c 0
b 0
f 0
wmc 8
lcom 0
cbo 1

8 Methods

Rating   Name   Duplication   Size   Complexity  
A zonez0() 0 4 1
A zonez1() 0 4 1
A zonez2() 0 4 1
A zoneAs0() 0 4 1
A zoneNa0() 0 4 1
A qvmZonez0() 0 4 1
A qvmZonez1() 0 4 1
A queryZone() 0 4 1
1
<?php
2
namespace Qiniu;
3
4
use Qiniu\Region;
5
6
class Zone extends Region
7
{
8
    public static function zonez0()
9
    {
10
        return parent::regionHuadong();
0 ignored issues
show
Comprehensibility Bug introduced by
It seems like you call parent on a different method (regionHuadong() instead of zonez0()). Are you sure this is correct? If so, you might want to change this to $this->regionHuadong().

This check looks for a call to a parent method whose name is different than the method from which it is called.

Consider the following code:

class Daddy
{
    protected function getFirstName()
    {
        return "Eidur";
    }

    protected function getSurName()
    {
        return "Gudjohnsen";
    }
}

class Son
{
    public function getFirstName()
    {
        return parent::getSurname();
    }
}

The getFirstName() method in the Son calls the wrong method in the parent class.

Loading history...
11
    }
12
13
    public static function zonez1()
14
    {
15
        return parent::regionHuabei();
0 ignored issues
show
Comprehensibility Bug introduced by
It seems like you call parent on a different method (regionHuabei() instead of zonez1()). Are you sure this is correct? If so, you might want to change this to $this->regionHuabei().

This check looks for a call to a parent method whose name is different than the method from which it is called.

Consider the following code:

class Daddy
{
    protected function getFirstName()
    {
        return "Eidur";
    }

    protected function getSurName()
    {
        return "Gudjohnsen";
    }
}

class Son
{
    public function getFirstName()
    {
        return parent::getSurname();
    }
}

The getFirstName() method in the Son calls the wrong method in the parent class.

Loading history...
16
    }
17
18
    public static function zonez2()
19
    {
20
        return parent::regionHuanan();
0 ignored issues
show
Comprehensibility Bug introduced by
It seems like you call parent on a different method (regionHuanan() instead of zonez2()). Are you sure this is correct? If so, you might want to change this to $this->regionHuanan().

This check looks for a call to a parent method whose name is different than the method from which it is called.

Consider the following code:

class Daddy
{
    protected function getFirstName()
    {
        return "Eidur";
    }

    protected function getSurName()
    {
        return "Gudjohnsen";
    }
}

class Son
{
    public function getFirstName()
    {
        return parent::getSurname();
    }
}

The getFirstName() method in the Son calls the wrong method in the parent class.

Loading history...
21
    }
22
23
    public static function zoneAs0()
24
    {
25
        return parent::regionSingapore();
0 ignored issues
show
Comprehensibility Bug introduced by
It seems like you call parent on a different method (regionSingapore() instead of zoneAs0()). Are you sure this is correct? If so, you might want to change this to $this->regionSingapore().

This check looks for a call to a parent method whose name is different than the method from which it is called.

Consider the following code:

class Daddy
{
    protected function getFirstName()
    {
        return "Eidur";
    }

    protected function getSurName()
    {
        return "Gudjohnsen";
    }
}

class Son
{
    public function getFirstName()
    {
        return parent::getSurname();
    }
}

The getFirstName() method in the Son calls the wrong method in the parent class.

Loading history...
26
    }
27
28
    public static function zoneNa0()
29
    {
30
        return parent::regionNorthAmerica();
0 ignored issues
show
Comprehensibility Bug introduced by
It seems like you call parent on a different method (regionNorthAmerica() instead of zoneNa0()). Are you sure this is correct? If so, you might want to change this to $this->regionNorthAmerica().

This check looks for a call to a parent method whose name is different than the method from which it is called.

Consider the following code:

class Daddy
{
    protected function getFirstName()
    {
        return "Eidur";
    }

    protected function getSurName()
    {
        return "Gudjohnsen";
    }
}

class Son
{
    public function getFirstName()
    {
        return parent::getSurname();
    }
}

The getFirstName() method in the Son calls the wrong method in the parent class.

Loading history...
31
    }
32
33
    public static function qvmZonez0()
34
    {
35
        return parent::qvmRegionHuadong();
0 ignored issues
show
Comprehensibility Bug introduced by
It seems like you call parent on a different method (qvmRegionHuadong() instead of qvmZonez0()). Are you sure this is correct? If so, you might want to change this to $this->qvmRegionHuadong().

This check looks for a call to a parent method whose name is different than the method from which it is called.

Consider the following code:

class Daddy
{
    protected function getFirstName()
    {
        return "Eidur";
    }

    protected function getSurName()
    {
        return "Gudjohnsen";
    }
}

class Son
{
    public function getFirstName()
    {
        return parent::getSurname();
    }
}

The getFirstName() method in the Son calls the wrong method in the parent class.

Loading history...
36
    }
37
38
    public static function qvmZonez1()
39
    {
40
        return parent::qvmRegionHuabei();
0 ignored issues
show
Comprehensibility Bug introduced by
It seems like you call parent on a different method (qvmRegionHuabei() instead of qvmZonez1()). Are you sure this is correct? If so, you might want to change this to $this->qvmRegionHuabei().

This check looks for a call to a parent method whose name is different than the method from which it is called.

Consider the following code:

class Daddy
{
    protected function getFirstName()
    {
        return "Eidur";
    }

    protected function getSurName()
    {
        return "Gudjohnsen";
    }
}

class Son
{
    public function getFirstName()
    {
        return parent::getSurname();
    }
}

The getFirstName() method in the Son calls the wrong method in the parent class.

Loading history...
41
    }
42
43 27
    public static function queryZone($ak, $bucket)
44
    {
45 27
        return parent::queryRegion($ak, $bucket);
0 ignored issues
show
Comprehensibility Bug introduced by
It seems like you call parent on a different method (queryRegion() instead of queryZone()). Are you sure this is correct? If so, you might want to change this to $this->queryRegion().

This check looks for a call to a parent method whose name is different than the method from which it is called.

Consider the following code:

class Daddy
{
    protected function getFirstName()
    {
        return "Eidur";
    }

    protected function getSurName()
    {
        return "Gudjohnsen";
    }
}

class Son
{
    public function getFirstName()
    {
        return parent::getSurname();
    }
}

The getFirstName() method in the Son calls the wrong method in the parent class.

Loading history...
46
    }
47
}
48