Passed
Push — master ( 24898d...721548 )
by Gaetano
08:06
created

DeprecationLogger   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 11
rs 10
c 1
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A logDeprecation() 0 7 2
1
<?php
2
3
namespace PhpXmlRpc\Traits;
4
5
use PhpXmlRpc\PhpXmlRpc;
6
7
trait DeprecationLogger
8
{
9
    use LoggerAware;
10
11
    protected function logDeprecation($message)
12
    {
13
        if (PhpXmlRpc::$xmlrpc_silence_deprecations) {
14
            return;
15
        }
16
17
        $this->getLogger()->warning('XML-RPC Deprecated: ' . $message);
18
    }
19
}
20