src/Loaders/ProposedFilenameLoader.php
/**
     * Loads, sorts and returns the files by using the passed glob pattern.
     *
     * If no pattern will be passed to the `load()` method, the files of
     * the actual directory using `getcwd()` will be returned.
     *
     * @param string|null $filename The pattern to load the files from the filesystem
     *
     * @return array The array with the data
     */
Loads, sorts and returns the files by using the passed glob pattern.
If no pattern will be passed to the `load()` method, the files of
the actual directory using `getcwd()` will be returned.

@param string|null $filename The pattern to load the files from the filesystem

@return array The array with the data
Loads sorts and returns the files by using the passed glob pattern . If no pattern will be passed to the ` load () ` method the files of the actual directory using ` getcwd () ` will be returned . @param string|null $filename The pattern to load the files from the filesystem @return array The array with the data
public function load($filename = null) : string
    {
        $matches = array();
        if (preg_match($this->getPattern(), $filename, $matches, $this->getFlags(), $this->getOffset())) {
            return $filename;
        }
        $elements = $this->resolveValues();
        $newFilename = implode($this->getElementSeparator(), $elements);
        return sprintf('%s.%s', $newFilename, $this->getSuffix());
    }
public function load ( $ filename = null ) : string { $ matches = array ( ) ; if ( preg_match ( $ this -> getPattern ( ) , $ filename , $ matches , $ this -> getFlags ( ) , $ this -> getOffset ( ) ) ) { return $ filename ; } $ elements = $ this -> resolveValues ( ) ; $ newFilename = implode ( $ this -> getElementSeparator ( ) , $ elements ) ; return sprintf ( '%s.%s' , $ newFilename , $ this -> getSuffix ( ) ) ; }
Loads, sorts and returns the files by using the passed glob pattern.
Loads sorts and returns the files by using the passed glob pattern .
// initialize the array with the matches // query whether or not the passed subject matches the pattern // initialize the pattern values // create the filename by concatenating the element values // create the path to the .OK file