NewRelicHandler   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 60%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A write() 0 6 2
1
<?php
2
3
namespace Dafiti\Log\Handler;
4
5
use Monolog\Handler\NewRelicHandler as BaseHandler;
6
7
class NewRelicHandler extends BaseHandler
8
{
9 7
    protected function write(array $record)
10
    {
11 7
        if (extension_loaded('newrelic')) {
12
            parent::write($record);
13
        }
14 7
    }
15
}
16