@@ -44,7 +44,7 @@ public function __construct(
4444 }
4545
4646 /**
47- * { @inheritdoc}
47+ * @inheritdoc
4848 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
4949 */
5050 public function apply ()
@@ -66,8 +66,8 @@ public function apply()
6666 ', ' ,
6767 $ eavSetup ->getAttribute (\Magento \Catalog \Model \Product::ENTITY , $ field , 'apply_to ' )
6868 );
69- if (!in_array (' bundle ' , $ applyTo )) {
70- $ applyTo [] = ' bundle ' ;
69+ if (!in_array (\ Magento \ Catalog \ Model \ Product \Type:: TYPE_BUNDLE , $ applyTo )) {
70+ $ applyTo [] = \ Magento \ Catalog \ Model \ Product \Type:: TYPE_BUNDLE ;
7171 $ eavSetup ->updateAttribute (
7272 \Magento \Catalog \Model \Product::ENTITY ,
7373 $ field ,
@@ -78,7 +78,7 @@ public function apply()
7878 }
7979
8080 $ applyTo = explode (', ' , $ eavSetup ->getAttribute (\Magento \Catalog \Model \Product::ENTITY , 'cost ' , 'apply_to ' ));
81- unset($ applyTo [array_search (' bundle ' , $ applyTo )]);
81+ unset($ applyTo [array_search (\ Magento \ Catalog \ Model \ Product \Type:: TYPE_BUNDLE , $ applyTo )]);
8282 $ eavSetup ->updateAttribute (\Magento \Catalog \Model \Product::ENTITY , 'cost ' , 'apply_to ' , implode (', ' , $ applyTo ));
8383
8484 /**
@@ -106,7 +106,7 @@ public function apply()
106106 'visible_on_front ' => false ,
107107 'used_in_product_listing ' => true ,
108108 'unique ' => false ,
109- 'apply_to ' => ' bundle '
109+ 'apply_to ' => \ Magento \ Catalog \ Model \ Product \Type:: TYPE_BUNDLE
110110 ]
111111 );
112112
@@ -131,7 +131,7 @@ public function apply()
131131 'comparable ' => false ,
132132 'visible_on_front ' => false ,
133133 'unique ' => false ,
134- 'apply_to ' => ' bundle '
134+ 'apply_to ' => \ Magento \ Catalog \ Model \ Product \Type:: TYPE_BUNDLE
135135 ]
136136 );
137137
@@ -157,7 +157,7 @@ public function apply()
157157 'visible_on_front ' => false ,
158158 'used_in_product_listing ' => true ,
159159 'unique ' => false ,
160- 'apply_to ' => ' bundle '
160+ 'apply_to ' => \ Magento \ Catalog \ Model \ Product \Type:: TYPE_BUNDLE
161161 ]
162162 );
163163
@@ -184,7 +184,7 @@ public function apply()
184184 'visible_on_front ' => false ,
185185 'used_in_product_listing ' => true ,
186186 'unique ' => false ,
187- 'apply_to ' => ' bundle '
187+ 'apply_to ' => \ Magento \ Catalog \ Model \ Product \Type:: TYPE_BUNDLE
188188 ]
189189 );
190190
@@ -210,29 +210,29 @@ public function apply()
210210 'visible_on_front ' => false ,
211211 'used_in_product_listing ' => true ,
212212 'unique ' => false ,
213- 'apply_to ' => ' bundle '
213+ 'apply_to ' => \ Magento \ Catalog \ Model \ Product \Type:: TYPE_BUNDLE
214214 ]
215215 );
216216 }
217217
218218 /**
219- * { @inheritdoc}
219+ * @inheritdoc
220220 */
221221 public static function getDependencies ()
222222 {
223223 return [];
224224 }
225225
226226 /**
227- * { @inheritdoc}
227+ * @inheritdoc
228228 */
229229 public static function getVersion ()
230230 {
231231 return '2.0.0 ' ;
232232 }
233233
234234 /**
235- * { @inheritdoc}
235+ * @inheritdoc
236236 */
237237 public function getAliases ()
238238 {
0 commit comments