31
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-09-29 05:29:08 +00:00

Typos / Joomla! code style fixes

This commit is contained in:
Denis Ryabov 2021-04-04 13:36:35 +03:00
parent fb16f918d3
commit 7dd70628e0

View File

@ -71,7 +71,7 @@ class JedcheckerRulesFramework extends JEDcheckerRule
} }
/** /**
* Check if the given resourse is part * Check if the given resource is a leftover folder
* *
* @param string $file The file name to test * @param string $file The file name to test
* *
@ -231,7 +231,7 @@ class JedcheckerRulesFramework extends JEDcheckerRule
{ {
$origLine = $origContent[$line_number]; $origLine = $origContent[$line_number];
foreach ($testObject->tests AS $singleTest) foreach ($testObject->tests as $singleTest)
{ {
$regex = preg_quote($singleTest, '/'); $regex = preg_quote($singleTest, '/');
@ -288,7 +288,7 @@ class JedcheckerRulesFramework extends JEDcheckerRule
* BUT MAKE SURE that you add the relevant key to the translation files: * BUT MAKE SURE that you add the relevant key to the translation files:
* COM_JEDCHECKER_ERROR_NOFRAMEWOR_SOMEKEY * COM_JEDCHECKER_ERROR_NOFRAMEWOR_SOMEKEY
* *
* @return boolean * @return array
*/ */
private function getTests() private function getTests()
{ {
@ -300,7 +300,7 @@ class JedcheckerRulesFramework extends JEDcheckerRule
foreach ($testNames as $test) foreach ($testNames as $test)
{ {
foreach ( explode(",", $this->params->get($test . '_groups')) as $group) foreach (explode(",", $this->params->get($test . '_groups')) as $group)
{ {
$newTest = new stdClass; $newTest = new stdClass;
$newTest->group = $group; $newTest->group = $group;