Passed
Push — moreTests ( 25cdd4...5c9253 )
by Matias
08:06 queued 06:02
created

Requirements::pdlibLoaded()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
namespace OCA\FaceRecognition\Helper;
3
4
use OCA\FaceRecognition\Helper\MemoryLimits;
5
6
use OCA\FaceRecognition\Service\SettingsService;
7
8
class Requirements
9
{
10 1
	public static function hasEnoughMemory(): bool {
11 1
		$memory = MemoryLimits::getSystemMemory();
12 1
		return ($memory > SettingsService::MINIMUM_SYSTEM_MEMORY_REQUIREMENTS);
13
	}
14
15 1
	public static function pdlibLoaded(): bool {
16 1
		return extension_loaded('pdlib');
17
	}
18
19
}
20