File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -86,10 +86,7 @@ private function getPayPalSdkUrl()
86
86
*/
87
87
private function getStyleAttributesConfig ()
88
88
{
89
- return array_replace (
90
- ['data-pp-style-logo-position ' => 'left ' ],
91
- $ this ->payLaterConfig ->getSectionConfig ($ this ->placement , PayLaterConfig::CONFIG_KEY_STYLES )
92
- );
89
+ return $ this ->payLaterConfig ->getSectionConfig ($ this ->placement , PayLaterConfig::CONFIG_KEY_STYLES );
93
90
}
94
91
95
92
/**
@@ -101,7 +98,7 @@ private function isEnabled()
101
98
{
102
99
$ enabled = $ this ->payLaterConfig ->isEnabled ($ this ->placement );
103
100
return $ enabled &&
104
- $ this ->payLaterConfig ->getSectionConfig ($ this ->placement , PayLaterConfig::CONFIG_KEY_POSITION ) ==
101
+ $ this ->payLaterConfig ->getSectionConfig ($ this ->placement , PayLaterConfig::CONFIG_KEY_POSITION ) ===
105
102
$ this ->position ;
106
103
}
107
104
}
Original file line number Diff line number Diff line change @@ -59,9 +59,9 @@ public function isEnabled(string $placement)
59
59
*
60
60
* @param string $section
61
61
* @param string $key
62
- * @return array|mixed
62
+ * @return array|string|int
63
63
*/
64
- public function getSectionConfig ($ section , $ key )
64
+ public function getSectionConfig (string $ section , string $ key )
65
65
{
66
66
$ configMock = [
67
67
'product ' => [
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ public function testGetConfig(
94
94
string $ intent ,
95
95
?string $ disallowedFunding ,
96
96
bool $ isPaypalGuestCheckoutEnabled ,
97
- array $ expected = []
97
+ array $ expected
98
98
) {
99
99
$ this ->localeResolverMock ->method ('getLocale ' )->willReturn ($ locale );
100
100
$ this ->configMock ->method ('getValue ' )->willReturnMap (
You can’t perform that action at this time.
0 commit comments