diff --git a/administrator/components/com_installer/views/warnings/tmpl/default.php b/administrator/components/com_installer/views/warnings/tmpl/default.php index debd56f6465ce..3997fbcec984e 100644 --- a/administrator/components/com_installer/views/warnings/tmpl/default.php +++ b/administrator/components/com_installer/views/warnings/tmpl/default.php @@ -22,7 +22,7 @@ messages)) : ?> 'warning0')); ?> - messages as $message) : ?> + messages as $message) : ?> diff --git a/administrator/components/com_modules/views/module/tmpl/edit.php b/administrator/components/com_modules/views/module/tmpl/edit.php index a29aa1293b3e6..2e2c2301c7cd6 100644 --- a/administrator/components/com_modules/views/module/tmpl/edit.php +++ b/administrator/components/com_modules/views/module/tmpl/edit.php @@ -194,12 +194,12 @@ $short_description = JText::_($this->item->xml->description); $this->fieldset = 'description'; $long_description = JLayoutHelper::render('joomla.edit.fieldset', $this); - if(!$long_description) { + if (!$long_description) { $truncated = JHtmlString::truncate($short_description, 550, true, false); - if(strlen($truncated) > 500) { + if (strlen($truncated) > 500) { $long_description = $short_description; $short_description = JHtmlString::truncate($truncated, 250); - if($short_description == $long_description) { + if ($short_description == $long_description) { $long_description = ''; } } diff --git a/administrator/components/com_plugins/views/plugin/tmpl/edit.php b/administrator/components/com_plugins/views/plugin/tmpl/edit.php index c024d28dc3aa1..35343a31c8930 100644 --- a/administrator/components/com_plugins/views/plugin/tmpl/edit.php +++ b/administrator/components/com_plugins/views/plugin/tmpl/edit.php @@ -63,12 +63,12 @@ $short_description = JText::_($this->item->xml->description); $this->fieldset = 'description'; $long_description = JLayoutHelper::render('joomla.edit.fieldset', $this); - if(!$long_description) { + if (!$long_description) { $truncated = JHtmlString::truncate($short_description, 550, true, false); - if(strlen($truncated) > 500) { + if (strlen($truncated) > 500) { $long_description = $short_description; $short_description = JHtmlString::truncate($truncated, 250); - if($short_description == $long_description) { + if ($short_description == $long_description) { $long_description = ''; } } diff --git a/administrator/components/com_tags/views/tag/tmpl/edit_metadata.php b/administrator/components/com_tags/views/tag/tmpl/edit_metadata.php index 33ddf62260c72..bac041f112e56 100644 --- a/administrator/components/com_tags/views/tag/tmpl/edit_metadata.php +++ b/administrator/components/com_tags/views/tag/tmpl/edit_metadata.php @@ -21,7 +21,7 @@ form->getInput('metakey'); ?> -form->getGroup('metadata') as $field): ?> +form->getGroup('metadata') as $field): ?>
hidden): ?> label; ?> diff --git a/administrator/components/com_templates/views/template/tmpl/default.php b/administrator/components/com_templates/views/template/tmpl/default.php index a164b3b6ebd1f..3e1438f22c02f 100644 --- a/administrator/components/com_templates/views/template/tmpl/default.php +++ b/administrator/components/com_templates/views/template/tmpl/default.php @@ -77,7 +77,7 @@ }); });"); -if($this->type == 'image') +if ($this->type == 'image') { JFactory::getDocument()->addScriptDeclaration(" jQuery(document).ready(function($) { @@ -150,7 +150,7 @@ function clearCoords() } "); -if($this->type == 'font') +if ($this->type == 'font') { JFactory::getDocument()->addStyleDeclaration( "/* Styles for font preview */ @@ -170,13 +170,13 @@ function clearCoords()
- type == 'file'): ?> + type == 'file'): ?>

source->filename, $this->template->element); ?>

- type == 'image'): ?> + type == 'image'): ?>

image['path'], $this->template->element); ?>

- type == 'font'): ?> + type == 'font'): ?>

font['rel_path'], $this->template->element); ?>

@@ -186,7 +186,7 @@ function clearCoords() loadTemplate('tree');?>
- type == 'home'): ?> + type == 'home'): ?>
@@ -201,7 +201,7 @@ function clearCoords()
- type == 'file'): ?> + type == 'file'): ?>
@@ -214,7 +214,7 @@ function clearCoords() - type == 'archive'): ?> + type == 'archive'): ?>
- tfaform as $form): ?> + tfaform as $form): ?> otpConfig->method ? 'display: block' : 'display: none'; ?>
diff --git a/administrator/templates/hathor/html/com_postinstall/messages/default.php b/administrator/templates/hathor/html/com_postinstall/messages/default.php index 98bbca301fbcc..441097064f744 100644 --- a/administrator/templates/hathor/html/com_postinstall/messages/default.php +++ b/administrator/templates/hathor/html/com_postinstall/messages/default.php @@ -39,7 +39,7 @@ ?>

- items as $item): ?> + items as $item): ?>
title_key) ?>

diff --git a/administrator/templates/hathor/html/com_templates/template/default.php b/administrator/templates/hathor/html/com_templates/template/default.php index 1df2079e16e0a..490b4c2f9f4a9 100644 --- a/administrator/templates/hathor/html/com_templates/template/default.php +++ b/administrator/templates/hathor/html/com_templates/template/default.php @@ -56,7 +56,7 @@ $(this).addClass('selected'); }); });"); -if($this->type == 'image') +if ($this->type == 'image') { JFactory::getDocument()->addScriptDeclaration(" jQuery(document).ready(function() { @@ -113,7 +113,7 @@ function clearCoords() overflow-x: auto; } "); -if($this->type == 'font') +if ($this->type == 'font') { JFactory::getDocument()->addStyleDeclaration( "/* Styles for font preview */ @@ -282,7 +282,7 @@ function clearCoords() - type == 'home'): ?> + type == 'home'): ?>

@@ -297,7 +297,7 @@ function clearCoords()
- type == 'file'): ?> + type == 'file'): ?>
@@ -315,7 +315,7 @@ function clearCoords()
- type == 'image'): ?> + type == 'image'): ?>
@@ -326,7 +326,7 @@ function clearCoords()
- type == 'archive'): ?> + type == 'archive'): ?>
@@ -348,7 +348,7 @@ function clearCoords() - type == 'font'): ?> + type == 'font'): ?>
- tfaform as $form): ?> + tfaform as $form): ?> otpConfig->method ? 'display: block' : 'display: none'; ?>
diff --git a/components/com_contact/views/categories/tmpl/default_items.php b/components/com_contact/views/categories/tmpl/default_items.php index 041ea24a2f232..9110e678637ac 100644 --- a/components/com_contact/views/categories/tmpl/default_items.php +++ b/components/com_contact/views/categories/tmpl/default_items.php @@ -14,7 +14,7 @@ $class = ' class="first"'; if ($this->maxLevelcat != 0 && count($this->items[$this->parent->id]) > 0) : ?> - items[$this->parent->id] as $id => $item) : ?> + items[$this->parent->id] as $id => $item) : ?> params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) : if (!isset($this->items[$this->parent->id][$id + 1])) diff --git a/components/com_content/views/categories/tmpl/default_items.php b/components/com_content/views/categories/tmpl/default_items.php index d524c4c5fdff3..148f8eef8b3c0 100644 --- a/components/com_content/views/categories/tmpl/default_items.php +++ b/components/com_content/views/categories/tmpl/default_items.php @@ -16,7 +16,7 @@ if (count($this->items[$this->parent->id]) > 0 && $this->maxLevelcat != 0) : ?> - items[$this->parent->id] as $id => $item) : ?> + items[$this->parent->id] as $id => $item) : ?> params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) : if (!isset($this->items[$this->parent->id][$id + 1])) diff --git a/components/com_finder/views/search/view.html.php b/components/com_finder/views/search/view.html.php index ba725b9830a4d..8dfe988378859 100644 --- a/components/com_finder/views/search/view.html.php +++ b/components/com_finder/views/search/view.html.php @@ -74,7 +74,7 @@ public function display($tpl = null) if (strpos($this->query->input, '"')) { // Get the application router. - $router =& $app::getRouter(); + $router = &$app::getRouter(); // Fix the q variable in the URL. if ($router->getVar('q') !== $this->query->input) diff --git a/components/com_newsfeeds/views/categories/tmpl/default_items.php b/components/com_newsfeeds/views/categories/tmpl/default_items.php index be131feb2b098..fff6a01dda698 100644 --- a/components/com_newsfeeds/views/categories/tmpl/default_items.php +++ b/components/com_newsfeeds/views/categories/tmpl/default_items.php @@ -14,7 +14,7 @@ $class = ' class="first"'; if (count($this->items[$this->parent->id]) > 0 && $this->maxLevelcat != 0) : ?> - items[$this->parent->id] as $id => $item) : ?> + items[$this->parent->id] as $id => $item) : ?> params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) : if (!isset($this->items[$this->parent->id][$id + 1])) diff --git a/components/com_tags/views/tags/view.html.php b/components/com_tags/views/tags/view.html.php index dc8a7d1e23725..8a01ee638f2be 100644 --- a/components/com_tags/views/tags/view.html.php +++ b/components/com_tags/views/tags/view.html.php @@ -122,7 +122,7 @@ public function display($tpl = null) } } } - elseif(!empty($items[0])) + elseif (!empty($items[0])) { // Merge so that tag params take priority $temp->merge($items[0]->params); diff --git a/components/com_users/views/profile/tmpl/edit.php b/components/com_users/views/profile/tmpl/edit.php index 01e06f4ba0fe4..ecd48f737817b 100644 --- a/components/com_users/views/profile/tmpl/edit.php +++ b/components/com_users/views/profile/tmpl/edit.php @@ -100,7 +100,7 @@
- twofactorform as $form) : ?> + twofactorform as $form) : ?> otpConfig->method ? 'display: block' : 'display: none'; ?>
diff --git a/installation/view/summary/tmpl/default.php b/installation/view/summary/tmpl/default.php index f85356bc1acfd..b955ff9d7a545 100644 --- a/installation/view/summary/tmpl/default.php +++ b/installation/view/summary/tmpl/default.php @@ -224,7 +224,7 @@ - options['ftp_enable']) : ?> + options['ftp_enable']) : ?> diff --git a/layouts/joomla/edit/frontediting_modules.php b/layouts/joomla/edit/frontediting_modules.php index 477d7a0180612..601e7ef6d95a1 100644 --- a/layouts/joomla/edit/frontediting_modules.php +++ b/layouts/joomla/edit/frontediting_modules.php @@ -11,7 +11,7 @@ // JLayout for standard handling of the edit modules: -$moduleHtml =& $displayData['moduleHtml']; +$moduleHtml = &$displayData['moduleHtml']; $mod = $displayData['module']; $position = $displayData['position']; $menusEditing = $displayData['menusediting']; diff --git a/layouts/joomla/form/field/subform/default.php b/layouts/joomla/form/field/subform/default.php index 9c645ce9bbe35..69b8bdf20c5b2 100644 --- a/layouts/joomla/form/field/subform/default.php +++ b/layouts/joomla/form/field/subform/default.php @@ -30,7 +30,7 @@ ?>
-getGroup('') as $field): ?> +getGroup('') as $field): ?> renderField(); ?>
diff --git a/layouts/joomla/form/field/subform/repeatable-table.php b/layouts/joomla/form/field/subform/repeatable-table.php index d5babf2df7d26..74aeba7e3c41c 100644 --- a/layouts/joomla/form/field/subform/repeatable-table.php +++ b/layouts/joomla/form/field/subform/repeatable-table.php @@ -38,7 +38,7 @@ if (!empty($groupByFieldset)) { - foreach($tmpl->getFieldsets() as $fieldset) { + foreach ($tmpl->getFieldsets() as $fieldset) { $table_head .= '' . JText::_($fieldset->label); if (!empty($fieldset->description)) @@ -53,7 +53,7 @@ } else { - foreach($tmpl->getGroup('') as $field) { + foreach ($tmpl->getGroup('') as $field) { $table_head .= '' . strip_tags($field->label); $table_head .= '
' . JText::_($field->description) . ''; $table_head .= ''; @@ -88,7 +88,7 @@ $form): + foreach ($forms as $k => $form): echo $this->sublayout($sublayout, array('form' => $form, 'basegroup' => $fieldname, 'group' => $fieldname . $k, 'buttons' => $buttons)); endforeach; ?> diff --git a/layouts/joomla/form/field/subform/repeatable-table/section-byfieldsets.php b/layouts/joomla/form/field/subform/repeatable-table/section-byfieldsets.php index 353c10adf37a0..4b7ebc08791e7 100644 --- a/layouts/joomla/form/field/subform/repeatable-table/section-byfieldsets.php +++ b/layouts/joomla/form/field/subform/repeatable-table/section-byfieldsets.php @@ -22,9 +22,9 @@ ?> - getFieldsets() as $fieldset): ?> + getFieldsets() as $fieldset): ?> - getFieldset($fieldset->name) as $field): ?> + getFieldset($fieldset->name) as $field): ?> renderField(); ?> diff --git a/layouts/joomla/form/field/subform/repeatable-table/section.php b/layouts/joomla/form/field/subform/repeatable-table/section.php index 10c40a38f74c0..6c42714f540d4 100644 --- a/layouts/joomla/form/field/subform/repeatable-table/section.php +++ b/layouts/joomla/form/field/subform/repeatable-table/section.php @@ -22,7 +22,7 @@ ?> - getGroup('') as $field): ?> + getGroup('') as $field): ?> renderField(); ?> diff --git a/layouts/joomla/form/field/subform/repeatable.php b/layouts/joomla/form/field/subform/repeatable.php index d465b129eb1cd..9dc1ba83505ac 100644 --- a/layouts/joomla/form/field/subform/repeatable.php +++ b/layouts/joomla/form/field/subform/repeatable.php @@ -49,7 +49,7 @@
$form): + foreach ($forms as $k => $form): echo $this->sublayout($sublayout, array('form' => $form, 'basegroup' => $fieldname, 'group' => $fieldname . $k, 'buttons' => $buttons)); endforeach; ?> diff --git a/layouts/joomla/form/field/subform/repeatable/section-byfieldsets.php b/layouts/joomla/form/field/subform/repeatable/section-byfieldsets.php index 90e6cd4051b69..f42906fd7c91b 100644 --- a/layouts/joomla/form/field/subform/repeatable/section-byfieldsets.php +++ b/layouts/joomla/form/field/subform/repeatable/section-byfieldsets.php @@ -31,12 +31,12 @@
-getFieldsets() as $fieldset): ?> +getFieldsets() as $fieldset): ?>
label)):?> label); ?> -getFieldset($fieldset->name) as $field): ?> +getFieldset($fieldset->name) as $field): ?> renderField(); ?>
diff --git a/layouts/joomla/form/field/subform/repeatable/section.php b/layouts/joomla/form/field/subform/repeatable/section.php index 6f14ffc22fe11..3d3b5c216a353 100644 --- a/layouts/joomla/form/field/subform/repeatable/section.php +++ b/layouts/joomla/form/field/subform/repeatable/section.php @@ -32,7 +32,7 @@
-getGroup('') as $field): ?> +getGroup('') as $field): ?> renderField(); ?>
diff --git a/templates/beez3/html/com_content/category/blog_item.php b/templates/beez3/html/com_content/category/blog_item.php index 71fbe6fffcb18..404246c7763be 100644 --- a/templates/beez3/html/com_content/category/blog_item.php +++ b/templates/beez3/html/com_content/category/blog_item.php @@ -8,7 +8,7 @@ */ defined('_JEXEC') or die; -$params =& $this->item->params; +$params = &$this->item->params; $images = json_decode($this->item->images); $app = JFactory::getApplication(); $canEdit = $this->item->params->get('access-edit'); diff --git a/templates/beez3/html/com_content/category/blog_links.php b/templates/beez3/html/com_content/category/blog_links.php index cc40fc2e008f7..71b377968e693 100644 --- a/templates/beez3/html/com_content/category/blog_links.php +++ b/templates/beez3/html/com_content/category/blog_links.php @@ -9,7 +9,7 @@ defined('_JEXEC') or die; -$params =& $this->item->params; +$params = &$this->item->params; $app = JFactory::getApplication(); JHtml::addIncludePath(JPATH_COMPONENT . '/helpers'); diff --git a/templates/protostar/error.php b/templates/protostar/error.php index a4fecd31e28d7..7592615d93efe 100644 --- a/templates/protostar/error.php +++ b/templates/protostar/error.php @@ -25,7 +25,7 @@ $itemid = $app->input->getCmd('Itemid', ''); $sitename = $app->get('sitename'); -if($task == "edit" || $layout == "form" ) +if ($task == "edit" || $layout == "form" ) { $fullWidth = 1; } diff --git a/templates/protostar/index.php b/templates/protostar/index.php index b4192eef17001..0da6954a000c6 100644 --- a/templates/protostar/index.php +++ b/templates/protostar/index.php @@ -28,7 +28,7 @@ $itemid = $app->input->getCmd('Itemid', ''); $sitename = $app->get('sitename'); -if($task == "edit" || $layout == "form" ) +if ($task == "edit" || $layout == "form" ) { $fullWidth = 1; } diff --git a/tests/unit/core/helper/helper.php b/tests/unit/core/helper/helper.php index 63af3c919fd85..80ed811e93006 100644 --- a/tests/unit/core/helper/helper.php +++ b/tests/unit/core/helper/helper.php @@ -68,14 +68,14 @@ public static function registerDeprecationHandler() $class = isset($trace[$i]['object']) ? get_class($trace[$i]['object']) : $trace[$i]['class']; $method = $trace[$i]['function']; - $ref =& $deprecations[$group][$msg]['count']; + $ref = &$deprecations[$group][$msg]['count']; $ref++; - $ref =& $deprecations[$group][$msg][$class . '::' . $method]; + $ref = &$deprecations[$group][$msg][$class . '::' . $method]; $ref++; } else { - $ref =& $deprecations[$group][$msg]['count']; + $ref = &$deprecations[$group][$msg]['count']; $ref++; } diff --git a/tests/unit/suites/libraries/cms/pagination/JPaginationTest.php b/tests/unit/suites/libraries/cms/pagination/JPaginationTest.php index 6346e7a6b9264..bcf169011a117 100644 --- a/tests/unit/suites/libraries/cms/pagination/JPaginationTest.php +++ b/tests/unit/suites/libraries/cms/pagination/JPaginationTest.php @@ -832,7 +832,7 @@ public function testSet($property, $value, $expected) { $result = TestReflection::getValue($pagination, $property); } - elseif(strpos($property, '.')) + elseif (strpos($property, '.')) { $prop = explode('.', $property); $prop[1] = ucfirst($prop[1]); diff --git a/tests/unit/suites/libraries/joomla/archive/JArchiveTestCase.php b/tests/unit/suites/libraries/joomla/archive/JArchiveTestCase.php index 91f3679e1c731..e62e6a54eed3e 100644 --- a/tests/unit/suites/libraries/joomla/archive/JArchiveTestCase.php +++ b/tests/unit/suites/libraries/joomla/archive/JArchiveTestCase.php @@ -62,7 +62,7 @@ protected function tearDown() if (is_dir($this->outputPath)) { // delete files in output directory - foreach(glob("{$this->outputPath}/*") as $file) + foreach (glob("{$this->outputPath}/*") as $file) { unlink($file); }