Skip to content

Commit 12a9871

Browse files
committed
MAGETWO-87698: PR delivery sprint 10
- codestyle fixes
1 parent a9552a1 commit 12a9871

File tree

6 files changed

+6
-21
lines changed

6 files changed

+6
-21
lines changed

app/code/Magento/CatalogGraphQl/Model/Layer/CollectionProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public function __construct(
4444
public function getCollection(\Magento\Catalog\Model\Category $category)
4545
{
4646
if (!$this->collection) {
47-
$this->collection = $this->collectionFactory->create();;
47+
$this->collection = $this->collectionFactory->create();
4848
}
4949
return $this->collection;
5050
}
51-
}
51+
}

app/code/Magento/CatalogGraphQl/Model/Resolver/Layer/FiltersProvider.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class FiltersProvider
2121
private $layerResolver;
2222

2323
/**
24-
* @var \Magento\CatalogGraphQl\Model\Resolver\Layer\FilterableAttributesListFactory
24+
* @var FilterableAttributesListFactory
2525
*/
2626
private $filterableAttributesListFactory;
2727

@@ -33,15 +33,14 @@ class FiltersProvider
3333
/**
3434
* FiltersProvider constructor.
3535
* @param Resolver $layerResolver
36-
* @param \Magento\CatalogGraphQl\Model\Resolver\Layer\FilterableAttributesListFactory $filterableAttributesListFactory
36+
* @param FilterableAttributesListFactory $filterableAttributesListFactory
3737
* @param FilterListFactory $filterListFactory
3838
*/
3939
public function __construct(
4040
Resolver $layerResolver,
4141
FilterableAttributesListFactory $filterableAttributesListFactory,
4242
FilterListFactory $filterListFactory
4343
) {
44-
4544
$this->layerResolver = $layerResolver;
4645
$this->filterableAttributesListFactory = $filterableAttributesListFactory;
4746
$this->filterListFactory = $filterListFactory;

app/code/Magento/CatalogGraphQl/Model/Resolver/Products.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function resolve(
8787
array $args = null
8888
) : Value {
8989
$searchCriteria = $this->searchCriteriaBuilder->build($field->getName(), $args);
90-
$searchCriteria->setCurrentPage($args['currentPage']);
90+
$searchCriteria->setCurrentPage($args['currentPage']);
9191
$searchCriteria->setPageSize($args['pageSize']);
9292
if (!isset($args['search']) && !isset($args['filter'])) {
9393
throw new GraphQlInputException(

dev/tests/api-functional/testsuite/Magento/GraphQl/Swatches/ProductSearchTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,4 @@ private function assertFilters($response, $expectedFilters, $message = '')
156156
{
157157
$this->assertEquals($expectedFilters, $response['products']['filters'], $message);
158158
}
159-
}
159+
}

dev/tests/integration/testsuite/Magento/Catalog/_files/products_with_layered_navigation_attribute.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@
6565
/** @var \Magento\Framework\ObjectManagerInterface $objectManager */
6666
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
6767

68-
69-
70-
7168
/** @var $product \Magento\Catalog\Model\Product */
7269
$product = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Catalog\Model\Product::class);
7370
$product->isObjectNew(true);
@@ -139,8 +136,6 @@
139136
->setSpecialPrice('25.99')
140137
->save();
141138

142-
143-
144139
$category = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Catalog\Model\Category::class);
145140
$category->isObjectNew(true);
146141
$category->setId(
@@ -167,13 +162,10 @@
167162
[10 => 10, 11 => 11, 12 => 12]
168163
)->save();
169164

170-
171-
172165
/** @var \Magento\Indexer\Model\Indexer\Collection $indexerCollection */
173166
$indexerCollection = Bootstrap::getObjectManager()->get(\Magento\Indexer\Model\Indexer\Collection::class);
174167
$indexerCollection->load();
175168
/** @var \Magento\Indexer\Model\Indexer $indexer */
176169
foreach ($indexerCollection->getItems() as $indexer) {
177170
$indexer->reindexAll();
178171
}
179-

dev/tests/integration/testsuite/Magento/Swatches/_files/products_with_layered_navigation_swatch.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ function ($values, $index) use ($optionsPerAttribute) {
9595
$attribute = $eavConfig->getAttribute('catalog_product', 'color_swatch');
9696
$options = $attribute->getOptions();
9797

98-
9998
// workaround for saved attribute
10099
$attribute->setDefaultValue($options[1]->getValue());
101100

@@ -173,8 +172,6 @@ function ($values, $index) use ($optionsPerAttribute) {
173172
->setSpecialPrice('25.99')
174173
->save();
175174

176-
177-
178175
$category = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Catalog\Model\Category::class);
179176
$category->isObjectNew(true);
180177
$category->setId(
@@ -201,13 +198,10 @@ function ($values, $index) use ($optionsPerAttribute) {
201198
[10 => 10, 11 => 11, 12 => 12]
202199
)->save();
203200

204-
205-
206201
/** @var \Magento\Indexer\Model\Indexer\Collection $indexerCollection */
207202
$indexerCollection = Bootstrap::getObjectManager()->get(\Magento\Indexer\Model\Indexer\Collection::class);
208203
$indexerCollection->load();
209204
/** @var \Magento\Indexer\Model\Indexer $indexer */
210205
foreach ($indexerCollection->getItems() as $indexer) {
211206
$indexer->reindexAll();
212207
}
213-

0 commit comments

Comments
 (0)