Completed
Push — master ( 69c8cb...bf18be )
by Karl
05:54
created
app/Filters/RecruiterFilter.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php namespace JobApis\JobsToMail\Filters;
2 2
 
3
-use JobApis\Jobs\Client\Job;
4 3
 use JobApis\JobsToMail\Models\Recruiter;
5 4
 use JobApis\JobsToMail\Models\Search;
5
+use JobApis\Jobs\Client\Job;
6 6
 
7 7
 class RecruiterFilter
8 8
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function filter(array $jobs, Search $search)
23 23
     {
24
-        return array_filter($jobs, function (Job $job) use ($search) {
24
+        return array_filter($jobs, function(Job $job) use ($search) {
25 25
             // Make sure this job has a company
26 26
             if (isset($job->company) && $job->company) {
27 27
                 // See if this company is not a recruiter
Please login to merge, or discard this patch.
app/Notifications/Messages/JobMailMessage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 
6 6
 class JobMailMessage extends MailMessage
7 7
 {
8
-    public $jobListings = [];
8
+    public $jobListings = [ ];
9 9
     public $advertisement = null;
10 10
 
11 11
     /**
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function listing(Job $job)
19 19
     {
20
-        $this->jobListings[] = [
20
+        $this->jobListings[ ] = [
21 21
             'link' => $job->getUrl(),
22 22
             'title' => $this->getTitle($job->getTitle()),
23 23
             'company' => $this->getCompany($job->getCompanyName(), $job->getIndustry()),
Please login to merge, or discard this patch.
database/seeds/RecruiterDatabaseSeeder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@
 block discarded – undo
8 8
     public function run()
9 9
     {
10 10
         $csv = League\Csv\Reader::createFromPath(__DIR__.'/recruiters.csv');
11
-        foreach($csv->fetchAll() as $recruiter) {
11
+        foreach ($csv->fetchAll() as $recruiter) {
12 12
             Recruiter::create([
13
-                'name' => $recruiter[0],
13
+                'name' => $recruiter[ 0 ],
14 14
             ]);
15 15
         }
16 16
     }
Please login to merge, or discard this patch.