Completed
Pull Request — master (#26)
by Xinjiang
04:15
created
config/session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
     |
110 110
     */
111 111
 
112
-    'lottery' => [2, 100],
112
+    'lottery' => [ 2, 100 ],
113 113
 
114 114
     /*
115 115
     |--------------------------------------------------------------------------
Please login to merge, or discard this patch.
config/database.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,18 +2,18 @@
 block discarded – undo
2 2
 if (env("DATABASE_URL") && env('DB_CONNECTION', 'pgsql_heroku')) {
3 3
     $pgsql_heroku = [
4 4
         'driver' => 'pgsql',
5
-        'host' => parse_url(getenv("DATABASE_URL"))["host"],
6
-        'port' => parse_url(getenv("DATABASE_URL"))["port"],
7
-        'database' => substr(parse_url(getenv("DATABASE_URL"))["path"], 1),
8
-        'username' => parse_url(getenv("DATABASE_URL"))["user"],
9
-        'password' => parse_url(getenv("DATABASE_URL"))["pass"],
5
+        'host' => parse_url(getenv("DATABASE_URL"))[ "host" ],
6
+        'port' => parse_url(getenv("DATABASE_URL"))[ "port" ],
7
+        'database' => substr(parse_url(getenv("DATABASE_URL"))[ "path" ], 1),
8
+        'username' => parse_url(getenv("DATABASE_URL"))[ "user" ],
9
+        'password' => parse_url(getenv("DATABASE_URL"))[ "pass" ],
10 10
         'charset' => 'utf8',
11 11
         'prefix' => '',
12 12
         'schema' => 'public',
13 13
         'sslmode' => 'prefer',
14 14
     ];
15 15
 } else {
16
-    $pgsql_heroku = [];
16
+    $pgsql_heroku = [ ];
17 17
 }
18 18
 
19 19
 return [
Please login to merge, or discard this patch.
app/Models/Token.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     {
35 35
         parent::boot();
36 36
 
37
-        static::creating(function ($model) {
37
+        static::creating(function($model) {
38 38
             $model->{$model->getKeyName()} = Uuid::uuid4();
39 39
         });
40 40
     }
Please login to merge, or discard this patch.
database/migrations/2016_09_25_145250_create_queue_table.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Illuminate\Support\Facades\Schema;
4
-use Illuminate\Database\Schema\Blueprint;
5 3
 use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6 6
 
7 7
 class CreateTokensTable extends Migration
8 8
 {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('queue', function (Blueprint $table) {
16
+        Schema::create('queue', function(Blueprint $table) {
17 17
             $table->bigIncrements('id');
18 18
             $table->string('queue');
19 19
             $table->longText('payload');
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
             $table->unsignedInteger('reserved_at')->nullable();
22 22
             $table->unsignedInteger('available_at');
23 23
             $table->unsignedInteger('created_at');
24
-            $table->index(['queue', 'reserved_at']);
24
+            $table->index([ 'queue', 'reserved_at' ]);
25 25
         });
26 26
     }
27 27
 
Please login to merge, or discard this patch.
database/migrations/2016_09_25_145354_create_failed_queue_table.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Illuminate\Support\Facades\Schema;
4
-use Illuminate\Database\Schema\Blueprint;
5 3
 use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6 6
 
7 7
 class CreateTokensTable extends Migration
8 8
 {
Please login to merge, or discard this 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('failed_queue', function (Blueprint $table) {
16
+        Schema::create('failed_queue', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->text('connection');
19 19
             $table->text('queue');
Please login to merge, or discard this patch.
database/seeds/TestingDatabaseSeeder.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 use Faker\Factory as Faker;
4 4
 use Illuminate\Database\Seeder;
5
-use JobApis\JobsToMail\Models\User;
6 5
 use JobApis\JobsToMail\Models\Token;
6
+use JobApis\JobsToMail\Models\User;
7 7
 
8 8
 class TestingDatabaseSeeder extends Seeder
9 9
 {
Please login to merge, or discard this patch.
database/factories/TokenFactory.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
 */
8 8
 
9
-$factory->define(\JobApis\JobsToMail\Models\Token::class, function (Faker\Generator $faker) {
9
+$factory->define(\JobApis\JobsToMail\Models\Token::class, function(Faker\Generator $faker) {
10 10
     return [
11 11
         'user_id' => null,
12 12
         'type' => 'confirm',
Please login to merge, or discard this patch.
app/Console/Commands/EmailJobs.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,11 +2,8 @@
 block discarded – undo
2 2
 
3 3
 use Illuminate\Console\Command;
4 4
 use Illuminate\Foundation\Bus\DispatchesJobs;
5
-use JobApis\JobsToMail\Jobs\CollectJobsForUser;
6 5
 use JobApis\JobsToMail\Jobs\SearchAndNotifyUser;
7 6
 use JobApis\JobsToMail\Repositories\Contracts\SearchRepositoryInterface;
8
-use JobApis\JobsToMail\Repositories\SearchRepository;
9
-use JobApis\JobsToMail\Repositories\UserRepository;
10 7
 
11 8
 class EmailJobs extends Command
12 9
 {
Please login to merge, or discard this patch.
app/Repositories/SearchRepository.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
     /**
13 13
      * SearchRepository constructor.
14 14
      *
15
-     * @param Search $model
16 15
      */
17 16
     public function __construct(Search $searches)
18 17
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@
 block discarded – undo
27 27
      *
28 28
      * @return Search
29 29
      */
30
-    public function create($userId = null, $data = [])
30
+    public function create($userId = null, $data = [ ])
31 31
     {
32 32
         return $this->searches->create(
33
-            array_merge(['user_id' => $userId], $data)
33
+            array_merge([ 'user_id' => $userId ], $data)
34 34
         );
35 35
     }
36 36
 
Please login to merge, or discard this patch.