| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php namespace JobApis\JobsToMail\Notifications\Messages; |
||
| 17 | 2 | public function listing(Job $job) |
|
| 18 | { |
||
| 19 | 2 | $line = ""; |
|
| 20 | 2 | $line .= $this->getTitle($job->getTitle()); |
|
| 21 | 2 | $line .= $this->getCompany($job->getCompanyName()); |
|
| 22 | 2 | $line .= $this->getLocation($job->getLocation()); |
|
| 23 | 2 | $line .= "."; |
|
| 24 | 2 | $this->jobListings[] = [ |
|
| 25 | 2 | 'link' => $job->getUrl(), |
|
| 26 | 2 | 'text' => $line, |
|
| 27 | 2 | 'date' => $this->getDate($job->getDatePosted()), |
|
| 28 | ]; |
||
| 29 | 2 | return $this; |
|
| 30 | } |
||
| 31 | |||
| 69 |