We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 9 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 91.67% |
Changes | 0 |
1 | <?php |
||
29 | trait ComparisonHelper |
||
30 | { |
||
31 | /** |
||
32 | * Tries to convert a value into something that can be compared with PHP operators. |
||
33 | * |
||
34 | * @param mixed $value |
||
35 | * |
||
36 | * @return mixed |
||
37 | */ |
||
38 | 12 | private function toComparable($value) |
|
56 | } |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * Returns whether the values can be compared or not. |
||
61 | * |
||
62 | * @param mixed $left |
||
63 | * @param mixed $right |
||
64 | * |
||
65 | * @return bool |
||
66 | */ |
||
67 | 12 | private function isAbleToCompareValues($left, $right) |
|
72 |