File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -214,18 +214,18 @@ protected function _getReplacements()
214
214
*/
215
215
protected function _getAccessList ()
216
216
{
217
- $ result = '' ;
218
- $ tpl = " \"%s \"; " ;
217
+ $ tpl = ' "%s"; ' ;
219
218
$ accessList = $ this ->_scopeConfig ->getValue (self ::XML_VARNISH_PAGECACHE_ACCESS_LIST );
220
219
if (!empty ($ accessList )) {
221
- $ result = [];
220
+ $ ipsList = [];
222
221
$ ips = explode (', ' , $ accessList );
223
222
foreach ($ ips as $ ip ) {
224
- $ result [] = sprintf ($ tpl , trim ($ ip ));
223
+ $ ipsList [] = sprintf ($ tpl , trim ($ ip ));
225
224
}
226
- return implode ("\n" , $ result );
225
+ return implode ("\n" , $ ipsList );
227
226
}
228
- return $ result ;
227
+
228
+ return '' ;
229
229
}
230
230
231
231
/**
Original file line number Diff line number Diff line change @@ -85,11 +85,9 @@ public function sendCopyTo()
85
85
$ copyTo = $ this ->identityContainer ->getEmailCopyTo ();
86
86
87
87
if (!empty ($ copyTo ) && $ this ->identityContainer ->getCopyMethod () == 'copy ' ) {
88
+ $ this ->configureEmailTemplate ();
88
89
foreach ($ copyTo as $ email ) {
89
- $ this ->configureEmailTemplate ();
90
-
91
90
$ this ->transportBuilder ->addTo ($ email );
92
-
93
91
$ transport = $ this ->transportBuilder ->getTransport ();
94
92
$ transport ->sendMessage ();
95
93
}
You can’t perform that action at this time.
0 commit comments