Skip to content

Commit

Permalink
phpcs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
N6REJ committed Aug 25, 2020
1 parent 3cbf5ac commit 8028ea0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion layouts/joomla/button/iconclass.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

if(strpos($icon, 'fa-') !== false)
{
$icon = 'fas ' . str_ireplace('fas ','', $icon);
$icon = 'fas ' . str_ireplace('fas ', '', $icon);
}
elseif (strpos($icon, 'icon-') !== false)
{
Expand Down
2 changes: 1 addition & 1 deletion layouts/joomla/toolbar/iconclass.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

if(strpos($icon, 'fa-') !== false)
{
$icon = 'fas ' . str_ireplace('fas ','', $icon);
$icon = 'fas ' . str_ireplace('fas ', '', $icon);
}
elseif(strpos($icon, 'icon-') !== false)
{
Expand Down
6 changes: 3 additions & 3 deletions libraries/src/HTML/Helpers/ActionsDropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,11 @@ public static function divider()
*/
public static function addCustomItem($label, $icon = '', $id = '', $task = '')
{
if(strpos($icon, 'fa-') !== false)
if (strpos($icon, 'fa-') !== false)
{
$icon = 'fas ' . $icon;
$icon = 'fas ' . str_ireplace('fas ', '', $icon);
}
elseif(strpos($icon, 'icon-') !== false)
elseif (strpos($icon, 'icon-') !== false)
{
$icon = $icon;
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/HTML/Helpers/Dropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public static function unarchive($checkboxId, $prefix = '')
public static function trash($checkboxId, $prefix = '')
{
$task = $prefix . 'trash';
static::addCustomItem(Text::_('JTOOLBAR_TRASH'), 'fa-trash','javascript:void(0)', 'onclick="contextAction(\'' . $checkboxId . '\', \'' . $task . '\')"');
static::addCustomItem(Text::_('JTOOLBAR_TRASH'), 'fa-trash', 'javascript:void(0)', 'onclick="contextAction(\'' . $checkboxId . '\', \'' . $task . '\')"');

return;
}
Expand Down

0 comments on commit 8028ea0

Please sign in to comment.