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::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
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