Type-casting

When converting the type of variable, use type-casting instead of dedicated methods. Reason: better performance.

PHP
// GOOD
$score = (int) '7';
$hasMadeAnyProgress = (bool) $this->score;

// BAD
$score = intval('7');
$hasMadeAnyProgress = boolval($this->score);