Cleanup   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 5
c 1
b 1
f 0
dl 0
loc 10
ccs 5
cts 5
cp 1
rs 10
wmc 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A all() 0 8 3
1
<?php
2
3
namespace Bavix\AdvancedHtmlDom;
4
5
class Cleanup
6
{
7 5
    public static function all(): void
8
    {
9 5
        if (\function_exists('gc_collect_cycles')) {
10 5
            \gc_collect_cycles();
11
        }
12
13 5
        if (\function_exists('gc_mem_caches')) {
14 5
            \gc_mem_caches();
15
        }
16 5
    }
17
}
18
19