@@ -156,7 +156,7 @@ protected function respondWithPart($email, $partType)
156156
157157 $ response = $ this ->response ->withType ($ partType );
158158 if ($ partType === 'text ' ) {
159- $ part = '<pre> ' . (string )$ part . " </pre> " ;
159+ $ part = '<pre> ' . (string )$ part . ' </pre> ' ;
160160 }
161161 $ response = $ response ->withStringBody ($ part );
162162
@@ -199,8 +199,8 @@ protected function getMailPreviewClasses()
199199 }
200200 })
201201 ->unfold (function ($ path , $ plugin ) {
202- foreach (glob ($ path . " *Preview.php " ) as $ file ) {
203- $ base = str_replace (" .php " , "" , basename ($ file ));
202+ foreach (glob ($ path . ' *Preview.php ' ) as $ file ) {
203+ $ base = str_replace (' .php ' , '' , basename ($ file ));
204204 $ class = App::className ($ plugin . $ base , 'Mailer/Preview ' );
205205 if ($ class ) {
206206 yield ['plugin ' => trim ($ plugin , '. ' ), 'class ' => new $ class ()];
@@ -266,7 +266,7 @@ protected function findPreview($previewName, $emailName, $plugin = '')
266266 $ plugin = "$ plugin. " ;
267267 }
268268
269- $ realClass = App::className ($ plugin . $ previewName , " Mailer/Preview " );
269+ $ realClass = App::className ($ plugin . $ previewName , ' Mailer/Preview ' );
270270 if (!$ realClass ) {
271271 throw new NotFoundException ("Mailer preview $ {previewName} not found " );
272272 }
@@ -276,7 +276,7 @@ protected function findPreview($previewName, $emailName, $plugin = '')
276276 if (!$ email ) {
277277 throw new NotFoundException (__d (
278278 'debug_kit ' ,
279- " Mailer preview {0}::{1} not found " ,
279+ ' Mailer preview {0}::{1} not found ' ,
280280 $ previewName ,
281281 $ emailName
282282 ));
0 commit comments