@@ -16,7 +16,9 @@ protected function createLaravel6Mailer($app)
1616 // on the mailer. This allows us to resolve mailer classes via containers
1717 // for maximum testability on said classes instead of passing Closures.
1818 $ mailer = new Mailer (
19- $ app ['view ' ], $ app ['swift.mailer ' ], $ app ['events ' ]
19+ $ app ['view ' ],
20+ $ app ['swift.mailer ' ],
21+ $ app ['events ' ]
2022 );
2123
2224 if ($ app ->bound ('queue ' )) {
@@ -45,7 +47,10 @@ protected function createLaravel7Mailer($app)
4547 // on the mailer. This allows us to resolve mailer classes via containers
4648 // for maximum testability on said classes instead of passing Closures.
4749 $ mailer = new Laravel7Mailer (
48- 'smtp ' , $ app ['view ' ], $ swiftMailer , $ app ['events ' ]
50+ 'smtp ' ,
51+ $ app ['view ' ],
52+ $ swiftMailer ,
53+ $ app ['events ' ]
4954 );
5055
5156 if ($ app ->bound ('queue ' )) {
@@ -78,7 +83,10 @@ protected function createLaravel9Mailer($app)
7883 // on the mailer. This allows us to resolve mailer classes via containers
7984 // for maximum testability on said classes instead of passing Closures.
8085 $ mailer = new Laravel7Mailer (
81- 'smtp ' , $ app ['view ' ], $ symfonyTransport , $ app ['events ' ]
86+ 'smtp ' ,
87+ $ app ['view ' ],
88+ $ symfonyTransport ,
89+ $ app ['events ' ]
8290 );
8391
8492 if ($ app ->bound ('queue ' )) {
@@ -105,9 +113,10 @@ protected function getConfig($name = 'smtp')
105113 /**
106114 * Set a global address on the mailer by type.
107115 *
108- * @param \Illuminate\Mail\Mailer $mailer
109- * @param array $config
110- * @param string $type
116+ * @param \Illuminate\Mail\Mailer $mailer
117+ * @param array $config
118+ * @param string $type
119+ *
111120 * @return void
112121 */
113122 protected function setGlobalAddress ($ mailer , array $ config , $ type )
0 commit comments