Passed
Branch master (ae98e8)
by Chubarov
04:40
created
src/Models/Email.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 class Email extends Model
8 8
 {
9
-    protected $fillable = ['theme', 'text'];
9
+    protected $fillable = [ 'theme', 'text' ];
10 10
 
11 11
     public function users()
12 12
     {
Please login to merge, or discard this patch.
src/Models/EmailUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,5 +7,5 @@
 block discarded – undo
7 7
 class EmailUser extends Model
8 8
 {
9 9
     protected $table = 'email_user';
10
-    protected $fillable = ['user_id', 'email_id'];
10
+    protected $fillable = [ 'user_id', 'email_id' ];
11 11
 }
Please login to merge, or discard this patch.
src/Models/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 
7 7
 class User extends Model
8 8
 {
9
-    protected $fillable = ['name', 'email', 'password'];
9
+    protected $fillable = [ 'name', 'email', 'password' ];
10 10
 }
Please login to merge, or discard this patch.
src/Console/SeederCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 
38 38
         foreach ($this->seeds as $seed) {
39 39
             if (!class_exists($seed)) {
40
-                require_once $this->seedersPath . $seed .'.php';
40
+                require_once $this->seedersPath.$seed.'.php';
41 41
             }
42 42
             (new $seed())->run();
43 43
         }
Please login to merge, or discard this patch.
src/Modes/OneToAll.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function postEmail(SheduleEmail $tasks) : void
20 20
     {
21
-         Mail::raw($tasks->email->text, function ($message) use ($tasks) {
21
+            Mail::raw($tasks->email->text, function ($message) use ($tasks) {
22 22
             $message->subject($tasks->email->theme);
23 23
             $message->from(config('mail.from.address'));
24 24
             $message->to(config('mail.from.address'));
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
             $tasks->email->users->each(function ($value) use ($message) {
27 27
                 $message->bcc($value->email);
28 28
             });
29
-         });
29
+            });
30 30
 
31 31
         // if to reached the sender
32 32
         if (empty(Mail::failures())) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@
 block discarded – undo
18 18
      */
19 19
     public function postEmail(SheduleEmail $tasks) : void
20 20
     {
21
-         Mail::raw($tasks->email->text, function ($message) use ($tasks) {
21
+         Mail::raw($tasks->email->text, function($message) use ($tasks) {
22 22
             $message->subject($tasks->email->theme);
23 23
             $message->from(config('mail.from.address'));
24 24
             $message->to(config('mail.from.address'));
25 25
 
26
-            $tasks->email->users->each(function ($value) use ($message) {
26
+            $tasks->email->users->each(function($value) use ($message) {
27 27
                 $message->bcc($value->email);
28 28
             });
29 29
          });
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 
4 4
 use Illuminate\Support\Facades\Route;
5 5
 
6
-Route::prefix('api')->group(function () {
6
+Route::prefix('api')->group(function() {
7 7
     Route::get('dashboard.table.column', 'DashboardController@tableColumn');
8 8
     Route::get('dashboard.table.formColumn', 'DashboardController@formColumn');
9 9
     Route::get('dashboard.table.tasks', 'DashboardController@index');
Please login to merge, or discard this patch.
resources/lang/ru/dashboard.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     'email' => 'Email пользователя',
22 22
     'name' => 'Имя пользователя',
23 23
 
24
-       // transformer
24
+        // transformer
25 25
     'status_action.1' => 'Сделано',
26 26
     'status_action.0' => 'В процессе',
27 27
 
Please login to merge, or discard this patch.
database/migrations/2017_09_13_154809_create_emails_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function up()
18 18
     {
19
-        Schema::create('emails', function (Blueprint $table) {
19
+        Schema::create('emails', function(Blueprint $table) {
20 20
             $table->increments('id');
21 21
             $table->string('theme');
22 22
             $table->text('text');
Please login to merge, or discard this patch.
database/migrations/2017_09_13_160428_create_shedule_emails_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('shedule_emails', function (Blueprint $table) {
16
+        Schema::create('shedule_emails', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->timestamp('date');
19 19
             $table->integer('email_id')->unsigned();
Please login to merge, or discard this patch.