@@ -5,7 +5,7 @@ discard block |
||
| 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 |
||
| 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()), |
@@ -21,7 +21,7 @@ |
||
| 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 |
@@ -8,9 +8,9 @@ |
||
| 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 | } |