@@ -54,6 +54,7 @@ public function __construct(
54
54
55
55
/**
56
56
* {@inheritdoc}
57
+ * @codeCoverageIgnore
57
58
*/
58
59
public function getIdentity ()
59
60
{
@@ -97,6 +98,7 @@ public function getText()
97
98
98
99
/**
99
100
* {@inheritdoc}
101
+ * @codeCoverageIgnore
100
102
*/
101
103
public function getSeverity ()
102
104
{
@@ -134,49 +136,47 @@ private function checkSettings($store = null)
134
136
{
135
137
$ adminCatalogPricesExcludeTax = !$ this ->taxConfig ->priceIncludesTax ($ store )
136
138
|| !$ this ->taxConfig ->shippingPriceIncludesTax ($ store );
137
- $ displayPricesWhichIncludeTax = $ this ->hasCatalogDisplaySettingsNotIncludingTax ($ store )
138
- || $ this ->hasCartDisplaySettingsNotIncludingTax ($ store )
139
- || $ this ->hasSalesDisplaySettingsNotIncludingTax ($ store );
139
+ $ displayPricesWhichIncludeTax = $ this ->hasCatalogDisplaySettingsWhichIncludeTax ($ store )
140
+ || $ this ->hasCartDisplaySettingsWhichIncludeTax ($ store )
141
+ || $ this ->hasSalesDisplaySettingsWhichIncludeTax ($ store );
140
142
return !($ adminCatalogPricesExcludeTax && $ displayPricesWhichIncludeTax );
141
143
}
142
144
143
145
/**
144
- * Check if there are any price display settings for catalog with values other than "Including tax"
146
+ * Check if there are any price display settings for catalog with values other than "Excluding tax"
145
147
*
146
148
* @param null|int|bool|string|\Magento\Store\Model\Store $store $store
147
149
* @return bool
148
150
*/
149
- private function hasCatalogDisplaySettingsNotIncludingTax ($ store = null )
151
+ private function hasCatalogDisplaySettingsWhichIncludeTax ($ store = null )
150
152
{
151
153
return $ this ->taxConfig ->getPriceDisplayType ($ store ) !== Config::DISPLAY_TYPE_EXCLUDING_TAX
152
154
|| $ this ->taxConfig ->getShippingPriceDisplayType ($ store ) !== Config::DISPLAY_TYPE_EXCLUDING_TAX ;
153
155
}
154
156
155
157
/**
156
- * Check if there are any price display settings for cart with values other than "Including tax"
158
+ * Check if there are any price display settings for cart with values other than "Excluding tax"
157
159
*
158
160
* @param null|int|bool|string|\Magento\Store\Model\Store $store $store
159
161
* @return bool
160
162
*/
161
- private function hasCartDisplaySettingsNotIncludingTax ($ store = null )
163
+ private function hasCartDisplaySettingsWhichIncludeTax ($ store = null )
162
164
{
163
- return !$ this ->taxConfig ->displayCartPricesInclTax ($ store )
164
- || !$ this ->taxConfig ->displayCartSubtotalInclTax ($ store )
165
- || !$ this ->taxConfig ->displayCartShippingInclTax ($ store )
166
- || !$ this ->taxConfig ->displayCartDiscountInclTax ($ store );
165
+ return !$ this ->taxConfig ->displayCartPricesExclTax ($ store )
166
+ || !$ this ->taxConfig ->displayCartSubtotalExclTax ($ store )
167
+ || !$ this ->taxConfig ->displayCartShippingExclTax ($ store );
167
168
}
168
169
169
170
/**
170
- * Check if there are any price display settings for orders, invoices, credit memos with values not "Including tax"
171
+ * Check if there are any price display settings for orders, invoices, credit memos with values not "Excluding tax"
171
172
*
172
173
* @param null|int|bool|string|\Magento\Store\Model\Store $store $store
173
174
* @return bool
174
175
*/
175
- private function hasSalesDisplaySettingsNotIncludingTax ($ store = null )
176
+ private function hasSalesDisplaySettingsWhichIncludeTax ($ store = null )
176
177
{
177
- return !$ this ->taxConfig ->displaySalesPricesInclTax ($ store )
178
- || !$ this ->taxConfig ->displaySalesSubtotalInclTax ($ store )
179
- || !$ this ->taxConfig ->displaySalesShippingInclTax ($ store )
180
- || !$ this ->taxConfig ->displaySalesDiscountInclTax ($ store );
178
+ return !$ this ->taxConfig ->displaySalesPricesExclTax ($ store )
179
+ || !$ this ->taxConfig ->displaySalesSubtotalExclTax ($ store )
180
+ || !$ this ->taxConfig ->displaySalesShippingExclTax ($ store );
181
181
}
182
182
}
0 commit comments