Skip to content

Commit 3b113fc

Browse files
committed
MC-41597: Base UI component for new messages
- fix static tests
1 parent ad8e3c3 commit 3b113fc

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

app/code/Magento/Paypal/Block/Bml/Paylater.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Paylater extends Template
1919
/**
2020
* @var \Magento\Paypal\Model\Config
2121
*/
22-
protected $_paypalConfig;
22+
private $paypalConfig;
2323

2424
/**
2525
* @param Template\Context $context
@@ -32,7 +32,7 @@ public function __construct(
3232
array $data = []
3333
)
3434
{
35-
$this->_paypalConfig = $paypalConfig;
35+
$this->paypalConfig = $paypalConfig;
3636
parent::__construct($context, $data);
3737
}
3838

app/code/Magento/Paypal/view/frontend/web/js/view/paylater.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ define([
1313
paypalSdk
1414
) {
1515
'use strict';
16+
1617
return Component.extend({
18+
1719
defaults: {
1820
template: 'Magento_Paypal/paylater',
19-
sdkUrl: "",
21+
sdkUrl: '',
2022
attributes: {
2123
'data-pp-amount': '',
2224
'data-pp-style-logo-position': 'right'
23-
},
25+
}
2426
},
2527

2628
/**
@@ -31,27 +33,28 @@ define([
3133
initialize: function () {
3234
this._super();
3335
this.loadPayPalSdk(this.sdkUrl);
36+
3437
return this;
3538
},
3639

3740
/**
3841
* Get attribute value from configuration
3942
*
40-
* @param attributeName
43+
* @param {String} attributeName
4144
* @returns {*|null}
4245
*/
4346
getAttribute: function (attributeName) {
44-
return typeof (this.attributes[attributeName]) !== 'undefined' ?
47+
return typeof this.attributes[attributeName] !== 'undefined' ?
4548
this.attributes[attributeName] : null;
4649
},
4750

4851
/**
4952
* Load PP SDK with preconfigured options
5053
*
51-
* @param sdkUrl
54+
* @param {String} sdkUrl
5255
*/
5356
loadPayPalSdk: function (sdkUrl) {
5457
paypalSdk(sdkUrl);
55-
},
58+
}
5659
});
5760
});

0 commit comments

Comments
 (0)