33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-27 15:26:36 +00:00

Formatting..

This commit is contained in:
Jaz Parkyn 2017-01-13 13:39:24 +00:00
parent da5863801e
commit 9994008d61

View File

@ -55,10 +55,9 @@ class JedcheckerRulesXMLUpdateServer extends JEDcheckerRule
// Find XML package file // Find XML package file
$packageFile = $this->checkPackageXML($files); $packageFile = $this->checkPackageXML($files);
if (!$packageFile){ if (!$packageFile)
{
$XMLFiles = $this->findXMLPaths($files); $XMLFiles = $this->findXMLPaths($files);
} }
return true; return true;
@ -126,7 +125,8 @@ class JedcheckerRulesXMLUpdateServer extends JEDcheckerRule
'directory' => trim(end(explode('/', substr($file, 0, strrpos( $file, '/'))))) 'directory' => trim(end(explode('/', substr($file, 0, strrpos( $file, '/')))))
); );
if ($xml->attributes()->type == 'component'){ if ($xml->attributes()->type == 'component')
{
$componentPaths[] = substr($file, 0, strrpos( $file, '/')); $componentPaths[] = substr($file, 0, strrpos( $file, '/'));
} }
} }