Piwik\Plugins\Diagnostics\Diagnostic\GdExtensionCheck::execute PHP Method

execute() public method

public execute ( )
    public function execute()
    {
        $label = $this->translator->translate('Installation_SystemCheckGDFreeType');
        if (SettingsServer::isGdExtensionEnabled()) {
            return array(DiagnosticResult::singleResult($label, DiagnosticResult::STATUS_OK));
        }
        $comment = sprintf('%s<br />%s', $this->translator->translate('Installation_SystemCheckGDFreeType'), $this->translator->translate('Installation_SystemCheckGDHelp'));
        return array(DiagnosticResult::singleResult($label, DiagnosticResult::STATUS_ERROR, $comment));
    }
GdExtensionCheck