Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
joomdonation committed Jun 7, 2017
1 parent a6890cc commit 3245956
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function addSubmenu($extension)
return;
}

$parts = explode('.', $extension);
$parts = explode('.', $extension);
$component = $parts[0];

if (count($parts) > 1)
Expand All @@ -49,12 +49,12 @@ public static function addSubmenu($extension)
}

// Try to find the component helper.
$eName = str_replace('com_', '', $component);
$eName = str_replace('com_', '', $component);
$namespace = ComponentHelper::getComponent($component)->namespace;

if ($namespace)
{
$cName = $namespace.'\\Administrator\\Helper\\'.ucfirst($eName.'Helper');
$cName = $namespace . '\\Administrator\\Helper\\' . ucfirst($eName . 'Helper');
}
else
{
Expand Down
6 changes: 3 additions & 3 deletions administrator/components/com_categories/Model/Categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,9 @@ public function getItems()
*/
public function countItems(&$items, $extension)
{
$parts = explode('.', $extension, 2);
$parts = explode('.', $extension, 2);
$component = $parts[0];
$section = null;
$section = null;

if (count($parts) > 1)
{
Expand All @@ -386,7 +386,7 @@ public function countItems(&$items, $extension)

if ($namespace)
{
$cName = $namespace.'\\Administrator\\Helper\\'.ucfirst($eName.'Helper');
$cName = $namespace . '\\Administrator\\Helper\\' . ucfirst($eName . 'Helper');
}
else
{
Expand Down
6 changes: 3 additions & 3 deletions administrator/components/com_tags/Model/Tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,9 @@ public function getItems()
*/
public function countItems(&$items, $extension)
{
$parts = explode('.', $extension);
$parts = explode('.', $extension);
$component = $parts[0];
$section = null;
$section = null;

if (count($parts) < 2)
{
Expand All @@ -365,7 +365,7 @@ public function countItems(&$items, $extension)

if ($namespace)
{
$cName = $namespace.'\\Administrator\\Helper\\'.ucfirst($eName.'Helper');
$cName = $namespace . '\\Administrator\\Helper\\' . ucfirst($eName . 'Helper');
}
else
{
Expand Down

0 comments on commit 3245956

Please sign in to comment.