mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-02 18:08:21 +00:00
Typos / Joomla! code style fixes
This commit is contained in:
parent
fb16f918d3
commit
7dd70628e0
@ -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
|
||||
*
|
||||
@ -215,10 +215,10 @@ class JedcheckerRulesFramework extends JEDcheckerRule
|
||||
/**
|
||||
* 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 $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
|
||||
*/
|
||||
@ -231,7 +231,7 @@ class JedcheckerRulesFramework extends JEDcheckerRule
|
||||
{
|
||||
$origLine = $origContent[$line_number];
|
||||
|
||||
foreach ($testObject->tests AS $singleTest)
|
||||
foreach ($testObject->tests as $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:
|
||||
* COM_JEDCHECKER_ERROR_NOFRAMEWOR_SOMEKEY
|
||||
*
|
||||
* @return boolean
|
||||
* @return array
|
||||
*/
|
||||
private function getTests()
|
||||
{
|
||||
@ -300,7 +300,7 @@ class JedcheckerRulesFramework extends JEDcheckerRule
|
||||
|
||||
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->group = $group;
|
||||
|
Loading…
Reference in New Issue
Block a user