Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
22 | 1 | public function find() { |
|
|
|||
23 | 1 | $hours = $this->randomOrgAPI->call('generateIntegers', ['n' => 1, 'min' => 0, 'max' => 23])->getData(); |
|
24 | 1 | $minutes_seconds = $this->randomOrgAPI->call('generateIntegers', ['n' => 2, 'min' => 0, 'max' => 59])->getData(); |
|
25 | |||
26 | 1 | $this->time = [ |
|
27 | 1 | 'h' => $hours[0], |
|
28 | 1 | 'm' => $minutes_seconds[0], |
|
29 | 1 | 's' => $minutes_seconds[1], |
|
30 | ]; |
||
31 | |||
32 | 1 | return $this; |
|
33 | } |
||
34 | |||
45 |
This check marks variable 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
.