Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( cc690b...a55be4 )
by Dan
25s queued 16s
created

Time   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 16
rs 10
c 1
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getMicroTime() 0 2 1
A __construct() 0 3 1
A getTime() 0 2 1
1
<?php declare(strict_types=1);
2
3
/**
4
 * Stores the current time.
5
 */
6
class Time {
7
8
	private float $microtime;
9
	private int $time;
10
11
	public function __construct() {
12
		$this->microtime = microtime(true);
13
		$this->time = IFloor($this->microtime);
14
	}
15
16
	public function getMicroTime() : float {
17
		return $this->microtime;
18
	}
19
20
	public function getTime() : int {
21
		return $this->time;
22
	}
23
24
}
25