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 @@ -199,18 +199,18 @@ protected function _getReplacements()
199
199
*/
200
200
protected function _getAccessList ()
201
201
{
202
- $ result = '' ;
203
- $ tpl = " \"%s \"; " ;
202
+ $ tpl = ' "%s"; ' ;
204
203
$ accessList = $ this ->_scopeConfig ->getValue (self ::XML_VARNISH_PAGECACHE_ACCESS_LIST );
205
204
if (!empty ($ accessList )) {
206
- $ result = [];
205
+ $ ipsList = [];
207
206
$ ips = explode (', ' , $ accessList );
208
207
foreach ($ ips as $ ip ) {
209
- $ result [] = sprintf ($ tpl , trim ($ ip ));
208
+ $ ipsList [] = sprintf ($ tpl , trim ($ ip ));
210
209
}
211
- return implode ("\n" , $ result );
210
+ return implode (' \n ' , $ ipsList );
212
211
}
213
- return $ result ;
212
+
213
+ return '' ;
214
214
}
215
215
216
216
/**
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