private function getInPaths(): array
    {
        $inPaths = [];

        foreach ($this->includePaths as $path) {
            if (strpos($path, $this->rootDirectory, 0) === false) {
                throw new UnexpectedValueException(sprintf('Path %s is not in %s', $path, $this->rootDirectory));
            }

            $path = str_replace('*', '', $path);
            $inPaths[] = $path;
        }

        if (empty($inPaths)) {
            $inPaths[] = $this->rootDirectory;
        }

        return $inPaths;
    }
private function getInPaths(): array
    {
        $inPaths = [];

        foreach ($this->includePaths as $path) {
            if (strpos($path, $this->rootDirectory, 0) === false) {
                throw new UnexpectedValueException(sprintf('Path %s is not in %s', $path, $this->rootDirectory));
            }

            $path = str_replace('*', '', $path);
            $inPaths[] = $path;
        }

        if (empty($inPaths)) {
            $inPaths[] = $this->rootDirectory;
        }

        return $inPaths;
    }
private function getInPaths ( ) : array { $ inPaths = [ ] ; foreach ( $ this -> includePaths as $ path ) { if ( strpos ( $ path , $ this -> rootDirectory , 0 ) === false ) { throw new UnexpectedValueException ( sprintf ( 'Path %s is not in %s' , $ path , $ this -> rootDirectory ) ) ; } $ path = str_replace ( '*' , '' , $ path ) ; $ inPaths [ ] = $ path ; } if ( empty ( $ inPaths ) ) { $ inPaths [ ] = $ this -> rootDirectory ; } return $ inPaths ; }
Returns collection of directories to look at

@throws UnexpectedValueException if directory not under the root
Returns collection of directories to look at