From aaa1d389a0f675a73172140313304c1593814a11 Mon Sep 17 00:00:00 2001 From: zero-24 Date: Tue, 23 Dec 2014 19:20:30 +0100 Subject: [PATCH] Make travis Happy for https://github.com/joomla/joomla-cms/pull/5499 Hi @nikosdion this should make travis happy here: https://github.com/joomla/joomla-cms/pull/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 -------------------------------------------------------------------------------- ``` --- libraries/cms/installer/adapter/component.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libraries/cms/installer/adapter/component.php b/libraries/cms/installer/adapter/component.php index 4f97b818492da..466e58f6e8cac 100644 --- a/libraries/cms/installer/adapter/component.php +++ b/libraries/cms/installer/adapter/component.php @@ -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(); @@ -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(); @@ -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 */