31
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-06-26 08:02:35 +00:00

Merge PR #137 into develop

This commit is contained in:
Llewellyn van der Merwe 2021-06-29 06:40:48 +02:00
commit 35214dbaec
Signed by: Llewellyn
GPG Key ID: EFC0C720A240551C

View File

@ -92,15 +92,6 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
'module', 'package', 'plugin', 'template'
);
/**
* List of JED extension types
*
* @var string[]
*/
protected $jedTypes = array(
'component', 'module', 'package', 'plugin'
);
/**
* Initiates the search and check
*
@ -153,12 +144,6 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
return true;
}
// JED allows components, modules, plugins, and packages (as a container) only
if (!in_array($type, $this->jedTypes, true))
{
$this->report->addError($file, JText::sprintf('COM_JEDCHECKER_MANIFEST_TYPE_NOT_ACCEPTED', $type));
}
// Load DTD-like data for this extension type
$jsonFilename = __DIR__ . '/xmlmanifest/dtd_' . $type . '.json';