@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('business_user', function (Blueprint $table) { |
|
15 | + Schema::create('business_user', function(Blueprint $table) { |
|
16 | 16 | $table->integer('business_id')->unsigned()->index(); |
17 | 17 | $table->foreign('business_id')->references('id')->on('businesses')->onDelete('cascade'); |
18 | 18 | $table->integer('user_id')->unsigned()->index(); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | public function up() |
13 | 13 | { |
14 | - Schema::create('service_types', function ($table) { |
|
14 | + Schema::create('service_types', function($table) { |
|
15 | 15 | $table->increments('id'); |
16 | 16 | $table->integer('business_id')->unsigned(); |
17 | 17 | $table->foreign('business_id')->references('id')->on('businesses'); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('services', function (Blueprint $table) { |
|
15 | + Schema::create('services', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->integer('business_id')->unsigned(); |
18 | 18 | $table->foreign('business_id')->references('id')->on('businesses')->onDelete('cascade'); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('contacts', function (Blueprint $table) { |
|
15 | + Schema::create('contacts', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->integer('user_id')->unsigned()->nullable(); |
18 | 18 | $table->foreign('user_id')->references('id')->on('users'); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('business_contact', function (Blueprint $table) { |
|
15 | + Schema::create('business_contact', function(Blueprint $table) { |
|
16 | 16 | $table->integer('business_id')->unsigned()->index(); |
17 | 17 | $table->foreign('business_id')->references('id')->on('businesses')->onDelete('cascade'); |
18 | 18 | $table->integer('contact_id')->unsigned()->index(); |
@@ -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'); |
@@ -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 | } |