Passed
Branch master (e0cb00)
by Chubarov
11:53
created
src/Parser.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 {
14 14
     public static function parse() : void
15 15
     {
16
-         SheduleEmail::whereRaw('CAST(date AS Datetime) <= ? AND status_action = ?', [Carbon::now(), 0])->get()
16
+            SheduleEmail::whereRaw('CAST(date AS Datetime) <= ? AND status_action = ?', [Carbon::now(), 0])->get()
17 17
                     ->each(function ($value) {
18 18
                         $mode = FactoryMode::get($value->mode_id);
19 19
                         $mode->postEmail($value);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
 {
14 14
     public static function parse() : void
15 15
     {
16
-         SheduleEmail::whereRaw('CAST(date AS Datetime) <= ? AND status_action = ?', [Carbon::now(), 0])->get()
17
-                    ->each(function ($value) {
16
+         SheduleEmail::whereRaw('CAST(date AS Datetime) <= ? AND status_action = ?', [ Carbon::now(), 0 ])->get()
17
+                    ->each(function($value) {
18 18
                         $mode = FactoryMode::get($value->mode_id);
19 19
                         $mode->postEmail($value);
20 20
                         unset($mode);
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.
database/migrations/2017_09_13_160049_create_mode_post_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('mode_post_emails', function (Blueprint $table) {
16
+        Schema::create('mode_post_emails', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('name');
19 19
             $table->text('description');
Please login to merge, or discard this patch.
database/migrations/2017_09_13_155313_create_email_user_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('email_user', function (Blueprint $table) {
16
+        Schema::create('email_user', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->integer('user_id')->unsigned();
19 19
             $table->foreign('user_id')->references('id')->on('users');
Please login to merge, or discard this patch.
database/factories/EmailUserFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 use Faker\Generator as Faker;
3 3
 
4
-$factory->define(agoalofalife\postman\Models\EmailUser::class, function (Faker $faker) {
4
+$factory->define(agoalofalife\postman\Models\EmailUser::class, function(Faker $faker) {
5 5
     return [
6 6
         'email_id' => factory(agoalofalife\postman\Models\Email::class)->create()->id,
7 7
         'user_id' => factory(agoalofalife\postman\Models\User::class)->create()->id,
Please login to merge, or discard this patch.
database/factories/ModePostFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 use Faker\Generator as Faker;
3 3
 
4
-$factory->define(agoalofalife\postman\Models\ModePostEmail::class, function (Faker $faker) {
4
+$factory->define(agoalofalife\postman\Models\ModePostEmail::class, function(Faker $faker) {
5 5
     return [
6 6
         'name' => $faker->name,
7 7
         'description' => $faker->text,
Please login to merge, or discard this patch.