@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('vacancies', function (Blueprint $table) { |
|
| 15 | + Schema::create('vacancies', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->date('date'); |
| 18 | 18 | $table->timestamp('start_at')->nullable()->index(); |
@@ -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'); |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public function removeBookedVacancies(Collection $vacancies) |
| 50 | 50 | { |
| 51 | - $vacancies = $vacancies->reject(function ($vacancy) { |
|
| 51 | + $vacancies = $vacancies->reject(function($vacancy) { |
|
| 52 | 52 | return $vacancy->isFull(); |
| 53 | 53 | }); |
| 54 | 54 | |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | public function removeSelfBooked(Collection $vacancies, $userId) |
| 66 | 66 | { |
| 67 | - $vacancies = $vacancies->reject(function ($vacancy) use ($userId) { |
|
| 67 | + $vacancies = $vacancies->reject(function($vacancy) use ($userId) { |
|
| 68 | 68 | return $vacancy->isHoldingAnyFor($userId); |
| 69 | 69 | }); |
| 70 | 70 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * |
| 47 | 47 | * @param Collection $vacancies |
| 48 | 48 | * |
| 49 | - * @return Illuminate\Database\Eloquent\Collection |
|
| 49 | + * @return Collection |
|
| 50 | 50 | */ |
| 51 | 51 | public function removeBookedVacancies(Collection $vacancies) |
| 52 | 52 | { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * |
| 63 | 63 | * @param Collection $vacancies |
| 64 | 64 | * |
| 65 | - * @return Illuminate\Database\Eloquent\Collection |
|
| 65 | + * @return Collection |
|
| 66 | 66 | */ |
| 67 | 67 | public function removeSelfBooked(Collection $vacancies, $userId) |
| 68 | 68 | { |
@@ -42,16 +42,16 @@ |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | $fromTime = $this->wrappedObject |
| 45 | - ->vacancy |
|
| 46 | - ->start_at |
|
| 47 | - ->timezone($this->wrappedObject->business->timezone) |
|
| 48 | - ->format(config('root.time.format')); |
|
| 45 | + ->vacancy |
|
| 46 | + ->start_at |
|
| 47 | + ->timezone($this->wrappedObject->business->timezone) |
|
| 48 | + ->format(config('root.time.format')); |
|
| 49 | 49 | |
| 50 | 50 | $toTime = $this->wrappedObject |
| 51 | - ->vacancy |
|
| 52 | - ->finish_at |
|
| 53 | - ->timezone($this->wrappedObject->business->timezone) |
|
| 54 | - ->format(config('root.time.format')); |
|
| 51 | + ->vacancy |
|
| 52 | + ->finish_at |
|
| 53 | + ->timezone($this->wrappedObject->business->timezone) |
|
| 54 | + ->format(config('root.time.format')); |
|
| 55 | 55 | |
| 56 | 56 | return ucwords(trans('appointments.text.from_to', ['from' => $fromTime, 'to' => $toTime])); |
| 57 | 57 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | public function setupRoutes(Router $router) |
| 48 | 48 | { |
| 49 | - $router->group(['namespace' => 'Timegridio\Concierge\Http\Controllers'], function ($router) { |
|
| 49 | + $router->group(['namespace' => 'Timegridio\Concierge\Http\Controllers'], function($router) { |
|
| 50 | 50 | require __DIR__.'/Http/routes.php'; |
| 51 | 51 | }); |
| 52 | 52 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | } |
| 67 | 67 | private function registerConcierge() |
| 68 | 68 | { |
| 69 | - $this->app->bind('concierge', function ($app) { |
|
| 69 | + $this->app->bind('concierge', function($app) { |
|
| 70 | 70 | return new Concierge($app); |
| 71 | 71 | }); |
| 72 | 72 | } |