src/main/php/CommandLine/Library/FinderToPathsConverter.php
public function finderToArrayOfPaths(Finder $finder) : array
    {
        $result = array_map(
            function ($value) {
                /** @var SplFileInfo $value */
                return $value->getRelativePathname();
            },
            iterator_to_array($finder)
        );

        return array_values($result);
    }
public function finderToArrayOfPaths(Finder $finder) : array
    {
        $result = array_map(
            function ($value) {
                /** @var SplFileInfo $value */
                return $value->getRelativePathname();
            },
            iterator_to_array($finder)
        );

        return array_values($result);
    }
public function finderToArrayOfPaths ( Finder $ finder ) : array { $ result = array_map ( function ( $ value ) { /** @var SplFileInfo $value */ return $ value -> getRelativePathname ( ) ; } , iterator_to_array ( $ finder ) ) ; return array_values ( $ result ) ; }
Converts Finder objects to Arrays of their relative paths.

@param Finder $finder

@return string[]
Converts Finder objects to Arrays of their relative paths .