From e4c2ac1d51da10b44a2bbfa7236fbb908a1e53fb Mon Sep 17 00:00:00 2001 From: Walt Sorensen Date: Wed, 7 Feb 2018 21:36:09 -0700 Subject: [PATCH] Remove space indent exceptions (#19609) * remove space indent exceptions * tab indent not spaces * Tabs must be used to indent lines; spaces are not allowed * Tabs must be used to indent lines; spaces are not allowed try using the concatenation to fix space indent strangeness * Tabs must be used to indent lines; spaces are not allowed --- .../com_associations/models/fields/itemlanguage.php | 2 +- .../com_associations/views/associations/tmpl/modal.php | 4 ++-- administrator/components/com_menus/controllers/item.php | 2 +- build/phpcs/Joomla/ruleset.xml | 7 +------ components/com_content/content.php | 2 +- 5 files changed, 6 insertions(+), 11 deletions(-) diff --git a/administrator/components/com_associations/models/fields/itemlanguage.php b/administrator/components/com_associations/models/fields/itemlanguage.php index a7b3cfaca7379..1c8ddf46d52ec 100644 --- a/administrator/components/com_associations/models/fields/itemlanguage.php +++ b/administrator/components/com_associations/models/fields/itemlanguage.php @@ -80,7 +80,7 @@ protected function getOptions() $itemId = (int) $associations[$language->lang_code]['id']; $options[$langCode]->value = $language->lang_code . ':' . $itemId . ':edit'; - // Check if user does have permission to edit the associated item. + // Check if user does have permission to edit the associated item. $canEdit = AssociationsHelper::allowEdit($extensionName, $typeName, $itemId); // Check if item can be checked out diff --git a/administrator/components/com_associations/views/associations/tmpl/modal.php b/administrator/components/com_associations/views/associations/tmpl/modal.php index 63520f408c2a6..6d21097cac952 100644 --- a/administrator/components/com_associations/views/associations/tmpl/modal.php +++ b/administrator/components/com_associations/views/associations/tmpl/modal.php @@ -46,8 +46,8 @@ });" ); ?> -
+ sidebar)) : ?>
diff --git a/administrator/components/com_menus/controllers/item.php b/administrator/components/com_menus/controllers/item.php index 2f25088d5fa6e..83770ba1c7cfb 100644 --- a/administrator/components/com_menus/controllers/item.php +++ b/administrator/components/com_menus/controllers/item.php @@ -337,7 +337,7 @@ public function save($key = null, $urlVar = null) $segments = explode(':', $data['link']); $protocol = strtolower($segments[0]); $scheme = array('http', 'https', 'ftp', 'ftps', 'gopher', 'mailto', 'news', 'prospero', 'telnet', 'rlogin', 'tn3270', 'wais','mid', 'cid', 'nntp', - 'tel', 'urn', 'ldap', 'file', 'fax', 'modem', 'git', 'sms'); + 'tel', 'urn', 'ldap', 'file', 'fax', 'modem', 'git', 'sms'); if (!in_array($protocol, $scheme)) { diff --git a/build/phpcs/Joomla/ruleset.xml b/build/phpcs/Joomla/ruleset.xml index 0b2d1219aea8c..ac4a3d675b0bd 100644 --- a/build/phpcs/Joomla/ruleset.xml +++ b/build/phpcs/Joomla/ruleset.xml @@ -82,12 +82,7 @@ - - - administrator/components/* - components/* - libraries/cms/* - + diff --git a/components/com_content/content.php b/components/com_content/content.php index f0cd8505b95c0..187de0a8e7256 100644 --- a/components/com_content/content.php +++ b/components/com_content/content.php @@ -23,7 +23,7 @@ { // Can create in any category (component permission) or at least in one category $canCreateRecords = $user->authorise('core.create', 'com_content') - || count($user->getAuthorisedCategories('com_content', 'core.create')) > 0; + || count($user->getAuthorisedCategories('com_content', 'core.create')) > 0; // Instead of checking edit on all records, we can use **same** check as the form editing view $values = (array) JFactory::getApplication()->getUserState('com_content.edit.article.id');