diff --git a/services/scanners/ScannerFile.php b/services/scanners/ScannerFile.php index 38ff007..716f814 100644 --- a/services/scanners/ScannerFile.php +++ b/services/scanners/ScannerFile.php @@ -173,13 +173,11 @@ protected function extractMessages($fileName, $options) { abstract protected function getLanguageItem($buffer); /** - * Returns the root directory of the project. + * Returns the root directory of the project scan. * @return string */ private function _getRoot() { - $directories = explode(DIRECTORY_SEPARATOR, Yii::getAlias($this->module->root)); - array_pop($directories); - return implode(DIRECTORY_SEPARATOR, $directories); + return Yii::getAlias($this->module->root); } /**