public function getFiles(Finder $finder)
    {
        $finder->files()->in($this->directory)->ignoreUnreadableDirs();

        // Ignore third party libraries.
        foreach ($this->getThirdPartyLibraryPaths() as $libPath) {
            $finder->notPath($libPath);
        }

        // Extra ignores for CI.
        $ignores = $this->getIgnores();

        if (!empty($ignores['notPaths'])) {
            foreach ($ignores['notPaths'] as $notPath) {
                $finder->notPath($notPath);
            }
        }
        if (!empty($ignores['notNames'])) {
            foreach ($ignores['notNames'] as $notName) {
                $finder->notName($notName);
            }
        }

        $files = [];
        foreach ($finder as $file) {
            /* @var \SplFileInfo $file */
            $files[] = $file->getRealPath();
        }

        return $files;
    }
public function getFiles(Finder $finder)
    {
        $finder->files()->in($this->directory)->ignoreUnreadableDirs();

        // Ignore third party libraries.
        foreach ($this->getThirdPartyLibraryPaths() as $libPath) {
            $finder->notPath($libPath);
        }

        // Extra ignores for CI.
        $ignores = $this->getIgnores();

        if (!empty($ignores['notPaths'])) {
            foreach ($ignores['notPaths'] as $notPath) {
                $finder->notPath($notPath);
            }
        }
        if (!empty($ignores['notNames'])) {
            foreach ($ignores['notNames'] as $notName) {
                $finder->notName($notName);
            }
        }

        $files = [];
        foreach ($finder as $file) {
            /* @var \SplFileInfo $file */
            $files[] = $file->getRealPath();
        }

        return $files;
    }
public function getFiles ( Finder $ finder ) { $ finder -> files ( ) -> in ( $ this -> directory ) -> ignoreUnreadableDirs ( ) ; // Ignore third party libraries. foreach ( $ this -> getThirdPartyLibraryPaths ( ) as $ libPath ) { $ finder -> notPath ( $ libPath ) ; } // Extra ignores for CI. $ ignores = $ this -> getIgnores ( ) ; if ( ! empty ( $ ignores [ 'notPaths' ] ) ) { foreach ( $ ignores [ 'notPaths' ] as $ notPath ) { $ finder -> notPath ( $ notPath ) ; } } if ( ! empty ( $ ignores [ 'notNames' ] ) ) { foreach ( $ ignores [ 'notNames' ] as $ notName ) { $ finder -> notName ( $ notName ) ; } } $ files = [ ] ; foreach ( $ finder as $ file ) { /* @var \SplFileInfo $file */ $ files [ ] = $ file -> getRealPath ( ) ; } return $ files ; }
Get a list of plugin files.

@param Finder $finder The finder to use, can be pre-configured

@return array Of files
Get a list of plugin files .