TorWrapper   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 18
rs 10
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 Base
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
}