Skip to content

Cleanups, fixes and a bit of optimizations for site/components batch #5#12294

Merged
rdeutz merged 8 commits intojoomla:stagingfrom
frankmayer:site-com_tags-com_users-com_wrapper
Jun 8, 2017
Merged

Cleanups, fixes and a bit of optimizations for site/components batch #5#12294
rdeutz merged 8 commits intojoomla:stagingfrom
frankmayer:site-com_tags-com_users-com_wrapper

Conversation

@frankmayer
Copy link
Copy Markdown
Contributor

@frankmayer frankmayer commented Oct 3, 2016

  • com_tags
  • com_users
  • com_wrapper

Note: This is a single commit bundling all types of changes, since PR #12261 which had detailed commits, was rejected as a whole

- com_tags
- com_users
- com_wrapper

Note: This is a single commit bundling all types of changes, since PR #12261 which had detailed commits, was rejected as a whole
@andrepereiradasilva
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on fd62014

on code review


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/12294.

# Conflicts:
#	components/com_tags/views/tags/tmpl/default_items.php
#	components/com_users/router.php
#	components/com_users/views/login/tmpl/default_login.php
#	components/com_users/views/login/tmpl/default_logout.php
#	components/com_users/views/registration/tmpl/default.php
#	components/com_wrapper/views/wrapper/view.html.php
@andrepereiradasilva
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 62df93f

code review


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12294.

# Conflicts:
#	components/com_tags/views/tag/tmpl/default.php
#	components/com_tags/views/tag/tmpl/list.php
#	components/com_tags/views/tag/tmpl/list_items.php
#	components/com_tags/views/tag/view.feed.php
#	components/com_tags/views/tags/view.feed.php
#	components/com_users/helpers/html/users.php
#	components/com_users/models/profile.php
@frankmayer
Copy link
Copy Markdown
Contributor Author

Fixed some conflicts that had occurred in the meantime.
Having merged the changes of above referenced PR's made this PR lighter and easier to test.
It is essentially ready to be merged, when the team finds the time and PR is OK.

}

if ($menu && ($menu->query['option'] != 'com_tags'))
if ($menu && ($menu->query['option'] !== 'com_tags'))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove parentheses.

// Note that there are certain parts of this layout used only when there is exactly one tag.
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
$isSingleTag = (count($this->item) == 1);
$isSingleTag = (count($this->item) === 1);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove parentheses

{
// Check to see if we have found the resend menu item.
if (empty($resend) && !empty($items[$i]->query['view']) && ($items[$i]->query['view'] == 'resend'))
if (empty($resend) && !empty($items[$i]->query['view']) && ($items[$i]->query['view'] === 'resend'))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove parentheses. ($items[$i]->query['view'] === 'resend')


// Check to see if we have found the reset menu item.
if (empty($reset) && !empty($items[$i]->query['view']) && ($items[$i]->query['view'] == 'reset'))
if (empty($reset) && !empty($items[$i]->query['view']) && ($items[$i]->query['view'] === 'reset'))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove parentheses.


// Check to see if we have found the remind menu item.
if (empty($remind) && !empty($items[$i]->query['view']) && ($items[$i]->query['view'] == 'remind'))
if (empty($remind) && !empty($items[$i]->query['view']) && ($items[$i]->query['view'] === 'remind'))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove parentheses.


// Check to see if we have found the login menu item.
if (empty($login) && !empty($items[$i]->query['view']) && ($items[$i]->query['view'] == 'login'))
if (empty($login) && !empty($items[$i]->query['view']) && ($items[$i]->query['view'] === 'login'))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove parentheses.


// Check to see if we have found the registration menu item.
if (empty($registration) && !empty($items[$i]->query['view']) && ($items[$i]->query['view'] == 'registration'))
if (empty($registration) && !empty($items[$i]->query['view']) && ($items[$i]->query['view'] === 'registration'))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove parentheses.


// Check to see if we have found the profile menu item.
if (empty($profile) && !empty($items[$i]->query['view']) && ($items[$i]->query['view'] == 'profile'))
if (empty($profile) && !empty($items[$i]->query['view']) && ($items[$i]->query['view'] === 'profile'))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove parentheses.

<?php endif; ?>

<?php if ($this->items == false || $n == 0) : ?>
<?php if ($this->items == false || $n === 0) : ?>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change == to ===?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, indeed 👍

<?php endif; ?>

<?php if ($this->items == false || $n == 0) : ?>
<?php if ($this->items == false || $n === 0) : ?>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change == to ===?

@Quy
Copy link
Copy Markdown
Contributor

Quy commented May 28, 2017

I have tested this item ✅ successfully on bbc3d57
Code review


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12294.

@andrepereiradasilva
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on bbc3d57

On code review


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12294.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jun 1, 2017
@ghost
Copy link
Copy Markdown

ghost commented Jun 1, 2017

RTC after two successful tests.

@rdeutz rdeutz added this to the Joomla 3.7.3 milestone Jun 8, 2017
@rdeutz rdeutz merged commit 7fc2cd3 into joomla:staging Jun 8, 2017
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jun 8, 2017
@frankmayer frankmayer deleted the site-com_tags-com_users-com_wrapper branch June 8, 2017 10:15
rdeutz added a commit that referenced this pull request Jul 25, 2017
roland-d added a commit to roland-d/joomla-cms that referenced this pull request Jul 26, 2017
* staging: (274 commits)
  Add JCryptCipherSodium to support libsodium (joomla#16754)
  Performance 2 (libraries/legacy) (joomla#12220)
  Performance 6 (templates) (joomla#12233)
  Fixed typehint (joomla#16425)
  Fix for: Repeatable field is no longer rendered with Chosen layout (joomla#16471)
  Fix the path for the ajax-loader.gif (joomla#16701)
  Menu items list parent filter (joomla#17060)
  Text Filters layout (joomla#17113)
  mod_login showon option (joomla#17153)
  com_banners incorret tooltip (joomla#17157)
  fix joomla.content.options_default (joomla#17123)
  remove the never working limitstart call (joomla#17184)
  Update phpDocumentor build
  set 3.8.0 Dev State
  Prepare 3.7.4 Stable Release
  fixed a logic change in joomla#12294, thanks @Hoffi1
  Update sv-SE.ini
  Update pt-BR.ini
  Update lv-LV.ini
  Update fa-IR.ini
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants