31
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-06-27 16:33:29 +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
* *
@ -215,10 +215,10 @@ class JedcheckerRulesFramework extends JEDcheckerRule
/** /**
* runs tests and reports to the appropriate function if strings match. * runs tests and reports to the appropriate function if strings match.
* *
* @param string $file The file name * @param string $file The file name
* @param array $origContent The file content * @param array $origContent The file content
* @param array $cleanContent The file content w/o non-code elements * @param array $cleanContent The file content w/o non-code elements
* @param object $testObject The test object generated by getTests() * @param object $testObject The test object generated by getTests()
* *
* @return boolean * @return boolean
*/ */
@ -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;