Skip to content

Commit 2f7ebd6

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-18122-Fix-TODOs' into develop
Conflicts: app/code/Magento/Integration/Model/Oauth/Token/Provider.php dev/tests/unit/testsuite/Magento/Integration/Oauth/OauthTest.php
2 parents f430b56 + af0bdbf commit 2f7ebd6

File tree

24 files changed

+68
-73
lines changed

24 files changed

+68
-73
lines changed

app/code/Magento/Authorization/sql/authorization_setup/install-2.0.0.php

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,7 @@
99

1010
$installer->startSetup();
1111

12-
if ($installer->getConnection()->isTableExists($installer->getTable('admin_role'))) {
13-
/**
14-
* Rename existing 'admin_role' table into 'authorization_role' (to avoid forcing Magento re-installation)
15-
* TODO: This conditional logic can be removed some time after pull request is delivered to the mainline
16-
*/
17-
$installer->getConnection()->renameTable(
18-
$installer->getTable('admin_role'),
19-
$installer->getTable('authorization_role')
20-
);
21-
} elseif (!$installer->getConnection()->isTableExists($installer->getTable('authorization_role'))) {
12+
if (!$installer->getConnection()->isTableExists($installer->getTable('authorization_role'))) {
2213
/**
2314
* Create table 'authorization_role'
2415
*/
@@ -84,16 +75,7 @@
8475
$installer->getConnection()->createTable($table);
8576
}
8677

87-
if ($installer->getConnection()->isTableExists($installer->getTable('admin_rule'))) {
88-
/**
89-
* Rename existing 'admin_rule' table into 'authorization_rule' (to avoid forcing Magento re-installation)
90-
* TODO: This conditional logic can be removed some time after pull request is delivered to the mainline
91-
*/
92-
$installer->getConnection()->renameTable(
93-
$installer->getTable('admin_rule'),
94-
$installer->getTable('authorization_rule')
95-
);
96-
} elseif (!$installer->getConnection()->isTableExists($installer->getTable('authorization_rule'))) {
78+
if (!$installer->getConnection()->isTableExists($installer->getTable('authorization_rule'))) {
9779
/**
9880
* Create table 'authorization_rule'
9981
*/

app/code/Magento/Catalog/Model/Product/Media/AttributeManagement.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
*/
66
namespace Magento\Catalog\Model\Product\Media;
77

8-
use \Magento\Catalog\Api\ProductMediaAttributeManagementInterface;
9-
use \Magento\Store\Model\StoreManagerInterface;
10-
use \Magento\Catalog\Model\Product;
8+
use Magento\Catalog\Api\ProductMediaAttributeManagementInterface;
9+
use Magento\Store\Model\StoreManagerInterface;
10+
use Magento\Catalog\Model\Product;
1111

1212
class AttributeManagement implements ProductMediaAttributeManagementInterface
1313
{

app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @var $this \Magento\Catalog\Block\Product\ProductList\Toolbar
1212
*/
13-
use \Magento\Catalog\Model\Product\ProductList\Toolbar;
13+
use Magento\Catalog\Model\Product\ProductList\Toolbar;
1414
?>
1515
<?php if ($this->getCollection()->getSize()): ?>
1616
<div class="toolbar toolbar-products" data-mage-init='<?php echo $this->getWidgetOptionsJson(); ?>'>

app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar/amount.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @var $this \Magento\Catalog\Block\Product\ProductList\Toolbar
1212
*/
13-
use \Magento\Catalog\Model\Product\ProductList\Toolbar;
13+
use Magento\Catalog\Model\Product\ProductList\Toolbar;
1414
?>
1515
<p class="toolbar-amount">
1616
<?php if ($this->getLastPageNum() > 1): ?>

app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar/limiter.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @var $this \Magento\Catalog\Block\Product\ProductList\Toolbar
1212
*/
13-
use \Magento\Catalog\Model\Product\ProductList\Toolbar;
13+
use Magento\Catalog\Model\Product\ProductList\Toolbar;
1414
?>
1515
<div class="field limiter">
1616
<label class="label" for="limiter">

app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar/sorter.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @var $this \Magento\Catalog\Block\Product\ProductList\Toolbar
1212
*/
13-
use \Magento\Catalog\Model\Product\ProductList\Toolbar;
13+
use Magento\Catalog\Model\Product\ProductList\Toolbar;
1414
?>
1515
<div class="toolbar-sorter sorter">
1616
<label class="sorter-label" for="sorter"><?php echo __('Sort By') ?></label>

app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar/viewmode.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @var $this \Magento\Catalog\Block\Product\ProductList\Toolbar
1212
*/
13-
use \Magento\Catalog\Model\Product\ProductList\Toolbar;
13+
use Magento\Catalog\Model\Product\ProductList\Toolbar;
1414
?>
1515
<?php if ($this->isEnabledViewSwitcher()): ?>
1616
<div class="modes">

app/code/Magento/CatalogUrlRewrite/Model/Category/Plugin/Category/Move.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
use Magento\Catalog\Model\Category;
99
use Magento\CatalogUrlRewrite\Model\CategoryUrlPathGenerator;
10-
use \Magento\CatalogUrlRewrite\Model\Category\ChildrenCategoriesProvider;
10+
use Magento\CatalogUrlRewrite\Model\Category\ChildrenCategoriesProvider;
1111

1212
class Move
1313
{

app/code/Magento/Checkout/Service/V1/PaymentMethod/ReadService.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
*/
66
namespace Magento\Checkout\Service\V1\PaymentMethod;
77

8-
use \Magento\Sales\Model\QuoteRepository;
9-
use \Magento\Store\Model\StoreManagerInterface;
8+
use Magento\Sales\Model\QuoteRepository;
109
use Magento\Checkout\Service\V1\Data\Cart\PaymentMethod\Converter as QuoteMethodConverter;
1110
use Magento\Checkout\Service\V1\Data\PaymentMethod\Converter as PaymentMethodConverter;
12-
use \Magento\Payment\Model\MethodList;
11+
use Magento\Payment\Model\MethodList;
1312

1413
/**
1514
* Payment method read service object.

app/code/Magento/CheckoutAgreements/Service/V1/Agreement/ReadService.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
*/
66
namespace Magento\CheckoutAgreements\Service\V1\Agreement;
77

8-
use \Magento\CheckoutAgreements\Model\Resource\Agreement\CollectionFactory as AgreementCollectionFactory;
9-
use \Magento\CheckoutAgreements\Model\Resource\Agreement\Collection as AgreementCollection;
10-
use \Magento\CheckoutAgreements\Model\Agreement;
11-
use \Magento\Framework\App\Config\ScopeConfigInterface;
8+
use Magento\CheckoutAgreements\Model\Resource\Agreement\CollectionFactory as AgreementCollectionFactory;
9+
use Magento\CheckoutAgreements\Model\Resource\Agreement\Collection as AgreementCollection;
10+
use Magento\CheckoutAgreements\Model\Agreement;
11+
use Magento\Framework\App\Config\ScopeConfigInterface;
1212
use Magento\Store\Model\StoreManagerInterface;
13-
use \Magento\Store\Model\ScopeInterface;
14-
use \Magento\CheckoutAgreements\Service\V1\Data\AgreementBuilder;
15-
use \Magento\CheckoutAgreements\Service\V1\Data\Agreement as AgreementDataObject;
13+
use Magento\Store\Model\ScopeInterface;
14+
use Magento\CheckoutAgreements\Service\V1\Data\AgreementBuilder;
15+
use Magento\CheckoutAgreements\Service\V1\Data\Agreement as AgreementDataObject;
1616

1717
/**
1818
* Checkout agreement service.

0 commit comments

Comments
 (0)