Skip to content

Commit a309e80

Browse files
committed
CodeStyle fixes
1 parent e1a1325 commit a309e80

File tree

11 files changed

+25
-23
lines changed

11 files changed

+25
-23
lines changed

administrator/components/com_menus/helpers/menus.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ public static function getMenuItems($menutype, $enabledOnly = false, $exclude =
409409
* @param string $menutype The target menutype
410410
*
411411
* @return void
412+
*
412413
* @throws Exception
413414
*
414415
* @since __DEPLOY_VERSION__
@@ -428,11 +429,12 @@ public static function installPreset($preset, $menutype)
428429
/**
429430
* Method to install a preset menu item into database and link it to the given menutype
430431
*
431-
* @param stdClass[] $items The single menuitem instance with a list of its descendants
432+
* @param stdClass[] &$items The single menuitem instance with a list of its descendants
432433
* @param string $menutype The target menutype
433434
* @param int $parent The parent id or object
434435
*
435436
* @return void
437+
*
436438
* @throws Exception
437439
*
438440
* @since __DEPLOY_VERSION__

administrator/components/com_menus/views/menu/view.xml.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ public function display($tpl = null)
9696
}
9797

9898
/**
99-
* Add a node to the xml
99+
* Add a child node to the xml
100100
*
101-
* @param SimpleXMLElement $xml
102-
* @param stdClass $item
101+
* @param SimpleXMLElement $xml The current XML node which would become the parent to the new node
102+
* @param stdClass $item The menuitem object to create the child XML node from
103103
*
104104
* @return void
105105
*

administrator/modules/mod_menu/menu.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function load($params, $enabled)
106106

107107
$this->populateTree($levels);
108108

109-
$this->tree->addChild(new Node\Separator());
109+
$this->tree->addChild(new Node\Separator);
110110

111111
// Add link to exit recovery mode
112112
$uri = clone JUri::getInstance();
@@ -256,7 +256,7 @@ protected function preprocess($items)
256256
continue;
257257
}
258258

259-
// Exclude item if the component is not authorised
259+
// Exclude item if the component is not authorised
260260
if ($item->element && !$user->authorise(($item->scope == 'edit') ? 'core.create' : 'core.manage', $item->element))
261261
{
262262
continue;
@@ -312,8 +312,8 @@ protected function preprocess($items)
312312
// Ok we passed everything, load language at last only
313313
if ($item->element)
314314
{
315-
$language->load($item->element .'.sys', JPATH_ADMINISTRATOR, null, false, true) ||
316-
$language->load($item->element .'.sys', JPATH_ADMINISTRATOR . '/components/' . $item->element, null, false, true);
315+
$language->load($item->element . '.sys', JPATH_ADMINISTRATOR, null, false, true) ||
316+
$language->load($item->element . '.sys', JPATH_ADMINISTRATOR . '/components/' . $item->element, null, false, true);
317317
}
318318

319319
$item->text = JText::_($item->title);
@@ -394,7 +394,7 @@ protected function populateTree($levels)
394394
// Add a separator between dynamic menu items and components menu items
395395
if (count($item->submenu) && count($item->components))
396396
{
397-
$this->tree->addChild(new Node\Separator());
397+
$this->tree->addChild(new Node\Separator);
398398
}
399399

400400
$this->populateTree($item->components);

libraries/src/Joomla/CMS/Menu/MenuHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public static function createLevels($menuItems)
249249
* Load a menu tree from an XML file
250250
*
251251
* @param \SimpleXMLElement[] $elements The xml menuitem nodes
252-
* @param \stdClass[] $items The menu hierarchy list to be populated
252+
* @param \stdClass[] &$items The menu hierarchy list to be populated
253253
* @param string[] $replace The substring replacements for iterator type items
254254
*
255255
* @return void

libraries/src/Joomla/CMS/Menu/Node.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
/**
1515
* A Node for MenuTree
1616
*
17-
* @see Tree
17+
* @see Tree
1818
*
19-
* @since __DEPLOY_VERSION__
19+
* @since __DEPLOY_VERSION__
2020
*/
2121
class Node
2222
{

libraries/src/Joomla/CMS/Menu/Node/Component.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
/**
1515
* A Component type of node for MenuTree
1616
*
17-
* @see Node
17+
* @see Node
1818
*
19-
* @since __DEPLOY_VERSION__
19+
* @since __DEPLOY_VERSION__
2020
*/
2121
class Component extends Node
2222
{

libraries/src/Joomla/CMS/Menu/Node/Container.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
/**
1313
* A Container type of node for MenuTree
1414
*
15-
* @see Node
15+
* @see Node
1616
*
17-
* @since __DEPLOY_VERSION__
17+
* @since __DEPLOY_VERSION__
1818
*/
1919
class Container extends Heading
2020
{

libraries/src/Joomla/CMS/Menu/Node/Heading.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
/**
1515
* A Heading type of node for MenuTree
1616
*
17-
* @see Node
17+
* @see Node
1818
*
19-
* @since __DEPLOY_VERSION__
19+
* @since __DEPLOY_VERSION__
2020
*/
2121
class Heading extends Node
2222
{

libraries/src/Joomla/CMS/Menu/Node/Separator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
/**
1515
* A Separator type of node for MenuTree
1616
*
17-
* @see Node
17+
* @see Node
1818
*
19-
* @since __DEPLOY_VERSION__
19+
* @since __DEPLOY_VERSION__
2020
*/
2121
class Separator extends Node
2222
{

libraries/src/Joomla/CMS/Menu/Node/Url.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
/**
1515
* An external Url type of node for MenuTree
1616
*
17-
* @see Node
17+
* @see Node
1818
*
19-
* @since __DEPLOY_VERSION__
19+
* @since __DEPLOY_VERSION__
2020
*/
2121
class Url extends Node
2222
{

0 commit comments

Comments
 (0)