@@ -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'); |
@@ -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 | }); |
@@ -15,7 +15,7 @@ discard block |
||
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 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $this->vacancies->forService($this->service); |
30 | 30 | } |
31 | 31 | |
32 | - if ($this->date !== null && $this->time !== null) { |
|
32 | + if ($this->date !== null && $this->time !== null) { |
|
33 | 33 | $this->vacancies->forDateTime($this->getUTCDateTime()); |
34 | 34 | } |
35 | 35 |
@@ -500,21 +500,21 @@ |
||
500 | 500 | public function scopeAffectingInterval($query, Carbon $startAt, Carbon $finishAt) |
501 | 501 | { |
502 | 502 | return $query |
503 | - ->where(function ($query) use ($startAt, $finishAt) { |
|
503 | + ->where(function($query) use ($startAt, $finishAt) { |
|
504 | 504 | |
505 | - $query->where(function ($query) use ($startAt, $finishAt) { |
|
505 | + $query->where(function($query) use ($startAt, $finishAt) { |
|
506 | 506 | $query->where('finish_at', '>=', $finishAt->timezone('UTC')) |
507 | 507 | ->where('start_at', '<=', $startAt->timezone('UTC')); |
508 | 508 | }) |
509 | - ->orWhere(function ($query) use ($startAt, $finishAt) { |
|
509 | + ->orWhere(function($query) use ($startAt, $finishAt) { |
|
510 | 510 | $query->where('finish_at', '<', $finishAt->timezone('UTC')) |
511 | 511 | ->where('finish_at', '>', $startAt->timezone('UTC')); |
512 | 512 | }) |
513 | - ->orWhere(function ($query) use ($startAt, $finishAt) { |
|
513 | + ->orWhere(function($query) use ($startAt, $finishAt) { |
|
514 | 514 | $query->where('start_at', '>', $startAt->timezone('UTC')) |
515 | 515 | ->where('start_at', '<', $finishAt->timezone('UTC')); |
516 | 516 | }) |
517 | - ->orWhere(function ($query) use ($startAt, $finishAt) { |
|
517 | + ->orWhere(function($query) use ($startAt, $finishAt) { |
|
518 | 518 | $query->where('start_at', '>', $startAt->timezone('UTC')) |
519 | 519 | ->where('finish_at', '<', $finishAt->timezone('UTC')); |
520 | 520 | }); |
@@ -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 | } |