src/Build/Builder.php
protected function findSources($searchIn, $outputTo)
    {
        $files = iterator_to_array(new FilesystemIterator($searchIn));

        return array_map(function (SplFileInfo $file) use ($outputTo) {

            return $this->makeSource($file, $outputTo);

        }, $files);
    }
protected function findSources($searchIn, $outputTo)
    {
        $files = iterator_to_array(new FilesystemIterator($searchIn));

        return array_map(function (SplFileInfo $file) use ($outputTo) {

            return $this->makeSource($file, $outputTo);

        }, $files);
    }
protected function findSources ( $ searchIn , $ outputTo ) { $ files = iterator_to_array ( new FilesystemIterator ( $ searchIn ) ) ; return array_map ( function ( SplFileInfo $ file ) use ( $ outputTo ) { return $ this -> makeSource ( $ file , $ outputTo ) ; } , $ files ) ; }
Create array of Sources from the given input directory.

@param string $searchIn
@param string $outputTo
@return array
Create array of Sources from the given input directory .