/** * Change the information's value types to the schema's value types. * * @param array $attributes * @return array */ protected function fixTypes($attributes) { // Load the schema keys for conversion. $schema = Parser::getEmptyDataSchema(); foreach ($attributes as $key => &$value) { settype($value, gettype($schema[$key])); } return $attributes; }
/** * Check if the plugin is registered. * * @param string $plugin * @return boolean * @static */ public static function pluginCollectionIsRegistered($plugin) { return \hisorange\BrowserDetect\Parser::pluginCollectionIsRegistered($plugin); }