Completed
Push — master ( df0683...b52746 )
by Karl
06:54
created
database/migrations/2016_09_25_145250_create_queue_table.php 1 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 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('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/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/Repositories/SearchRepository.php 1 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.
database/factories/SearchFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,13 +6,13 @@
 block discarded – undo
6 6
 |--------------------------------------------------------------------------
7 7
 */
8 8
 
9
-$factory->define(\JobApis\JobsToMail\Models\Search::class, function (Faker\Generator $faker) {
9
+$factory->define(\JobApis\JobsToMail\Models\Search::class, function(Faker\Generator $faker) {
10 10
     return [
11 11
         'keyword' => $faker->word(),
12 12
         'location' => $faker->word().', '.$this->faker->word(),
13 13
     ];
14 14
 });
15
-$factory->state(\JobApis\JobsToMail\Models\Search::class, 'deleted', function (Faker\Generator $faker) {
15
+$factory->state(\JobApis\JobsToMail\Models\Search::class, 'deleted', function(Faker\Generator $faker) {
16 16
     return [
17 17
         'deleted_at' => $faker->dateTimeThisYear(),
18 18
     ];
Please login to merge, or discard this patch.
database/migrations/2016_10_14_215937_create_searches_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('searches', function (Blueprint $table) {
16
+        Schema::create('searches', function(Blueprint $table) {
17 17
             $table->uuid('id');
18 18
             $table->primary('id');
19 19
             $table->uuid('user_id')->unsigned();
Please login to merge, or discard this patch.
database/migrations/2016_10_16_214801_create_notifications_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('notifications', function (Blueprint $table) {
15
+        Schema::create('notifications', function(Blueprint $table) {
16 16
             $table->uuid('id')->primary();
17 17
             $table->string('type');
18 18
             $table->uuid('notifiable_id');
Please login to merge, or discard this patch.
app/Models/Search.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     {
34 34
         parent::boot();
35 35
 
36
-        static::creating(function ($model) {
36
+        static::creating(function($model) {
37 37
             $model->{$model->getKeyName()} = Uuid::uuid4();
38 38
         });
39 39
     }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function scopeActive($query)
57 57
     {
58
-        return $query->whereHas('user', function ($query) {
58
+        return $query->whereHas('user', function($query) {
59 59
             return $query->confirmed();
60 60
         });
61 61
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function scopeWhereUserEmail($query, $email = null)
69 69
     {
70
-        return $query->whereHas('user', function ($query) use ($email) {
70
+        return $query->whereHas('user', function($query) use ($email) {
71 71
             return $query->where('email', $email);
72 72
         });
73 73
     }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function scopeWhereUserId($query, $id = null)
81 81
     {
82
-        return $query->whereHas('user', function ($query) use ($id) {
82
+        return $query->whereHas('user', function($query) use ($id) {
83 83
             return $query->where('id', $id);
84 84
         });
85 85
     }
Please login to merge, or discard this patch.
database/migrations/2016_10_22_134445_recruiters.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('recruiters', function (Blueprint $table) {
16
+        Schema::create('recruiters', function(Blueprint $table) {
17 17
             $table->uuid('id')->primary();
18 18
             $table->string('name')->unique();
19 19
             $table->string('url')->nullable();
20 20
             $table->timestamps();
21 21
         });
22 22
 
23
-        Schema::table('searches', function (Blueprint $table) {
23
+        Schema::table('searches', function(Blueprint $table) {
24 24
             $table->boolean('no_recruiters')->default(false);
25 25
         });
26 26
     }
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function down()
34 34
     {
35
-        Schema::table('searches', function (Blueprint $table) {
35
+        Schema::table('searches', function(Blueprint $table) {
36 36
             $table->dropColumn('no_recruiters');
37 37
         });
38 38
 
Please login to merge, or discard this patch.