NotGiveAFuck   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 1
Metric Value
wmc 3
c 2
b 1
f 1
lcom 0
cbo 0
dl 0
loc 20
ccs 8
cts 8
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A isHandling() 0 4 1
A lolify() 0 9 2
1
<?php
2
3
namespace Monolol\Lolifiers;
4
5
use Monolol\Lolifier;
6
use Monolog\Logger;
7
8
class NotGiveAFuck implements Lolifier
9
{
10
    const
11
        MESSAGE = "It seems that your application has encountered an issue. But as we don't give a fuck, we will not tell you what the problem is. Have a good day.";
12
    
13 1
    public function isHandling(array $record)
14
    {
15 1
        return true;
16
    }
17
    
18 8
    public function lolify(array $record)
19
    {
20 8
        if($record['level'] > Logger::INFO)
21 8
        {
22 6
            $record['message'] = self::MESSAGE;
23 6
        }
24
        
25 8
        return $record;
26
    }
27
}
28