@@ -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 | }); |
@@ -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 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('humanresources', function (Blueprint $table) { |
|
| 15 | + Schema::create('humanresources', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->string('slug', 50)->index(); |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | ]; |
| 103 | 103 | |
| 104 | 104 | // If capacity is a slug, grab the humanresource |
| 105 | - if(!is_numeric($statement['capacity'])) |
|
| 105 | + if (!is_numeric($statement['capacity'])) |
|
| 106 | 106 | { |
| 107 | 107 | $vacancyValues['humanresource_id'] = $business->humanresources() |
| 108 | 108 | ->where('slug', $statement['capacity']) |
@@ -440,11 +440,11 @@ discard block |
||
| 440 | 440 | $carbon = Carbon::parse('today midnight')->timezone('UTC'); |
| 441 | 441 | |
| 442 | 442 | return $query |
| 443 | - ->where(function ($query) use ($carbon) { |
|
| 443 | + ->where(function($query) use ($carbon) { |
|
| 444 | 444 | |
| 445 | 445 | $query->whereIn('status', [Self::STATUS_RESERVED, Self::STATUS_CONFIRMED]) |
| 446 | 446 | ->where('start_at', '<=', $carbon) |
| 447 | - ->orWhere(function ($query) use ($carbon) { |
|
| 447 | + ->orWhere(function($query) use ($carbon) { |
|
| 448 | 448 | $query->where('start_at', '>=', $carbon); |
| 449 | 449 | }); |
| 450 | 450 | }); |
@@ -532,17 +532,17 @@ discard block |
||
| 532 | 532 | $finishAt->timezone('UTC'); |
| 533 | 533 | |
| 534 | 534 | return $query |
| 535 | - ->where(function ($query) use ($startAt, $finishAt) { |
|
| 535 | + ->where(function($query) use ($startAt, $finishAt) { |
|
| 536 | 536 | |
| 537 | - $query->where(function ($query) use ($startAt, $finishAt) { |
|
| 537 | + $query->where(function($query) use ($startAt, $finishAt) { |
|
| 538 | 538 | $query->where('finish_at', '>=', $finishAt) |
| 539 | 539 | ->where('start_at', '<', $startAt); |
| 540 | 540 | }) |
| 541 | - ->orWhere(function ($query) use ($startAt, $finishAt) { |
|
| 541 | + ->orWhere(function($query) use ($startAt, $finishAt) { |
|
| 542 | 542 | $query->where('finish_at', '<=', $finishAt) |
| 543 | 543 | ->where('finish_at', '>', $startAt); |
| 544 | 544 | }) |
| 545 | - ->orWhere(function ($query) use ($startAt, $finishAt) { |
|
| 545 | + ->orWhere(function($query) use ($startAt, $finishAt) { |
|
| 546 | 546 | $query->where('start_at', '>=', $startAt) |
| 547 | 547 | ->where('start_at', '<', $finishAt); |
| 548 | 548 | }); |