@@ -15,7 +15,7 @@ |
||
15 | 15 | if ($this->duration !== null) { |
16 | 16 | $toDatetime = $fromDatetime->addMinutes($this->duration); |
17 | 17 | |
18 | - $results = $results->reject(function ($vacancy) use ($fromDatetime, $toDatetime) { |
|
18 | + $results = $results->reject(function($vacancy) use ($fromDatetime, $toDatetime) { |
|
19 | 19 | return !$vacancy->hasRoomBetween($fromDatetime, $toDatetime); |
20 | 20 | }); |
21 | 21 | } |
@@ -97,6 +97,9 @@ |
||
97 | 97 | return $vacancy !== null; |
98 | 98 | } |
99 | 99 | |
100 | + /** |
|
101 | + * @param string $key |
|
102 | + */ |
|
100 | 103 | protected function arrayGroupBy($key, $array) |
101 | 104 | { |
102 | 105 | $grouped = []; |
@@ -54,16 +54,16 @@ |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | $fromTime = $this->wrappedObject |
57 | - ->vacancy |
|
58 | - ->start_at |
|
59 | - ->timezone($this->wrappedObject->business->timezone) |
|
60 | - ->format($timeFormat); |
|
57 | + ->vacancy |
|
58 | + ->start_at |
|
59 | + ->timezone($this->wrappedObject->business->timezone) |
|
60 | + ->format($timeFormat); |
|
61 | 61 | |
62 | 62 | $toTime = $this->wrappedObject |
63 | - ->vacancy |
|
64 | - ->finish_at |
|
65 | - ->timezone($this->wrappedObject->business->timezone) |
|
66 | - ->format($timeFormat); |
|
63 | + ->vacancy |
|
64 | + ->finish_at |
|
65 | + ->timezone($this->wrappedObject->business->timezone) |
|
66 | + ->format($timeFormat); |
|
67 | 67 | |
68 | 68 | return ['from' => $fromTime, 'to' => $toTime]; |
69 | 69 | } |
@@ -68,8 +68,7 @@ |
||
68 | 68 | */ |
69 | 69 | public function industryIcon() |
70 | 70 | { |
71 | - $src = ($this->wrappedObject->pref('cover_photo_url')) ?: |
|
72 | - asset('/img/industries/'.$this->wrappedObject->category->slug.'.png'); |
|
71 | + $src = ($this->wrappedObject->pref('cover_photo_url')) ?: asset('/img/industries/'.$this->wrappedObject->category->slug.'.png'); |
|
73 | 72 | |
74 | 73 | return "<img class=\"img-responsive center-block\" src=\"{$src}\"/>"; |
75 | 74 | } |