Color   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A isSupported() 0 8 2
1
<?php
2
declare(strict_types=1);
3
namespace Watchmaker\lib;
4
5
use JakubOnderka\PhpConsoleColor\ConsoleColor;
6
use Watchmaker\Watchmaker;
7
8
class Color extends ConsoleColor
9
{
10
    public function isSupported()
11
    {
12
        $config = Watchmaker::getConfig();
13
        if ($config->ansi === true) {
14
            return true;
15
        }
16
17
        return parent::isSupported();
18
    }
19
}
20