Completed
Push — master ( 430362...a976e6 )
by Maxime
08:47 queued 06:22
created
src/Distilleries/MailerSaver/MailerSaverServiceProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -19,28 +19,28 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public function boot()
21 21
     {
22
-        $this->loadViewsFrom(__DIR__ . '/../../views', 'mailersaver');
22
+        $this->loadViewsFrom(__DIR__.'/../../views', 'mailersaver');
23 23
 
24 24
         $this->publishes([
25
-            __DIR__ . '/../../config/config.php' => config_path('mailersaver.php'),
25
+            __DIR__.'/../../config/config.php' => config_path('mailersaver.php'),
26 26
         ]);
27 27
 
28 28
         $this->publishes([
29
-            __DIR__ . '/../../views' => base_path('resources/views/vendor/mailersaver'),
29
+            __DIR__.'/../../views' => base_path('resources/views/vendor/mailersaver'),
30 30
         ], 'views');
31 31
 
32 32
         $this->publishes([
33
-            __DIR__ . '/../../models/Email.php' => base_path('app/Email.php'),
33
+            __DIR__.'/../../models/Email.php' => base_path('app/Email.php'),
34 34
         ], 'models');
35 35
 
36 36
 
37 37
         $this->publishes([
38
-            __DIR__ . '/../../database/migrations/' => base_path('/database/migrations')
38
+            __DIR__.'/../../database/migrations/' => base_path('/database/migrations')
39 39
         ], 'migrations');
40 40
 
41 41
 
42 42
         $this->mergeConfigFrom(
43
-            __DIR__ . '/../../config/config.php', 'mailersaver'
43
+            __DIR__.'/../../config/config.php', 'mailersaver'
44 44
         );
45 45
 
46 46
     }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     public function register()
49 49
     {
50 50
 
51
-        $this->app->singleton('mailer', function ($app) {
51
+        $this->app->singleton('mailer', function($app) {
52 52
             $this->registerSwiftMailer();
53 53
 
54 54
             // Once we have create the mailer instance, we will set a container instance
Please login to merge, or discard this patch.
src/Distilleries/MailerSaver/Helpers/Mail.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             $subject = view(
41 41
                 array(
42 42
                     'template'   => $subject_template,
43
-                    'cache_key'  => uniqid() . rand(),
43
+                    'cache_key'  => uniqid().rand(),
44 44
                     'updated_at' => 0
45 45
                 ),
46 46
                 $data
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
 
81 81
         $model = $this->model->initByTemplate($view);
82
-        $template = $model->where('action',$view)->get()->last();
82
+        $template = $model->where('action', $view)->get()->last();
83 83
         $plain = (!empty($template)) ? $template->getPlain() : $plain;
84 84
 
85 85
         if (!empty($template))
Please login to merge, or discard this patch.