33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-30 16:53:59 +00:00

Merge PR #86 into develop

This commit is contained in:
Llewellyn van der Merwe 2021-03-27 05:32:24 +02:00
commit 21faa210dc
Signed by: Llewellyn
GPG Key ID: EFC0C720A240551C
9 changed files with 10 additions and 10 deletions

View File

@ -53,7 +53,7 @@ class JedcheckerRulesEncoding extends JEDcheckerRule
public function check() public function check()
{ {
// Find all php files of the extension // Find all php files of the extension
$files = JFolder::files($this->basedir, '.php$', true, true); $files = JFolder::files($this->basedir, '\.php$', true, true);
// Iterate through all files // Iterate through all files
foreach ($files as $file) foreach ($files as $file)

View File

@ -55,7 +55,7 @@ class JedcheckerRulesErrorreporting extends JEDcheckerRule
public function check() public function check()
{ {
// Find all php files of the extension // Find all php files of the extension
$files = JFolder::files($this->basedir, '.php$', true, true); $files = JFolder::files($this->basedir, '\.php$', true, true);
// Iterate through all files // Iterate through all files
foreach ($files as $file) foreach ($files as $file)

View File

@ -54,7 +54,7 @@ class JedcheckerRulesFramework extends JEDcheckerRule
*/ */
public function check() public function check()
{ {
$files = JFolder::files($this->basedir, '.php$', true, true); $files = JFolder::files($this->basedir, '\.php$', true, true);
$this->leftover_folders = explode(',', $this->params->get('leftover_folders')); $this->leftover_folders = explode(',', $this->params->get('leftover_folders'));
foreach ($files as $file) foreach ($files as $file)

View File

@ -55,7 +55,7 @@ class JedcheckerRulesGpl extends JEDcheckerRule
public function check() public function check()
{ {
// Find all php files of the extension // Find all php files of the extension
$files = JFolder::files($this->basedir, '.php$', true, true); $files = JFolder::files($this->basedir, '\.php$', true, true);
// Iterate through all files // Iterate through all files
foreach ($files as $file) foreach ($files as $file)

View File

@ -54,7 +54,7 @@ class JedcheckerRulesJexec extends JEDcheckerRule
public function check() public function check()
{ {
// Find all php files of the extension // Find all php files of the extension
$files = JFolder::files($this->basedir, '.php$', true, true); $files = JFolder::files($this->basedir, '\.php$', true, true);
// Iterate through all files // Iterate through all files
foreach ($files as $file) foreach ($files as $file)

View File

@ -55,7 +55,7 @@ class JedcheckerRulesXMLinfo extends JEDcheckerRule
public function check() public function check()
{ {
// Find all XML files of the extension // Find all XML files of the extension
$files = JFolder::files($this->basedir, '.xml$', true, true); $files = JFolder::files($this->basedir, '\.xml$', true, true);
// Iterate through all the xml files // Iterate through all the xml files
foreach ($files as $file) foreach ($files as $file)

View File

@ -53,7 +53,7 @@ class JedcheckerRulesXMLlicense extends JEDcheckerRule
public function check() public function check()
{ {
// Find all XML files of the extension // Find all XML files of the extension
$files = JFolder::files($this->basedir, '.xml$', true, true); $files = JFolder::files($this->basedir, '\.xml$', true, true);
// Iterate through all the xml files // Iterate through all the xml files
foreach ($files as $file) foreach ($files as $file)

View File

@ -53,7 +53,7 @@ class JedcheckerRulesXMLUpdateServer extends JEDcheckerRule
public function check() public function check()
{ {
// Find all XML files of the extension // Find all XML files of the extension
$files = JFolder::files($this->basedir, '.xml$', true, true); $files = JFolder::files($this->basedir, '\.xml$', true, true);
// Find XML package file // Find XML package file
$packageFile = $this->checkPackageXML($files); $packageFile = $this->checkPackageXML($files);

View File

@ -45,7 +45,7 @@ class JedcheckerViewUploads extends JViewLegacy
public function getRules() public function getRules()
{ {
$rules = array(); $rules = array();
$files = JFolder::files(JPATH_COMPONENT_ADMINISTRATOR . '/libraries/rules', '.php$', false, false); $files = JFolder::files(JPATH_COMPONENT_ADMINISTRATOR . '/libraries/rules', '\.php$', false, false);
JLoader::discover('jedcheckerRules', JPATH_COMPONENT_ADMINISTRATOR . '/libraries/rules/'); JLoader::discover('jedcheckerRules', JPATH_COMPONENT_ADMINISTRATOR . '/libraries/rules/');
foreach ($files as $file) foreach ($files as $file)
@ -93,7 +93,7 @@ class JedcheckerViewUploads extends JViewLegacy
if (JFolder::exists($path)) if (JFolder::exists($path))
{ {
if (JFolder::folders($path, '.', false) || JFolder::files($path, '.', false)) if (JFolder::folders($path) || JFolder::files($path))
{ {
return true; return true;
} }