protected function createLocalResourceFileSettings(Theme $theme, string $type, string $filename): ResourceSettings
    {
        return new Settings([
            'key'       => $this->crc(sprintf('%s%s%s', $theme->getKey(), $type, $filename)),
            'filename'  => $filename,
            'url'       => $this->getThemeBaseUrl($theme),
            'theme'     => $theme,
            'async'     => strpos($type, 'async') !== false,
            'defer'     => strpos($type, 'defer') !== false,
            'order'     => ++$this->order,
        ]);
    }
protected function createLocalResourceFileSettings(Theme $theme, string $type, string $filename): ResourceSettings
    {
        return new Settings([
            'key'       => $this->crc(sprintf('%s%s%s', $theme->getKey(), $type, $filename)),
            'filename'  => $filename,
            'url'       => $this->getThemeBaseUrl($theme),
            'theme'     => $theme,
            'async'     => strpos($type, 'async') !== false,
            'defer'     => strpos($type, 'defer') !== false,
            'order'     => ++$this->order,
        ]);
    }
protected function createLocalResourceFileSettings ( Theme $ theme , string $ type , string $ filename ) : ResourceSettings { return new Settings ( [ 'key' => $ this -> crc ( sprintf ( '%s%s%s' , $ theme -> getKey ( ) , $ type , $ filename ) ) , 'filename' => $ filename , 'url' => $ this -> getThemeBaseUrl ( $ theme ) , 'theme' => $ theme , 'async' => strpos ( $ type , 'async' ) !== false , 'defer' => strpos ( $ type , 'defer' ) !== false , 'order' => ++ $ this -> order , ] ) ; }
Create and return settings for resource.

@param \Laranix\Themer\Theme $theme
@param string                $type
@param string                $filename
@return \Laranix\Themer\ResourceSettings|\Laranix\Themer\Scripts\Settings
Create and return settings for resource .