Minor refactoring in Yii2Debug.php