protected function folder($output, array $uris)
    {
        $folder = (string) '';

        foreach ((array) $uris as $uri) {
            $directory = $output . '/' . (string) $folder;

            file_exists($directory) ?: mkdir($directory);

            $folder === $uri ?: $folder .= '/' . $uri;
        }

        return $folder;
    }
protected function folder($output, array $uris)
    {
        $folder = (string) '';

        foreach ((array) $uris as $uri) {
            $directory = $output . '/' . (string) $folder;

            file_exists($directory) ?: mkdir($directory);

            $folder === $uri ?: $folder .= '/' . $uri;
        }

        return $folder;
    }
protected function folder ( $ output , array $ uris ) { $ folder = ( string ) '' ; foreach ( ( array ) $ uris as $ uri ) { $ directory = $ output . '/' . ( string ) $ folder ; file_exists ( $ directory ) ? : mkdir ( $ directory ) ; $ folder === $ uri ? : $ folder .= '/' . $ uri ; } return $ folder ; }
Returns the whole folder path based from specified URIs.
Also creates the specified folder if it doesn't exists.

@param  string $output
@param  array  $uris
@return string
Returns the whole folder path based from specified URIs . Also creates the specified folder if it doesn t exists .