PassiveViolationHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handleViolation() 0 4 1
1
<?php
2
namespace BehEh\Flaps\Violation;
3
4
use BehEh\Flaps\ViolationHandlerInterface;
5
6
/**
7
 * Handles violations by returning false.
8
 *
9
 * @since 0.1
10
 * @author Benedict Etzel <[email protected]>
11
 */
12
class PassiveViolationHandler implements ViolationHandlerInterface
13
{
14
    /**
15
     * Handles a violation by returning false.
16
     * @return boolean
17
     */
18 1
    public function handleViolation()
19
    {
20 1
        return false;
21
    }
22
}
23