@@ -171,7 +171,7 @@ |
||
171 | 171 | */ |
172 | 172 | protected function setStatus($status) |
173 | 173 | { |
174 | - if (! in_array($status, ['allowed', 'denied'])) { |
|
174 | + if (!in_array($status, ['allowed', 'denied'])) { |
|
175 | 175 | throw new \RuntimeException('Invalid message status supplied!'); |
176 | 176 | } |
177 | 177 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $this->beforeSendPerformed($message); |
37 | 37 | |
38 | 38 | // Deny email delivery if environment is not allowed in the config |
39 | - if (! in_array($this->app->environment(), config('mailman.delivery.environments'))) { |
|
39 | + if (!in_array($this->app->environment(), config('mailman.delivery.environments'))) { |
|
40 | 40 | $mailmanMessage->deny(); |
41 | 41 | |
42 | 42 | $recipients = array_keys($mailmanMessage->getTo()); |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Swift_Mailer; |
6 | 6 | use Swift_Transport; |
7 | -use Swift_Mime_Message; |
|
8 | 7 | use Illuminate\Foundation\Application; |
9 | 8 | use Illuminate\Mail\Transport\Transport; |
10 | 9 | use Qodeboy\Mailman\Message\MailmanMimeMessage; |
@@ -141,13 +141,13 @@ |
||
141 | 141 | protected function prepareStorage(MailmanSwiftMessageAdapter $message) |
142 | 142 | { |
143 | 143 | $messageLogStorageDirectory = storage_path($this->storagePath); |
144 | - if (! $this->fileSystem->exists($messageLogStorageDirectory)) { |
|
144 | + if (!$this->fileSystem->exists($messageLogStorageDirectory)) { |
|
145 | 145 | $this->fileSystem->makeDirectory($messageLogStorageDirectory); |
146 | 146 | $this->fileSystem->put($messageLogStorageDirectory.'/.gitignore', "*\n!.gitignore"); |
147 | 147 | } |
148 | 148 | |
149 | 149 | $messageLogDirectory = $this->getMessageLogDirectoryPath($message); |
150 | - if (! $this->fileSystem->exists($messageLogDirectory)) { |
|
150 | + if (!$this->fileSystem->exists($messageLogDirectory)) { |
|
151 | 151 | $this->fileSystem->makeDirectory($messageLogDirectory); |
152 | 152 | } |
153 | 153 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create(config('mailman.storage.database.table'), function (Blueprint $table) { |
|
15 | + Schema::create(config('mailman.storage.database.table'), function(Blueprint $table) { |
|
16 | 16 | $table->increments('id')->unsigned(); |
17 | 17 | |
18 | 18 | $table->string('message_id', 512); |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | public function boot() |
19 | 19 | { |
20 | 20 | $this->publishes([ |
21 | - __DIR__.'/../config/mailman.php' => config_path('mailman.php'), |
|
21 | + __DIR__.'/../config/mailman.php' => config_path('mailman.php'), |
|
22 | 22 | ]); |
23 | 23 | |
24 | 24 | $this->publishes([ |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | parent::register(); |
37 | 37 | |
38 | 38 | $this->mergeConfigFrom( |
39 | - __DIR__.'/../config/mailman.php', 'mailman' |
|
39 | + __DIR__.'/../config/mailman.php', 'mailman' |
|
40 | 40 | ); |
41 | 41 | } |
42 | 42 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | $this->app->singleton('swift.mailer', function ($app) { |
91 | 91 | return new Swift_Mailer( |
92 | - new MailmanTransport($app) |
|
92 | + new MailmanTransport($app) |
|
93 | 93 | ); |
94 | 94 | }); |
95 | 95 | } |
@@ -60,10 +60,10 @@ discard block |
||
60 | 60 | */ |
61 | 61 | public function registerMailmanLogger() |
62 | 62 | { |
63 | - $this->app->singleton('mailman.logger', function ($app) { |
|
63 | + $this->app->singleton('mailman.logger', function($app) { |
|
64 | 64 | $storageAdapter = $app['config']['mailman']['log']['storage']; |
65 | 65 | |
66 | - if (! in_array($storageAdapter, ['database', 'filesystem'])) { |
|
66 | + if (!in_array($storageAdapter, ['database', 'filesystem'])) { |
|
67 | 67 | throw new \RuntimeException("Invalid log storage adapter was supplied! Adapter \"{$storageAdapter}\" is not supported!"); |
68 | 68 | } |
69 | 69 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | { |
88 | 88 | $this->registerSwiftTransport(); |
89 | 89 | |
90 | - $this->app->singleton('swift.mailer', function ($app) { |
|
90 | + $this->app->singleton('swift.mailer', function($app) { |
|
91 | 91 | return new Swift_Mailer( |
92 | 92 | new MailmanTransport($app) |
93 | 93 | ); |