@@ -64,7 +64,7 @@ public function __construct(
64
64
* @param string|null $storeId
65
65
* @return bool
66
66
*/
67
- public function isEnabled (string $ storeId = null ): bool
67
+ public function isEnabled (? string $ storeId = null ): bool
68
68
{
69
69
return (bool )$ this ->getConfig (self ::XML_PATH_EXTENSION_ENABLED , $ storeId );
70
70
}
@@ -75,7 +75,7 @@ public function isEnabled(string $storeId = null): bool
75
75
* @param string|null $storeId
76
76
* @return bool
77
77
*/
78
- public function isDeferredEnabled (string $ storeId = null ): bool
78
+ public function isDeferredEnabled (? string $ storeId = null ): bool
79
79
{
80
80
return (bool )$ this ->getConfig (self ::XML_PATH_DEFERRED_ENABLED , $ storeId );
81
81
}
@@ -86,7 +86,7 @@ public function isDeferredEnabled(string $storeId = null): bool
86
86
* @param string|null $storeId
87
87
* @return string
88
88
*/
89
- public function getDisallowedPages (string $ storeId = null ): string
89
+ public function getDisallowedPages (? string $ storeId = null ): string
90
90
{
91
91
return (string )$ this ->getConfig (self ::XML_PATH_DEFERRED_DISALLOWED_PAGES , $ storeId );
92
92
}
@@ -97,7 +97,7 @@ public function getDisallowedPages(string $storeId = null): string
97
97
* @param string|null $storeId
98
98
* @return string
99
99
*/
100
- public function getIgnoreJavaScript (string $ storeId = null ): string
100
+ public function getIgnoreJavaScript (? string $ storeId = null ): string
101
101
{
102
102
return (string )$ this ->getConfig (self ::XML_PATH_DEFERRED_IGNORE_JAVASCRIPT , $ storeId );
103
103
}
@@ -108,7 +108,7 @@ public function getIgnoreJavaScript(string $storeId = null): string
108
108
* @param string|null $storeId
109
109
* @return bool
110
110
*/
111
- public function isBundlingEnabled (string $ storeId = null ): bool
111
+ public function isBundlingEnabled (? string $ storeId = null ): bool
112
112
{
113
113
return (bool )$ this ->getConfig (MagentoConfig::XML_PATH_JS_BUNDLING , $ storeId );
114
114
}
@@ -137,7 +137,7 @@ public function getIncludedInBundling(): string
137
137
* @param string|null $storeId
138
138
* @return bool
139
139
*/
140
- public function isAmpRequest (string $ storeId = null ): bool
140
+ public function isAmpRequest (? string $ storeId = null ): bool
141
141
{
142
142
return (bool )$ this ->getConfig (self ::XML_PATH_PLUMROCKET_AMP_ENABLED , $ storeId );
143
143
}
@@ -149,7 +149,7 @@ public function isAmpRequest(string $storeId = null): bool
149
149
* @param string|null $storeId
150
150
* @return mixed
151
151
*/
152
- public function getConfig (string $ path , string $ storeId = null )
152
+ public function getConfig (string $ path , ? string $ storeId = null )
153
153
{
154
154
return $ this ->scopeConfig ->getValue ($ path , ScopeInterface::SCOPE_STORE , $ storeId );
155
155
}
0 commit comments