Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function __construct($seconds, $microseconds, $group, $lap = null, $total = null, $i = 0) |
||
23 | { |
||
24 | parent::__construct('Microtime'); |
||
25 | |||
26 | $this->seconds = (int) $seconds; |
||
27 | $this->microseconds = (int) $microseconds; |
||
28 | |||
29 | $this->group = $group; |
||
30 | $this->lap = $lap; |
||
31 | $this->total = $total; |
||
32 | $this->i = $i; |
||
33 | |||
34 | if ($i) { |
||
35 | $this->avg = $total / $i; |
||
36 | } |
||
37 | |||
38 | $this->mem = memory_get_usage(); |
||
39 | $this->mem_real = memory_get_usage(true); |
||
40 | $this->mem_peak = memory_get_peak_usage(); |
||
41 | $this->mem_peak_real = memory_get_peak_usage(true); |
||
42 | } |
||
43 | |||
49 |
This check marks property names that have not been written in camelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes
databaseConnectionString
.