File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
app/code/Magento/Sales/Model/Order/Address Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,16 @@ public function __construct(
6161 $ this ->countryFactory = $ countryFactory ;
6262 $ this ->eavConfig = $ eavConfig ?: ObjectManager::getInstance ()
6363 ->get (EavConfig::class);
64+ }
65+
66+ /**
67+ *
68+ * @param \Magento\Sales\Model\Order\Address $address
69+ * @return array
70+ */
71+ public function validate (Address $ address )
72+ {
73+ $ warnings = [];
6474
6575 if ($ this ->isTelephoneRequired ()) {
6676 $ this ->required ['telephone ' ] = 'Phone Number ' ;
@@ -73,16 +83,7 @@ public function __construct(
7383 if ($ this ->isFaxRequired ()) {
7484 $ this ->required ['fax ' ] = 'Fax ' ;
7585 }
76- }
7786
78- /**
79- *
80- * @param \Magento\Sales\Model\Order\Address $address
81- * @return array
82- */
83- public function validate (Address $ address )
84- {
85- $ warnings = [];
8687 foreach ($ this ->required as $ code => $ label ) {
8788 if (!$ address ->hasData ($ code )) {
8889 $ warnings [] = sprintf ('"%s" is required. Enter and try again. ' , $ label );
You can’t perform that action at this time.
0 commit comments