@@ -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 | |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | { |
| 88 | 88 | $this->app['swift.mailer'] = $this->app->share(function ($app) { |
| 89 | 89 | return new Swift_Mailer( |
| 90 | - new MailmanTransport($app) |
|
| 90 | + new MailmanTransport($app) |
|
| 91 | 91 | ); |
| 92 | 92 | }); |
| 93 | 93 | } |
@@ -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 | |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | */ |
| 86 | 86 | protected function registerMailmanSwiftMailer() |
| 87 | 87 | { |
| 88 | - $this->app['swift.mailer'] = $this->app->share(function ($app) { |
|
| 88 | + $this->app['swift.mailer'] = $this->app->share(function($app) { |
|
| 89 | 89 | return new Swift_Mailer( |
| 90 | 90 | new MailmanTransport($app) |
| 91 | 91 | ); |
@@ -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()); |
@@ -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); |