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

Requirements   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 4
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 9
ccs 0
cts 6
cp 0
rs 10
c 4
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A pdlibLoaded() 0 2 1
A hasEnoughMemory() 0 3 1
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