Skip to content

Commit

Permalink
Make travis Happy for #5499
Browse files Browse the repository at this point in the history
Hi @nikosdion

this should make travis happy here: #5499

```
FILE: ...s/build/joomla/joomla-cms/libraries/cms/installer/adapter/component.php
--------------------------------------------------------------------------------
FOUND 8 ERROR(S) AFFECTING 8 LINE(S)
--------------------------------------------------------------------------------
 1141 | ERROR | Tabs must be used to indent lines; spaces are not allowed
 1142 | ERROR | Tabs must be used to indent lines; spaces are not allowed
 1143 | ERROR | Tabs must be used to indent lines; spaces are not allowed
 1255 | ERROR | Tabs must be used to indent lines; spaces are not allowed
 1256 | ERROR | Tabs must be used to indent lines; spaces are not allowed
 1257 | ERROR | Tabs must be used to indent lines; spaces are not allowed
 1258 | ERROR | Tabs must be used to indent lines; spaces are not allowed
 1878 | ERROR | Expected 2 spaces after the longest type
--------------------------------------------------------------------------------
```
  • Loading branch information
zero-24 committed Dec 23, 2014
1 parent 616da6d commit aaa1d38
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions libraries/cms/installer/adapter/component.php
Original file line number Diff line number Diff line change
Expand Up @@ -1138,9 +1138,9 @@ public function uninstall($id)

// Remove categories for this component
$query->clear()
->delete('#__categories')
->where('extension=' . $db->quote($this->element), 'OR')
->where('extension LIKE ' . $db->quote($this->element . '.%'));
->delete('#__categories')
->where('extension=' . $db->quote($this->element), 'OR')
->where('extension LIKE ' . $db->quote($this->element . '.%'));
$db->setQuery($query);
$db->execute();

Expand Down Expand Up @@ -1252,10 +1252,10 @@ protected function _buildAdminMenus($component_id = null)
{
// Lets find the extension id
$query->clear()
->select('e.extension_id')
->from('#__extensions AS e')
->where('e.type = ' . $db->quote('component'))
->where('e.element = ' . $db->quote($option));
->select('e.extension_id')
->from('#__extensions AS e')
->where('e.type = ' . $db->quote('component'))
->where('e.element = ' . $db->quote($option));

$db->setQuery($query);
$component_id = $db->loadResult();
Expand Down Expand Up @@ -1874,8 +1874,8 @@ public function refreshManifestCache()
/**
* Creates the menu item in the database. If the item already exists it tries to remove it and create it afresh.
*
* @param array &$data The menu item data to create
* @param integer $parentId The parent menu item ID
* @param array &$data The menu item data to create
* @param integer $parentId The parent menu item ID
*
* @return bool|int Menu item ID on success, false on failure
*/
Expand Down

0 comments on commit aaa1d38

Please sign in to comment.