Completed
Push — master ( 7bafcc...000aae )
by Karl
04:47
created
database/factories/UserFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 |--------------------------------------------------------------------------
7 7
 */
8 8
 
9
-$factory->define(\JobApis\JobsToMail\Models\User::class, function (Faker\Generator $faker) {
9
+$factory->define(\JobApis\JobsToMail\Models\User::class, function(Faker\Generator $faker) {
10 10
     return [
11 11
         'email' => $faker->safeEmail(),
12 12
         'keyword' => $faker->word(),
@@ -14,12 +14,12 @@  discard block
 block discarded – undo
14 14
         'confirmed_at' => null,
15 15
     ];
16 16
 });
17
-$factory->state(\JobApis\JobsToMail\Models\User::class, 'active', function (Faker\Generator $faker) {
17
+$factory->state(\JobApis\JobsToMail\Models\User::class, 'active', function(Faker\Generator $faker) {
18 18
     return [
19 19
         'confirmed_at' => $faker->dateTimeThisYear(),
20 20
     ];
21 21
 });
22
-$factory->state(\JobApis\JobsToMail\Models\User::class, 'deleted', function (Faker\Generator $faker) {
22
+$factory->state(\JobApis\JobsToMail\Models\User::class, 'deleted', function(Faker\Generator $faker) {
23 23
     return [
24 24
         'deleted_at' => $faker->dateTimeThisYear(),
25 25
     ];
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.
database/migrations/2016_10_14_215937_create_searches_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('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.
app/Jobs/CreateUserAndSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     /**
16 16
      * Create a new job instance.
17 17
      */
18
-    public function __construct($data = [])
18
+    public function __construct($data = [ ])
19 19
     {
20 20
         $this->data = $data;
21 21
     }
Please login to merge, or discard this patch.
app/Repositories/Contracts/UserRepositoryInterface.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@
 block discarded – undo
4 4
 {
5 5
     public function confirm($token = null);
6 6
 
7
-    public function create($data = []);
7
+    public function create($data = [ ]);
8 8
 
9
-    public function firstOrCreate($data = []);
9
+    public function firstOrCreate($data = [ ]);
10 10
 
11
-    public function getById($id = null, $options = []);
11
+    public function getById($id = null, $options = [ ]);
12 12
 
13
-    public function update($id = null, $data = []);
13
+    public function update($id = null, $data = [ ]);
14 14
 }
Please login to merge, or discard this patch.
app/Repositories/Contracts/SearchRepositoryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 interface SearchRepositoryInterface
4 4
 {
5
-    public function create($userId = null, $data = []);
5
+    public function create($userId = null, $data = [ ]);
6 6
 
7 7
     public function getActive($userEmail = null);
8 8
 }
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_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.