protected function endProfile($token, $category) { if ($token !== false && $this->db->enableProfiling) { Yii::endProfile($token, $category); } }