Completed
Push — master ( c14aad...5ba59a )
by Denis
06:56
created

Debuger   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 15
ccs 4
cts 8
cp 0.5
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A dump() 0 9 3
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: dp
5
 * Date: 23.08.17
6
 * Time: 14:36
7
 */
8
9
namespace Lan\Ebs\Sdk\Helper;
10
11
class Debuger
12
{
13
    /**
14
     * @param $var
15
     */
16 13
    public static function dump($var) {
17 13
        if (class_exists('\Codeception\Util\Debug', false)) {
18
            \Codeception\Util\Debug::debug($var);
19
        } else {
20 13
            if (class_exists('\Ice\Core\Debuger', false)) {
21
                \Ice\Core\Debuger::dump($var);
22
            }
23
        }
24
    }
25
}