protected function getModifiedTime(string $type): int
    {
        $files  = $this->getAssets($type);
        $latest = 0;

        foreach ($files as $file) {
            $mtime = (int) \filemtime($file);

            if ($mtime > $latest) {
                $latest = $mtime;
            }
        }

        return $latest;
    }
protected function getModifiedTime(string $type): int
    {
        $files  = $this->getAssets($type);
        $latest = 0;

        foreach ($files as $file) {
            $mtime = (int) \filemtime($file);

            if ($mtime > $latest) {
                $latest = $mtime;
            }
        }

        return $latest;
    }
protected function getModifiedTime ( string $ type ) : int { $ files = $ this -> getAssets ( $ type ) ; $ latest = 0 ; foreach ( $ files as $ file ) { $ mtime = ( int ) \ filemtime ( $ file ) ; if ( $ mtime > $ latest ) { $ latest = $ mtime ; } } return $ latest ; }
Get the last modified time of any assets.

@param string $type 'js' or 'css'

@return int
Get the last modified time of any assets .