From 729d082bd2f2fa432ef932d9986d6adcc576a2ad Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Sun, 4 Apr 2021 15:12:02 +0300 Subject: [PATCH] fix Joomla codestyle --- .../com_jedchecker/libraries/rules/xmlmanifest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/administrator/components/com_jedchecker/libraries/rules/xmlmanifest.php b/administrator/components/com_jedchecker/libraries/rules/xmlmanifest.php index 40e85f9..5d4f119 100644 --- a/administrator/components/com_jedchecker/libraries/rules/xmlmanifest.php +++ b/administrator/components/com_jedchecker/libraries/rules/xmlmanifest.php @@ -160,20 +160,20 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule } // Load DTD-like data for this extension type - $json_filename = __DIR__ . '/xmlmanifest/dtd_' . $type . '.json'; + $jsonFilename = __DIR__ . '/xmlmanifest/dtd_' . $type . '.json'; - if (!is_file($json_filename)) + if (!is_file($jsonFilename)) { return true; } - // warn if method="upgrade" attribute is not found + // Warn if method="upgrade" attribute is not found if ((string) $xml['method'] !== 'upgrade') { $this->report->addWarning($file, JText::_('COM_JEDCHECKER_MANIFEST_MISSED_METHOD_UPGRADE')); } - // check 'client' attribute is "site" or "administrator" (for module/template only) + // Check 'client' attribute is "site" or "administrator" (for module/template only) if ($type === 'module' || $type === 'template') { $client = (string) $xml['client']; @@ -188,7 +188,7 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule } } - $data = json_decode(file_get_contents($json_filename), true); + $data = json_decode(file_get_contents($jsonFilename), true); $this->DTDNodeRules = $data['nodes']; $this->DTDAttrRules = $data['attributes'];