src/Genesis/Utils/Requirements.php
public static function getErrorMessage($name)
    {
        $messages = [
            'system'    => 'Unsupported PHP version, please upgrade!' . PHP_EOL .
                           'This library requires PHP version ' . self::$minPHPVersion . ' or newer.',
            'bcmath'    => 'BCMath extension is required!' . PHP_EOL .
                           'Please install the extension or rebuild with "--enable-bcmath" option.',
            'filter'    => 'Filter extensions is required!' . PHP_EOL .
                           'Please install the extension or rebuild with "--enable-filter" option.',
            'hash'      => 'Hash extension is required!' . PHP_EOL .
                           'Please install the extension or rebuild with "--enable-hash" option.',
            'xmlreader' => 'XMLReader extension is required!' . PHP_EOL .
                           'Please install the extension or rebuild with "--enable-xmlreader" option.',
            'xmlwriter' => 'XMLWriter extension is required!' . PHP_EOL .
                           'Please install the extension or rebuild with "--enable-xmlwriter" option.',
            'curl'      => 'cURL interface is selected, but its not installed on your system!' . PHP_EOL .
                           'Please install the extension or select "stream" as your network interface.'
        ];

        if (array_key_exists($name, $messages)) {
            return $messages[$name];
        }

        return '[' . $name . '] Missing project dependency!';
    }
public static function getErrorMessage($name)
    {
        $messages = [
            'system'    => 'Unsupported PHP version, please upgrade!' . PHP_EOL .
                           'This library requires PHP version ' . self::$minPHPVersion . ' or newer.',
            'bcmath'    => 'BCMath extension is required!' . PHP_EOL .
                           'Please install the extension or rebuild with "--enable-bcmath" option.',
            'filter'    => 'Filter extensions is required!' . PHP_EOL .
                           'Please install the extension or rebuild with "--enable-filter" option.',
            'hash'      => 'Hash extension is required!' . PHP_EOL .
                           'Please install the extension or rebuild with "--enable-hash" option.',
            'xmlreader' => 'XMLReader extension is required!' . PHP_EOL .
                           'Please install the extension or rebuild with "--enable-xmlreader" option.',
            'xmlwriter' => 'XMLWriter extension is required!' . PHP_EOL .
                           'Please install the extension or rebuild with "--enable-xmlwriter" option.',
            'curl'      => 'cURL interface is selected, but its not installed on your system!' . PHP_EOL .
                           'Please install the extension or select "stream" as your network interface.'
        ];

        if (array_key_exists($name, $messages)) {
            return $messages[$name];
        }

        return '[' . $name . '] Missing project dependency!';
    }
public static function getErrorMessage ( $ name ) { $ messages = [ 'system' => 'Unsupported PHP version, please upgrade!' . PHP_EOL . 'This library requires PHP version ' . self :: $ minPHPVersion . ' or newer.' , 'bcmath' => 'BCMath extension is required!' . PHP_EOL . 'Please install the extension or rebuild with "--enable-bcmath" option.' , 'filter' => 'Filter extensions is required!' . PHP_EOL . 'Please install the extension or rebuild with "--enable-filter" option.' , 'hash' => 'Hash extension is required!' . PHP_EOL . 'Please install the extension or rebuild with "--enable-hash" option.' , 'xmlreader' => 'XMLReader extension is required!' . PHP_EOL . 'Please install the extension or rebuild with "--enable-xmlreader" option.' , 'xmlwriter' => 'XMLWriter extension is required!' . PHP_EOL . 'Please install the extension or rebuild with "--enable-xmlwriter" option.' , 'curl' => 'cURL interface is selected, but its not installed on your system!' . PHP_EOL . 'Please install the extension or select "stream" as your network interface.' ] ; if ( array_key_exists ( $ name , $ messages ) ) { return $ messages [ $ name ] ; } return '[' . $ name . '] Missing project dependency!' ; }
Get error message for certain type

@param   string $name
@return  string
Get error message for certain type