@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * |
| 75 | 75 | * @return string |
| 76 | 76 | */ |
| 77 | - public function getType() : ?string |
|
| 77 | + public function getType() : ? string |
|
| 78 | 78 | { |
| 79 | 79 | return $this->type; |
| 80 | 80 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | * |
| 103 | 103 | * @return string |
| 104 | 104 | */ |
| 105 | - public function getResponseUrl() : ?string |
|
| 105 | + public function getResponseUrl() : ? string |
|
| 106 | 106 | { |
| 107 | 107 | return $this->url; |
| 108 | 108 | } |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | if (isset($attributes['attachments'])) { |
| 108 | - foreach($attributes['attachments'] as $attachment) { |
|
| 108 | + foreach ($attributes['attachments'] as $attachment) { |
|
| 109 | 109 | $this->attach($attachment); |
| 110 | 110 | } |
| 111 | 111 | } |
@@ -147,7 +147,7 @@ |
||
| 147 | 147 | $message['endpoint'] = $message['endpoint'] ?? $this->endpoint; |
| 148 | 148 | $message['username'] = $message['username'] ?? $this->username; |
| 149 | 149 | $message['parse'] = $message['parse'] ?? $this->parse; |
| 150 | - $message['link_names'] = $this->linkNames ? 1 : 0; |
|
| 150 | + $message['link_names'] = $this->linkNames ? 1 : 0; |
|
| 151 | 151 | $message['unfurl_links'] = $this->unfurlLinks; |
| 152 | 152 | $message['unfurl_media'] = $this->unfurlMedia; |
| 153 | 153 | $message['mrkdwn'] = $this->allowMarkdown; |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | public function register() |
| 23 | 23 | { |
| 24 | - $this->app->singleton(TransportManager::class, function (Application $app) { |
|
| 24 | + $this->app->singleton(TransportManager::class, function(Application $app) { |
|
| 25 | 25 | return new TransportManager($app); |
| 26 | 26 | }); |
| 27 | 27 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | protected function registerMailer() |
| 39 | 39 | { |
| 40 | - $this->app->singleton('mailer', function (Application $app) { |
|
| 40 | + $this->app->singleton('mailer', function(Application $app) { |
|
| 41 | 41 | |
| 42 | 42 | $mailer = new transports\mail\Mailer($app->make('mailer.transports')->driver(), $app->make('view')); |
| 43 | 43 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | // We are going to need to instantiate the Mailer with a proper Driver. |
| 62 | 62 | // @todo Drop the DriverManager in favour of handling the logic in this very Service Provider itself? |
| 63 | - $this->app->singleton('mailer.transports', function (Application $app) { |
|
| 63 | + $this->app->singleton('mailer.transports', function(Application $app) { |
|
| 64 | 64 | return (new transports\mail\DriverManager($app)); |
| 65 | 65 | }); |
| 66 | 66 | } |