Completed
Push — master ( 9c3f97...354cdb )
by Matias
55:09 queued 53:38
created

Requirements::pdlibLoaded()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
ccs 0
cts 2
cp 0
crap 2
rs 10
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
	public static function hasEnoughMemory() {
11
		$memory = MemoryLimits::getSystemMemory();
12
		return ($memory > SettingsService::MINIMUM_SYSTEM_MEMORY_REQUIREMENTS);
13
	}
14
15
	public static function pdlibLoaded() {
16
		return extension_loaded('pdlib');
17
	}
18
19
}
20