File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
app/code/Magento/Bundle/Model/Sales/Order/Pdf/Items Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ class Creditmemo extends AbstractItems
33
33
* @param \Magento\Framework\Data\Collection\AbstractDb $resourceCollection
34
34
* @param array $data
35
35
* @param \Magento\Framework\Serialize\Serializer\Json|null $serializer
36
+ * @SuppressWarnings(PHPMD.ExcessiveParameterList)
36
37
*/
37
38
public function __construct (
38
39
\Magento \Framework \Model \Context $ context ,
@@ -47,7 +48,6 @@ public function __construct(
47
48
Json $ serializer = null
48
49
) {
49
50
$ this ->string = $ string ;
50
- $ serializer = $ serializer ?: ObjectManager::getInstance ()->get (Json::class);
51
51
parent ::__construct (
52
52
$ context ,
53
53
$ registry ,
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ class Invoice extends AbstractItems
33
33
* @param \Magento\Framework\Data\Collection\AbstractDb $resourceCollection
34
34
* @param array $data
35
35
* @param \Magento\Framework\Serialize\Serializer\Json|null $serializer
36
+ * @SuppressWarnings(PHPMD.ExcessiveParameterList)
36
37
*/
37
38
public function __construct (
38
39
\Magento \Framework \Model \Context $ context ,
@@ -46,7 +47,6 @@ public function __construct(
46
47
array $ data = [],
47
48
Json $ serializer = null
48
49
) {
49
- $ serializer = $ serializer ?: ObjectManager::getInstance ()->get (Json::class);
50
50
$ this ->string = $ coreString ;
51
51
parent ::__construct (
52
52
$ context ,
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ class Shipment extends AbstractItems
31
31
* @param \Magento\Framework\Data\Collection\AbstractDb $resourceCollection
32
32
* @param array $data
33
33
* @param \Magento\Framework\Serialize\Serializer\Json|null $serializer
34
+ * @SuppressWarnings(PHPMD.ExcessiveParameterList)
34
35
*/
35
36
public function __construct (
36
37
\Magento \Framework \Model \Context $ context ,
@@ -45,7 +46,6 @@ public function __construct(
45
46
Json $ serializer = null
46
47
) {
47
48
$ this ->string = $ string ;
48
- $ serializer = $ serializer ?: ObjectManager::getInstance ()->get (Json::class);
49
49
parent ::__construct (
50
50
$ context ,
51
51
$ registry ,
You can’t perform that action at this time.
0 commit comments