public static function checkGD($throwException = true): bool
    {
        $isGd = extension_loaded('gd');

        // Require GD library
        if ($throwException && !$isGd) {
            throw new Exception('Required extension GD is not loaded.'); // @codeCoverageIgnore
        }

        return $isGd;
    }
public static function checkGD($throwException = true): bool
    {
        $isGd = extension_loaded('gd');

        // Require GD library
        if ($throwException && !$isGd) {
            throw new Exception('Required extension GD is not loaded.'); // @codeCoverageIgnore
        }

        return $isGd;
    }
public static function checkGD ( $ throwException = true ) : bool { $ isGd = extension_loaded ( 'gd' ) ; // Require GD library if ( $ throwException && ! $ isGd ) { throw new Exception ( 'Required extension GD is not loaded.' ) ; // @codeCoverageIgnore } return $ isGd ; }
Require GD library

@param bool $throwException
@return bool
@throws Exception
Require GD library