Test Failed
Push — main ( fac5ed...59bfee )
by Rafael
50:50
created

Debug   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 6 1
1
<?php
2
3
/* Copyright (C) 2024      Rafael San José      <[email protected]>
4
 *
5
 * This program is free software; you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License as published by
7
 * the Free Software Foundation; either version 3 of the License, or
8
 * any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program. If not, see <https://www.gnu.org/licenses/>.
17
 */
18
19
namespace DoliCore\Tools;
20
21
use DoliCore\Tools\DebugBarCollector\DolLogsCollector;
22
use DoliCore\Tools\DebugBarCollector\DolQueryCollector;
23
24
/**
25
 * Class Debug
26
 *
27
 * This class is only needed for compatibility with Dolibarr.
28
 *
29
 * @package DoliCore\Tools
30
 */
31
abstract class Debug extends \Alxarafe\Tools\Debug
32
{
33
    public static function load()
34
    {
35
        parent::load();
36
37
        parent::getDebugBar()->addCollector(new DolQueryCollector());
38
        parent::getDebugBar()->addCollector(new DolLogsCollector());
39
    }
40
}
41