Completed
Push — master ( b618f7...e48405 )
by Karl
11s
created
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.
resources/views/vendor/notifications/email-plain.blade.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! empty($greeting)) {
3
+if (!empty($greeting)) {
4 4
     echo $greeting, "\n\n";
5 5
 } else {
6 6
     echo $level == 'error' ? 'Whoops!' : 'Hello!', "\n\n";
7 7
 }
8 8
 
9
-if (! empty($introLines)) {
9
+if (!empty($introLines)) {
10 10
     echo implode("\n", $introLines), "\n\n";
11 11
 }
12 12
 
13 13
 if (isset($jobListings)) {
14 14
     foreach ($jobListings as $listing) {
15
-        echo "{$listing['text']}: {$listing['link']}", "\n";
16
-        if ($listing['date']) {
17
-            echo "Posted on {$listing['date']}", "\n\n";
15
+        echo "{$listing[ 'text' ]}: {$listing[ 'link' ]}", "\n";
16
+        if ($listing[ 'date' ]) {
17
+            echo "Posted on {$listing[ 'date' ]}", "\n\n";
18 18
         }
19 19
     }
20 20
 }
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     echo "{$actionText}: {$actionUrl}", "\n\n";
24 24
 }
25 25
 
26
-if (! empty($outroLines)) {
26
+if (!empty($outroLines)) {
27 27
     echo implode("\n", $outroLines), "\n\n";
28 28
 }
29 29
 
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/Jobs/DeleteSearch.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@
 block discarded – undo
21 21
     /**
22 22
      * Unsubscribe from a search by deleting it.
23 23
      *
24
-     * @param SearchRepositoryInterface $users
25 24
      *
26 25
      * @return FlashMessage
27 26
      */
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.
routes/web.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@  discard block
 block discarded – undo
2 2
 
3 3
 Route::get('/', 'UsersController@index');
4 4
 
5
-Route::get('/terms', function () {
5
+Route::get('/terms', function() {
6 6
     return view('static.terms');
7 7
 });
8 8
 
9
-Route::group(['prefix' => 'users'], function () {
9
+Route::group([ 'prefix' => 'users' ], function() {
10 10
 
11 11
     // Create new user
12 12
     Route::post('/', 'UsersController@create');
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     Route::get('/{userId}/searches', 'UsersController@searches');
22 22
 });
23 23
 
24
-Route::group(['prefix' => 'searches'], function () {
24
+Route::group([ 'prefix' => 'searches' ], function() {
25 25
 
26 26
     // Unsubscribe by ID
27 27
     Route::get('/{searchId}/unsubscribe', 'SearchesController@unsubscribe');
Please login to merge, or discard this patch.