Skip to content

Commit

Permalink
Remove space indent exceptions (#19609)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
photodude authored and zero-24 committed Feb 8, 2018
1 parent 30581d3 commit e4c2ac1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
});"
);
?>
<form action="<?php echo JRoute::_('index.php?option=com_associations&view=associations&layout=modal&tmpl=component&function=' . $function . '&' . JSession::getFormToken() . '=1');
?>" method="post" name="adminForm" id="adminForm">
<form action="<?php echo JRoute::_('index.php?option=com_associations&view=associations&layout=modal&tmpl=component&function='
. $function . '&' . JSession::getFormToken() . '=1'); ?>" method="post" name="adminForm" id="adminForm">

<?php if (!empty( $this->sidebar)) : ?>
<div id="j-sidebar-container" class="span2">
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_menus/controllers/item.php
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down
7 changes: 1 addition & 6 deletions build/phpcs/Joomla/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,7 @@
<rule ref="Generic.PHP.DeprecatedFunctions" />
<rule ref="Generic.PHP.ForbiddenFunctions"/>
<rule ref="Generic.PHP.LowerCaseConstant" />
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent">
<!-- These exceptions are temporary for now -->
<exclude-pattern type="relative">administrator/components/*</exclude-pattern>
<exclude-pattern type="relative">components/*</exclude-pattern>
<exclude-pattern type="relative">libraries/cms/*</exclude-pattern>
</rule>
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent" />

<!-- Include some additional sniffs from the PEAR standard -->
<rule ref="PEAR.Classes.ClassDeclaration" />
Expand Down
2 changes: 1 addition & 1 deletion components/com_content/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit e4c2ac1

Please sign in to comment.