@@ -42,8 +42,6 @@ class DynamicField implements FieldProviderInterface
4242 private $ groupRepository ;
4343
4444 /**
45- * Search criteria builder.
46- *
4745 * @var SearchCriteriaBuilder
4846 */
4947 private $ searchCriteriaBuilder ;
@@ -82,7 +80,8 @@ class DynamicField implements FieldProviderInterface
8280 * @param AttributeProvider $attributeAdapterProvider
8381 * @param Collection $categoryCollection @deprecated @see $categoryCollectionFactory
8482 * @param StoreManagerInterface|null $storeManager
85- * * @param CollectionFactory|null $categoryCollectionFactory
83+ * @param CollectionFactory|null $categoryCollectionFactory
84+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
8685 */
8786 public function __construct (
8887 FieldTypeConverterInterface $ fieldTypeConverter ,
@@ -101,7 +100,8 @@ public function __construct(
101100 $ this ->indexTypeConverter = $ indexTypeConverter ;
102101 $ this ->fieldNameResolver = $ fieldNameResolver ;
103102 $ this ->attributeAdapterProvider = $ attributeAdapterProvider ;
104- $ this ->categoryCollectionFactory = $ categoryCollectionFactory ?: ObjectManager::getInstance ()->get (CollectionFactory::class);
103+ $ this ->categoryCollectionFactory = $ categoryCollectionFactory
104+ ?: ObjectManager::getInstance ()->get (CollectionFactory::class);
105105 $ this ->storeManager = $ storeManager ?: ObjectManager::getInstance ()->get (StoreManagerInterface::class);
106106 }
107107
0 commit comments