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 | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | trait CanCompareValues |
||
| 31 | { |
||
| 32 | /** |
||
| 33 | * Tries to convert a value into something that can be compared with PHP operators. |
||
| 34 | * |
||
| 35 | * @param mixed $value |
||
| 36 | * |
||
| 37 | * @return mixed |
||
| 38 | */ |
||
| 39 | 100 | private function toComparable($value) |
|
| 57 | } |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Returns whether the values can be compared or not. |
||
| 62 | * |
||
| 63 | * @param mixed $left |
||
| 64 | * @param mixed $right |
||
| 65 | * |
||
| 66 | * @return bool |
||
| 67 | */ |
||
| 68 | 98 | private function isAbleToCompareValues($left, $right) |
|
| 73 |