File tree Expand file tree Collapse file tree 8 files changed +14
-21
lines changed
GraphQlCache/Controller/Plugin
lib/internal/Magento/Framework Expand file tree Collapse file tree 8 files changed +14
-21
lines changed Original file line number Diff line number Diff line change 25
25
*
26
26
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
27
27
*/
28
- class CategoryRepository implements
29
- CategoryRepositoryInterface,
30
- ResetAfterRequestInterface
28
+ class CategoryRepository implements CategoryRepositoryInterface, ResetAfterRequestInterface
31
29
{
32
30
/**
33
31
* @var Category[]
Original file line number Diff line number Diff line change @@ -420,14 +420,9 @@ private function getPlaceholderValues(array $insertions)
420
420
{
421
421
$ placeholderValues = [];
422
422
foreach ($ insertions as $ insertion ) {
423
- // phpcs:ignore Magento2.Performance.ForeachArrayMerge
424
- $ placeholderValues = array_merge (
425
- $ placeholderValues ,
426
- $ insertion
427
- );
423
+ $ placeholderValues [] = $ insertion ;
428
424
}
429
-
430
- return $ placeholderValues ;
425
+ return array_merge (...$ placeholderValues );
431
426
}
432
427
433
428
/**
Original file line number Diff line number Diff line change @@ -852,7 +852,7 @@ protected function _afterDelete(DataObject $object)
852
852
*/
853
853
public function _resetState (): void
854
854
{
855
- parent ::_resetState (); // TODO: Change the autogenerated stub
855
+ parent ::_resetState ();
856
856
$ this ->availableCategoryIdsCache = [];
857
857
}
858
858
}
Original file line number Diff line number Diff line change 10
10
*
11
11
* @author Magento Core Team <core@magentocommerce.com>
12
12
*/
13
- use Magento \CatalogUrlRewrite \Model \ProductUrlRewriteGenerator ;
14
13
use Magento \Catalog \Api \Data \CategoryInterface ;
15
- use Magento \Framework \EntityManager \MetadataPool ;
16
- use Magento \Framework \App \ObjectManager ;
17
14
use Magento \Catalog \Model \Indexer \Category \Product \TableMaintainer ;
15
+ use Magento \CatalogUrlRewrite \Model \ProductUrlRewriteGenerator ;
16
+ use Magento \Framework \App \ObjectManager ;
17
+ use Magento \Framework \EntityManager \MetadataPool ;
18
18
use Magento \Framework \ObjectManager \ResetAfterRequestInterface ;
19
19
20
20
/**
Original file line number Diff line number Diff line change @@ -212,10 +212,10 @@ public function getFormat($type)
212
212
/**
213
213
* Get country name
214
214
*
215
- * @param ?string $locale
215
+ * @param mixed $locale
216
216
* @return string
217
217
*/
218
- public function getName (string $ locale = null )
218
+ public function getName ($ locale = null )
219
219
{
220
220
if ($ locale == null ) {
221
221
$ cache_key = 'name_default ' ;
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class GraphQl
62
62
* @param LoggerInterface $logger
63
63
* @param HttpRequestProcessor $requestProcessor
64
64
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
65
- * @param ResponseHttp $response @deprecated do not useʼ
65
+ * @param ResponseHttp $response @deprecated do not use
66
66
* @param Registry $registry
67
67
*/
68
68
public function __construct (
Original file line number Diff line number Diff line change 10
10
use GraphQL \Language \AST \DocumentNode ;
11
11
use GraphQL \Language \AST \Node ;
12
12
use GraphQL \Language \AST \NodeKind ;
13
- use Magento \Framework \ObjectManager \ResetAfterRequestInterface ;
14
13
use Magento \Framework \App \ObjectManager ;
14
+ use Magento \Framework \ObjectManager \ResetAfterRequestInterface ;
15
15
16
16
/**
17
17
* This class holds a list of all queried fields and is used to enable performance optimization for schema loading.
Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \Framework \View \Asset ;
8
8
9
- use Magento \Framework \ObjectManager \ResetAfterRequestInterface ;
10
- use Magento \Framework \UrlInterface ;
11
9
use Magento \Framework \App \Filesystem \DirectoryList ;
12
10
use Magento \Framework \App \ObjectManager ;
13
- use Magento \Framework \View \Design \Theme \ThemeProviderInterface ;
14
11
use Magento \Framework \Exception \LocalizedException ;
12
+ use Magento \Framework \ObjectManager \ResetAfterRequestInterface ;
13
+ use Magento \Framework \UrlInterface ;
14
+ use Magento \Framework \View \Design \Theme \ThemeProviderInterface ;
15
15
16
16
/**
17
17
* A repository service for view assets
You can’t perform that action at this time.
0 commit comments