Commit 26edad10 authored by Nigel McNie's avatar Nigel McNie
Browse files

Ensure is_rdf_type is declared statically.

Signed-off-by: default avatarNigel McNie <>
parent 489125b8
......@@ -497,7 +497,7 @@ class PluginImportLeap extends PluginImport {
* @param string $rdftype The type to check for
* @return boolean Whether the entry has the given RDF type
public function is_rdf_type(SimpleXMLElement $entry, PluginImportLeap $importer, $rdftype) {
public static function is_rdf_type(SimpleXMLElement $entry, PluginImportLeap $importer, $rdftype) {
$result = $entry->xpath('rdf:type['
. $importer->curie_xpath('@rdf:resource', PluginImportLeap::NS_LEAPTYPE, $rdftype) . ']');
return isset($result[0]) && $result[0] instanceof SimpleXMLElement;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment