protected function getMinifier(SplFileInfo $file, string $source): Minifier
    {
        $minifier = '\Gears\Asset\Minifiers\\';
        $minifier .= ucfirst($this->destination->getExtension());

        if (!class_exists($minifier))
        {
            throw new RuntimeException
            (
                'Minification is not supported for type: '.
                $this->destination->getExtension()
            );
        }

        return new $minifier($file, $source);
    }
protected function getMinifier(SplFileInfo $file, string $source): Minifier
    {
        $minifier = '\Gears\Asset\Minifiers\\';
        $minifier .= ucfirst($this->destination->getExtension());

        if (!class_exists($minifier))
        {
            throw new RuntimeException
            (
                'Minification is not supported for type: '.
                $this->destination->getExtension()
            );
        }

        return new $minifier($file, $source);
    }
protected function getMinifier ( SplFileInfo $ file , string $ source ) : Minifier { $ minifier = '\Gears\Asset\Minifiers\\' ; $ minifier .= ucfirst ( $ this -> destination -> getExtension ( ) ) ; if ( ! class_exists ( $ minifier ) ) { throw new RuntimeException ( 'Minification is not supported for type: ' . $ this -> destination -> getExtension ( ) ) ; } return new $ minifier ( $ file , $ source ) ; }
Creates the minfier object.

@param  SplFileInfo $file   The original source file.
@param  string      $source The source code to minify.
@return Minifier            A minifier for the given destination type.
Creates the minfier object .