Skip to content
This repository has been archived by the owner on Apr 29, 2019. It is now read-only.

Removed each() function usage #31

Merged
merged 1 commit into from
Feb 1, 2018

Conversation

joni-jones
Copy link
Contributor

@joni-jones joni-jones commented Jan 31, 2018

Removed each() function usage
Updated static test to check each() usage

Fixed Issues

  1. Usage of deprecated each() function #20: Usage of deprecated each() function

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@@ -337,7 +337,8 @@ public function install($request)

$this->log->log('Starting Magento installation:');

while (list(, list($message, $method, $params)) = each($script)) {
foreach ($script as $item) {
list($message, $method, $params) = [$item[0], $item[1], $item[2]];
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd like to simplify it just with

list($message, $method, $params) = $item;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -336,7 +336,8 @@ public function testComponentPathsInRoot()
"If there are any component paths specified, then they must be reflected in 'replace' section"
);
$flat = $this->getFlatPathsInfo(self::$rootJson['extra']['component_paths']);
while (list(, list($component, $path)) = each($flat)) {
foreach ($flat as $item) {
list($component, $path) = [$item[0], $item[1]];
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd like to simplify it just with

list($component, $path) = $item;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@ihor-sviziev ihor-sviziev self-assigned this Jan 31, 2018
- Updated static test to check `each()` usage
@buskamuza buskamuza self-assigned this Jan 31, 2018
@buskamuza buskamuza added this to the January 2018 milestone Jan 31, 2018
@magento-engcom-team magento-engcom-team merged commit e62a7a2 into magento-engcom:2.3-develop Feb 1, 2018
ihor-sviziev pushed a commit to ihor-sviziev/magento2 that referenced this pull request Feb 1, 2018
magento-engcom-team pushed a commit that referenced this pull request Sep 11, 2018
magento-engcom-team pushed a commit that referenced this pull request Sep 11, 2018
magento-engcom-team pushed a commit that referenced this pull request Sep 11, 2018
magento-engcom-team pushed a commit that referenced this pull request Sep 11, 2018
magento-engcom-team pushed a commit that referenced this pull request Sep 11, 2018
magento-engcom-team pushed a commit that referenced this pull request Sep 11, 2018
magento-engcom-team pushed a commit that referenced this pull request Sep 11, 2018
magento-engcom-team pushed a commit that referenced this pull request Oct 13, 2018
 - Merge Pull Request magento/bulk-api-ce#31 from magento/bulk-api-ce:async-delete
 - Merged commits:
   1. 069aa1c
   2. 694d219
magento-engcom-team added a commit that referenced this pull request Jan 27, 2019
 - Merge Pull Request magento-commerce/async-import#31 from magento/async-import:swagger-cache-fix
 - Merged commits:
   1. dd1cdec
   2. dad84f4
   3. 56f3580
   4. cbcc5e8
   5. eecb01f
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants