@@ -1514,7 +1514,7 @@ public function getItemById($itemId)
1514
1514
* Get item by quote item id
1515
1515
*
1516
1516
* @param mixed $quoteItemId
1517
- * @return \Magento\Framework\DataObject|null
1517
+ * @return \Magento\Framework\DataObject|null
1518
1518
*/
1519
1519
public function getItemByQuoteItemId ($ quoteItemId )
1520
1520
{
@@ -1976,7 +1976,7 @@ public function getRelatedObjects()
1976
1976
*
1977
1977
* @return string
1978
1978
*/
1979
- public function getCustomerName (): string
1979
+ public function getCustomerName ()
1980
1980
{
1981
1981
if (null === $ this ->getCustomerFirstname ()) {
1982
1982
return (string )__ ('Guest ' );
@@ -1998,49 +1998,6 @@ public function getCustomerName(): string
1998
1998
return $ customerName ;
1999
1999
}
2000
2000
2001
- /**
2002
- * Is visible customer middlename
2003
- *
2004
- * @return bool
2005
- */
2006
- private function isVisibleCustomerMiddlename (): bool
2007
- {
2008
- return $ this ->scopeConfig ->isSetFlag (
2009
- 'customer/address/middlename_show ' ,
2010
- ScopeInterface::SCOPE_STORE
2011
- );
2012
- }
2013
-
2014
- /**
2015
- * Is visible customer prefix
2016
- *
2017
- * @return bool
2018
- */
2019
- private function isVisibleCustomerPrefix (): bool
2020
- {
2021
- $ prefixShowValue = $ this ->scopeConfig ->getValue (
2022
- 'customer/address/prefix_show ' ,
2023
- ScopeInterface::SCOPE_STORE
2024
- );
2025
-
2026
- return $ prefixShowValue !== Nooptreq::VALUE_NO ;
2027
- }
2028
-
2029
- /**
2030
- * Is visible customer suffix
2031
- *
2032
- * @return bool
2033
- */
2034
- private function isVisibleCustomerSuffix (): bool
2035
- {
2036
- $ prefixShowValue = $ this ->scopeConfig ->getValue (
2037
- 'customer/address/suffix_show ' ,
2038
- ScopeInterface::SCOPE_STORE
2039
- );
2040
-
2041
- return $ prefixShowValue !== Nooptreq::VALUE_NO ;
2042
- }
2043
-
2044
2001
/**
2045
2002
* Add New object to related array
2046
2003
*
@@ -4600,5 +4557,48 @@ public function setShippingMethod($shippingMethod)
4600
4557
return $ this ->setData ('shipping_method ' , $ shippingMethod );
4601
4558
}
4602
4559
4560
+ /**
4561
+ * Is visible customer middlename
4562
+ *
4563
+ * @return bool
4564
+ */
4565
+ private function isVisibleCustomerMiddlename (): bool
4566
+ {
4567
+ return $ this ->scopeConfig ->isSetFlag (
4568
+ 'customer/address/middlename_show ' ,
4569
+ ScopeInterface::SCOPE_STORE
4570
+ );
4571
+ }
4572
+
4573
+ /**
4574
+ * Is visible customer prefix
4575
+ *
4576
+ * @return bool
4577
+ */
4578
+ private function isVisibleCustomerPrefix (): bool
4579
+ {
4580
+ $ prefixShowValue = $ this ->scopeConfig ->getValue (
4581
+ 'customer/address/prefix_show ' ,
4582
+ ScopeInterface::SCOPE_STORE
4583
+ );
4584
+
4585
+ return $ prefixShowValue !== Nooptreq::VALUE_NO ;
4586
+ }
4587
+
4588
+ /**
4589
+ * Is visible customer suffix
4590
+ *
4591
+ * @return bool
4592
+ */
4593
+ private function isVisibleCustomerSuffix (): bool
4594
+ {
4595
+ $ prefixShowValue = $ this ->scopeConfig ->getValue (
4596
+ 'customer/address/suffix_show ' ,
4597
+ ScopeInterface::SCOPE_STORE
4598
+ );
4599
+
4600
+ return $ prefixShowValue !== Nooptreq::VALUE_NO ;
4601
+ }
4602
+
4603
4603
//@codeCoverageIgnoreEnd
4604
4604
}
0 commit comments