@@ -42,8 +42,6 @@ class DynamicField implements FieldProviderInterface
42
42
private $ groupRepository ;
43
43
44
44
/**
45
- * Search criteria builder.
46
- *
47
45
* @var SearchCriteriaBuilder
48
46
*/
49
47
private $ searchCriteriaBuilder ;
@@ -82,7 +80,8 @@ class DynamicField implements FieldProviderInterface
82
80
* @param AttributeProvider $attributeAdapterProvider
83
81
* @param Collection $categoryCollection @deprecated @see $categoryCollectionFactory
84
82
* @param StoreManagerInterface|null $storeManager
85
- * * @param CollectionFactory|null $categoryCollectionFactory
83
+ * @param CollectionFactory|null $categoryCollectionFactory
84
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
86
85
*/
87
86
public function __construct (
88
87
FieldTypeConverterInterface $ fieldTypeConverter ,
@@ -101,7 +100,8 @@ public function __construct(
101
100
$ this ->indexTypeConverter = $ indexTypeConverter ;
102
101
$ this ->fieldNameResolver = $ fieldNameResolver ;
103
102
$ this ->attributeAdapterProvider = $ attributeAdapterProvider ;
104
- $ this ->categoryCollectionFactory = $ categoryCollectionFactory ?: ObjectManager::getInstance ()->get (CollectionFactory::class);
103
+ $ this ->categoryCollectionFactory = $ categoryCollectionFactory
104
+ ?: ObjectManager::getInstance ()->get (CollectionFactory::class);
105
105
$ this ->storeManager = $ storeManager ?: ObjectManager::getInstance ()->get (StoreManagerInterface::class);
106
106
}
107
107
0 commit comments