public function getFiles()
    {
        if (isset($this->raw->files)) {
            $base = $this->getBasePath();
            $files = array();

            foreach ((array) $this->raw->files as $file) {
                $file = new SplFileInfo(
                    $path = $base . DIRECTORY_SEPARATOR . Path::canonical($file)
                );

                if (false === $file->isFile()) {
                    throw new RuntimeException(
                        sprintf(
                            'The file "%s" does not exist or is not a file.',
                            $path
                        )
                    );
                }

                $files[] = $file;
            }

            return $files;
        }

        return array();
    }
public function getFiles()
    {
        if (isset($this->raw->files)) {
            $base = $this->getBasePath();
            $files = array();

            foreach ((array) $this->raw->files as $file) {
                $file = new SplFileInfo(
                    $path = $base . DIRECTORY_SEPARATOR . Path::canonical($file)
                );

                if (false === $file->isFile()) {
                    throw new RuntimeException(
                        sprintf(
                            'The file "%s" does not exist or is not a file.',
                            $path
                        )
                    );
                }

                $files[] = $file;
            }

            return $files;
        }

        return array();
    }
public function getFiles ( ) { if ( isset ( $ this -> raw -> files ) ) { $ base = $ this -> getBasePath ( ) ; $ files = array ( ) ; foreach ( ( array ) $ this -> raw -> files as $ file ) { $ file = new SplFileInfo ( $ path = $ base . DIRECTORY_SEPARATOR . Path :: canonical ( $ file ) ) ; if ( false === $ file -> isFile ( ) ) { throw new RuntimeException ( sprintf ( 'The file "%s" does not exist or is not a file.' , $ path ) ) ; } $ files [ ] = $ file ; } return $ files ; } return array ( ) ; }
Returns the list of relative file paths.

@return array The list of paths.

@throws RuntimeException If one of the files does not exist.
Returns the list of relative file paths .