@@ -128,8 +128,8 @@ class Helper
128
128
* @param ProductRepositoryInterface|null $productRepository
129
129
* @param LinkTypeProvider|null $linkTypeProvider
130
130
* @param AttributeFilter|null $attributeFilter
131
- * @param ProductAuthorization|null $productAuthorization
132
131
* @param FormatInterface|null $localeFormat
132
+ * @param ProductAuthorization|null $productAuthorization
133
133
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
134
134
*/
135
135
public function __construct (
@@ -144,8 +144,8 @@ public function __construct(
144
144
ProductRepositoryInterface $ productRepository = null ,
145
145
LinkTypeProvider $ linkTypeProvider = null ,
146
146
AttributeFilter $ attributeFilter = null ,
147
- ? ProductAuthorization $ productAuthorization = null ,
148
- FormatInterface $ localeFormat = null
147
+ FormatInterface $ localeFormat = null ,
148
+ ? ProductAuthorization $ productAuthorization = null
149
149
) {
150
150
$ this ->request = $ request ;
151
151
$ this ->storeManager = $ storeManager ;
@@ -160,8 +160,8 @@ public function __construct(
160
160
$ this ->productRepository = $ productRepository ?: $ objectManager ->get (ProductRepositoryInterface::class);
161
161
$ this ->linkTypeProvider = $ linkTypeProvider ?: $ objectManager ->get (LinkTypeProvider::class);
162
162
$ this ->attributeFilter = $ attributeFilter ?: $ objectManager ->get (AttributeFilter::class);
163
- $ this ->productAuthorization = $ productAuthorization ?? $ objectManager ->get (ProductAuthorization::class);
164
163
$ this ->localeFormat = $ localeFormat ?: $ objectManager ->get (FormatInterface::class);
164
+ $ this ->productAuthorization = $ productAuthorization ?? $ objectManager ->get (ProductAuthorization::class);
165
165
}
166
166
167
167
/**
0 commit comments