Completed
Push — master ( 38d03b...b2132c )
by Karl
04:45
created
app/Models/Recruiter.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php namespace JobApis\JobsToMail\Models;
2 2
 
3 3
 use Illuminate\Database\Eloquent\Model;
4
-use Illuminate\Support\Facades\DB;
5 4
 use Ramsey\Uuid\Uuid;
6 5
 
7 6
 class Recruiter extends Model
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     {
31 31
         parent::boot();
32 32
 
33
-        static::creating(function ($model) {
33
+        static::creating(function($model) {
34 34
             $model->{$model->getKeyName()} = Uuid::uuid4();
35 35
         });
36 36
     }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     {
48 48
         if ($name) {
49 49
             $where = "to_tsvector('english', name) @@ plainto_tsquery('english', ?)";
50
-            return $query->whereRaw($where, [$name]);
50
+            return $query->whereRaw($where, [ $name ]);
51 51
         }
52 52
         return $query;
53 53
     }
Please login to merge, or discard this patch.