Cleanup::all()   A
last analyzed

Complexity

Conditions 3
Paths 4

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 3

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 3
eloc 4
c 1
b 1
f 0
nc 4
nop 0
dl 0
loc 8
ccs 5
cts 5
cp 1
crap 3
rs 10
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