Completed
Push — master ( bfc36f...e3681f )
by Ariel
13:05
created
migrations/2016_02_01_000009_create_appointments_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
migrations/2016_02_01_000010_create_preferences_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Models/Business.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     {
39 39
         parent::boot();
40 40
 
41
-        static::creating(function ($business) {
41
+        static::creating(function($business) {
42 42
 
43 43
             $business->slug = $business->makeSlug($business->name);
44 44
 
Please login to merge, or discard this patch.
src/Calendar/DateslotCalendar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
src/TimegridioConciergeServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Calendar/TimeslotCalendar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
migrations/2016_03_18_000001_create_humanresources_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Vacancy/VacancyManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
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'])
Please login to merge, or discard this patch.
src/Models/Appointment.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -440,11 +440,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                 });
Please login to merge, or discard this patch.