Completed
Push — master ( 56ea51...11e69c )
by Rob
04:30 queued 10s
created

TorWrapper   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A process() 0 8 1
A setLocalName() 0 4 1
1
<?php
2
3
namespace devtoolboxuk\cerberus\Wrappers;
4
5
class TorWrapper extends Wrapper
6
{
7
8
    public function process()
9
    {
10
        $this->initWrapper($this->setLocalName());
11
12
        //Check Inbound IP against the list in TorExitNodes.txt
13
14
        $this->setScore($this->getRealScore());
15
        $this->setResult();
16
17
    }
18
19
    private function setLocalName()
20
    {
21
        $name = str_replace(__NAMESPACE__ . '\\', '', __CLASS__);
22
        return str_replace('Wrapper', '', $name);
23
    }
24
}