File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
app/code/Magento/Customer Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,8 @@ public function getCustomer()
203
203
}
204
204
205
205
/**
206
+ * Get customer's default billing address
207
+ *
206
208
* @return int|null
207
209
*/
208
210
public function getDefaultBilling ()
@@ -232,6 +234,8 @@ public function getAddressById($addressId)
232
234
}
233
235
234
236
/**
237
+ * Get customer's default shipping address
238
+ *
235
239
* @return int|null
236
240
*/
237
241
public function getDefaultShipping ()
Original file line number Diff line number Diff line change 12
12
13
13
/**
14
14
* Customer address grid
15
+ *
16
+ * @api
15
17
*/
16
18
class Grid extends \Magento \Framework \View \Element \Template
17
19
{
@@ -169,9 +171,9 @@ public function getCountryByCode($countryCode): string
169
171
return $ country ->loadByCode ($ countryCode )->getName ();
170
172
}
171
173
172
-
173
174
/**
174
175
* Get default billing address
176
+ *
175
177
* Return address string if address found and null of not
176
178
*
177
179
* @return int
@@ -184,9 +186,9 @@ private function getDefaultBilling(): int
184
186
return (int )$ customer ->getDefaultBilling ();
185
187
}
186
188
187
-
188
189
/**
189
190
* Get default shipping address
191
+ *
190
192
* Return address string if address found and null of not
191
193
*
192
194
* @return int
@@ -202,7 +204,7 @@ private function getDefaultShipping(): int
202
204
/**
203
205
* Get pager layout
204
206
*
205
- * @return f
207
+ * @return void
206
208
* @throws \Magento\Framework\Exception\LocalizedException
207
209
*/
208
210
private function preparePager (): void
Original file line number Diff line number Diff line change 9
9
10
10
/**
11
11
* Unit tests for \Magento\Customer\Block\Address\Grid class
12
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
12
13
*/
13
14
class GridTest extends \PHPUnit \Framework \TestCase
14
15
{
You can’t perform that action at this time.
0 commit comments