TorProjectCollector   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 14
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getLocation() 0 4 2
1
<?php
2
3
namespace BramR\TorExits\Collector;
4
5
/**
6
 * Class TorProjectCollector
7
 */
8
class TorProjectCollector extends Collector
9
{
10
    const DEFAULT_LOCATION = 'https://check.torproject.org/exit-addresses';
11
12
    /**
13
     * Getter for location
14
     *
15
     * return string
16
     */
17 2
    public function getLocation()
18
    {
19 2
        return $this->location ? $this->location : self::DEFAULT_LOCATION;
20
    }
21
}
22