@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('appointments', function (Blueprint $table) { |
|
15 | + Schema::create('appointments', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->integer('issuer_id')->unsigned()->nullable(); |
18 | 18 | $table->foreign('issuer_id')->references('id')->on('users')->onDelete('cascade'); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('preferences', function (Blueprint $table) { |
|
15 | + Schema::create('preferences', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->string('key'); |
18 | 18 | $table->string('value'); |
@@ -412,10 +412,10 @@ discard block |
||
412 | 412 | public function scopeUnarchived($query) |
413 | 413 | { |
414 | 414 | return $query |
415 | - ->where(function ($query) { |
|
415 | + ->where(function($query) { |
|
416 | 416 | $query->whereIn('status', [Self::STATUS_RESERVED, Self::STATUS_CONFIRMED]) |
417 | 417 | ->where('start_at', '<=', Carbon::parse('today midnight')->timezone('UTC')) |
418 | - ->orWhere(function ($query) { |
|
418 | + ->orWhere(function($query) { |
|
419 | 419 | $query->where('start_at', '>=', Carbon::parse('today midnight')->timezone('UTC')); |
420 | 420 | }); |
421 | 421 | }); |
@@ -538,21 +538,21 @@ discard block |
||
538 | 538 | public function scopeAffectingInterval($query, Carbon $startAt, Carbon $finishAt) |
539 | 539 | { |
540 | 540 | return $query |
541 | - ->where(function ($query) use ($startAt, $finishAt) { |
|
541 | + ->where(function($query) use ($startAt, $finishAt) { |
|
542 | 542 | |
543 | - $query->where(function ($query) use ($startAt, $finishAt) { |
|
543 | + $query->where(function($query) use ($startAt, $finishAt) { |
|
544 | 544 | $query->where('finish_at', '>=', $finishAt->timezone('UTC')) |
545 | 545 | ->where('start_at', '<=', $startAt->timezone('UTC')); |
546 | 546 | }) |
547 | - ->orWhere(function ($query) use ($startAt, $finishAt) { |
|
547 | + ->orWhere(function($query) use ($startAt, $finishAt) { |
|
548 | 548 | $query->where('finish_at', '<', $finishAt->timezone('UTC')) |
549 | 549 | ->where('finish_at', '>', $startAt->timezone('UTC')); |
550 | 550 | }) |
551 | - ->orWhere(function ($query) use ($startAt, $finishAt) { |
|
551 | + ->orWhere(function($query) use ($startAt, $finishAt) { |
|
552 | 552 | $query->where('start_at', '>', $startAt->timezone('UTC')) |
553 | 553 | ->where('start_at', '<', $finishAt->timezone('UTC')); |
554 | 554 | }) |
555 | - ->orWhere(function ($query) use ($startAt, $finishAt) { |
|
555 | + ->orWhere(function($query) use ($startAt, $finishAt) { |
|
556 | 556 | $query->where('start_at', '>', $startAt->timezone('UTC')) |
557 | 557 | ->where('finish_at', '<', $finishAt->timezone('UTC')); |
558 | 558 | }); |
@@ -10,7 +10,7 @@ |
||
10 | 10 | |
11 | 11 | $results = $this->vacancies->get(); |
12 | 12 | |
13 | - $results = $results->reject(function ($vacancy) { |
|
13 | + $results = $results->reject(function($vacancy) { |
|
14 | 14 | |
15 | 15 | return !$vacancy->hasRoom(); |
16 | 16 | }); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | private function registerConcierge() |
48 | 48 | { |
49 | - $this->app->bind('concierge', function ($app) { |
|
49 | + $this->app->bind('concierge', function($app) { |
|
50 | 50 | return new Concierge($app); |
51 | 51 | }); |
52 | 52 | } |
@@ -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 | } |
@@ -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 | } |