File tree Expand file tree Collapse file tree 14 files changed +34
-18
lines changed
Model/Checkout/Type/Multishipping Expand file tree Collapse file tree 14 files changed +34
-18
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ public function __construct(
31
31
}
32
32
33
33
/**
34
+ * Retrieve available checkout steps
35
+ *
34
36
* @return array
35
37
*/
36
38
public function getSteps ()
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ public function __construct(
30
30
}
31
31
32
32
/**
33
+ * Get Order Ids
34
+ *
33
35
* @return array|bool|string
34
36
*/
35
37
public function getOrderIds ()
@@ -42,6 +44,8 @@ public function getOrderIds()
42
44
}
43
45
44
46
/**
47
+ * Get order Url
48
+ *
45
49
* @param int $orderId
46
50
* @return string
47
51
*/
@@ -51,6 +55,8 @@ public function getViewOrderUrl($orderId)
51
55
}
52
56
53
57
/**
58
+ * Get continue Url
59
+ *
54
60
* @return string
55
61
*/
56
62
public function getContinueUrl ()
Original file line number Diff line number Diff line change 13
13
*/
14
14
class State extends \Magento \Framework \DataObject
15
15
{
16
- const STEP_SELECT_ADDRESSES = 'multishipping_addresses ' ;
16
+ public const STEP_SELECT_ADDRESSES = 'multishipping_addresses ' ;
17
17
18
- const STEP_SHIPPING = 'multishipping_shipping ' ;
18
+ public const STEP_SHIPPING = 'multishipping_shipping ' ;
19
19
20
- const STEP_BILLING = 'multishipping_billing ' ;
20
+ public const STEP_BILLING = 'multishipping_billing ' ;
21
21
22
- const STEP_OVERVIEW = 'multishipping_overview ' ;
22
+ public const STEP_OVERVIEW = 'multishipping_overview ' ;
23
23
24
- const STEP_SUCCESS = 'multishipping_success ' ;
24
+ public const STEP_SUCCESS = 'multishipping_success ' ;
25
25
26
- const STEP_RESULTS = 'multishipping_results ' ;
26
+ public const STEP_RESULTS = 'multishipping_results ' ;
27
27
28
28
/**
29
29
* Allow steps array
@@ -105,6 +105,8 @@ public function getActiveStep()
105
105
}
106
106
107
107
/**
108
+ * Setup Checkout step
109
+ *
108
110
* @param string $step
109
111
* @return $this
110
112
*/
@@ -169,7 +171,9 @@ public function unsCompleteStep($step)
169
171
return $ this ;
170
172
}
171
173
174
+ // phpcs:disable
172
175
/**
176
+ *
173
177
* @return bool
174
178
*/
175
179
public function canSelectAddresses ()
@@ -197,6 +201,7 @@ public function canSuccess()
197
201
{
198
202
}
199
203
204
+ // phpcs:enable
200
205
/**
201
206
* Retrieve checkout session
202
207
*
Original file line number Diff line number Diff line change 23
23
class Subscriber extends Template
24
24
{
25
25
/**
26
- * Queue collection
26
+ * Queue collection property
27
27
*
28
28
* @var Collection
29
29
*/
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ class Template extends \Magento\Backend\Block\Template
17
17
protected $ _template = 'Magento_Newsletter::template/list.phtml ' ;
18
18
19
19
/**
20
+ * Prepare the layout
21
+ *
20
22
* @return $this
21
23
*/
22
24
protected function _prepareLayout ()
Original file line number Diff line number Diff line change 10
10
namespace Magento \Newsletter \Block \Adminhtml \Template \Grid \Renderer ;
11
11
12
12
/**
13
- * Class Sender
13
+ * Class Newsletter Grid Renderer Sender
14
14
*/
15
15
class Sender extends \Magento \Backend \Block \Widget \Grid \Column \Renderer \AbstractRenderer
16
16
{
@@ -32,7 +32,7 @@ public function render(\Magento\Framework\DataObject $row)
32
32
if ($ str == '' ) {
33
33
$ str .= '--- ' ;
34
34
}
35
-
35
+
36
36
return $ str ;
37
37
}
38
38
}
Original file line number Diff line number Diff line change 16
16
class Subscribe extends \Magento \Framework \View \Element \Template
17
17
{
18
18
/**
19
- * Retrieve form action url and set "secure" param to avoid confirm
20
- * message when we submit form from secure page to unsecure
19
+ * Get form action url & set secure param to avoid confirm message when we submit form from secure page to unsecure
21
20
*
22
21
* @return string
23
22
*/
Original file line number Diff line number Diff line change @@ -16,5 +16,5 @@ abstract class Queue extends \Magento\Backend\App\Action
16
16
*
17
17
* @see _isAllowed()
18
18
*/
19
- const ADMIN_RESOURCE = 'Magento_Newsletter::queue ' ;
19
+ public const ADMIN_RESOURCE = 'Magento_Newsletter::queue ' ;
20
20
}
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ abstract class Template extends \Magento\Backend\App\Action
15
15
*
16
16
* @see _isAllowed()
17
17
*/
18
- const ADMIN_RESOURCE = 'Magento_Newsletter::template ' ;
18
+ public const ADMIN_RESOURCE = 'Magento_Newsletter::template ' ;
19
19
}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class Problem extends \Magento\Framework\Model\AbstractModel
30
30
protected $ _subscriber = null ;
31
31
32
32
/**
33
- * Subscriber factory
33
+ * Subscriber factory variable
34
34
*
35
35
* @var \Magento\Newsletter\Model\SubscriberFactory
36
36
*/
You can’t perform that action at this time.
0 commit comments