private function cleanInstalledPaths()
    {
        $changes = false;
        foreach ($this->installedPaths as $key => $path) {
            // This might be a relative path as well
            $alternativePath = realpath($this->getPHPCodeSnifferInstallPath() . DIRECTORY_SEPARATOR . $path);

            if ((is_dir($path) === false || is_readable($path) === false) &&
                (is_dir($alternativePath) === false || is_readable($alternativePath) === false)
            ) {
                unset($this->installedPaths[$key]);
                $changes = true;
            }
        }
        return $changes;
    }
private function cleanInstalledPaths()
    {
        $changes = false;
        foreach ($this->installedPaths as $key => $path) {
            // This might be a relative path as well
            $alternativePath = realpath($this->getPHPCodeSnifferInstallPath() . DIRECTORY_SEPARATOR . $path);

            if ((is_dir($path) === false || is_readable($path) === false) &&
                (is_dir($alternativePath) === false || is_readable($alternativePath) === false)
            ) {
                unset($this->installedPaths[$key]);
                $changes = true;
            }
        }
        return $changes;
    }
private function cleanInstalledPaths ( ) { $ changes = false ; foreach ( $ this -> installedPaths as $ key => $ path ) { // This might be a relative path as well $ alternativePath = realpath ( $ this -> getPHPCodeSnifferInstallPath ( ) . DIRECTORY_SEPARATOR . $ path ) ; if ( ( is_dir ( $ path ) === false || is_readable ( $ path ) === false ) && ( is_dir ( $ alternativePath ) === false || is_readable ( $ alternativePath ) === false ) ) { unset ( $ this -> installedPaths [ $ key ] ) ; $ changes = true ; } } return $ changes ; }
Iterate trough all known paths and check if they are still valid.

If path does not exists, is not an directory or isn't readable, the path
is removed from the list.

@return bool True if changes where made, false otherwise
Iterate trough all known paths and check if they are still valid .