| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 65 | 13 | protected function setUpdatedTime() |
|
| 66 | { |
||
| 67 | 13 | if (!$this->updated_at) { |
|
| 68 | 13 | $this->updated_at = time(); |
|
|
1 ignored issue
–
show
|
|||
| 69 | 13 | } |
|
| 70 | } |
||
| 71 | } |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.