Completed
Push — master ( 8327f0...237430 )
by Ariel
06:29
created
migrations/2016_02_01_000004_create_service_types_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
migrations/2016_02_01_000005_create_services_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('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');
Please login to merge, or discard this patch.
migrations/2016_02_01_000006_create_contacts_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('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');
Please login to merge, or discard this patch.
migrations/2016_02_01_000007_create_business_contact_pivot_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('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();
Please login to merge, or discard this patch.
migrations/2016_02_01_000008_create_vacancies_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('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();
Please login to merge, or discard this patch.
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 2 patches
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.
Doc Comments   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     /**
65 65
      * Belongs to a Category.
66 66
      *
67
-     * @return Illuminate\Database\Eloquent\Relations\BelongsTo
67
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
68 68
      */
69 69
     public function category()
70 70
     {
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     /**
88 88
      * Provides a catalog of Services.
89 89
      *
90
-     * @return Illuminate\Database\Eloquent\Relations\HasMany
90
+     * @return \Illuminate\Database\Eloquent\Relations\HasMany
91 91
      */
92 92
     public function services()
93 93
     {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     /**
98 98
      * Provides Services of Types.
99 99
      *
100
-     * @return Illuminate\Database\Eloquent\Relations\HasMany
100
+     * @return \Illuminate\Database\Eloquent\Relations\HasMany
101 101
      */
102 102
     public function servicetypes()
103 103
     {
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     /**
108 108
      * Publishes Vacancies.
109 109
      *
110
-     * @return Illuminate\Database\Eloquent\hasMany
110
+     * @return \Illuminate\Database\Eloquent\Relations\HasMany
111 111
      */
112 112
     public function vacancies()
113 113
     {
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     /**
118 118
      * Holds booked Appointments.
119 119
      *
120
-     * @return Illuminate\Database\Eloquent\hasMany
120
+     * @return \Illuminate\Database\Eloquent\Relations\HasMany
121 121
      */
122 122
     public function bookings()
123 123
     {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     /**
128 128
      * Is owned by Users.
129 129
      *
130
-     * @return Illuminate\Database\Eloquent\belongsToMany
130
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
131 131
      */
132 132
     public function owners()
133 133
     {
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
     /**
250 250
      * Set Postal Address.
251 251
      *
252
-     * @param string $postal_address Postal address
252
+     * @param string $postalAddress Postal address
253 253
      */
254 254
     public function setPostalAddressAttribute($postalAddress)
255 255
     {
@@ -259,7 +259,6 @@  discard block
 block discarded – undo
259 259
     /**
260 260
      * Set Social Facebook.
261 261
      *
262
-     * @param string $social_facebook Facebook User URL
263 262
      */
264 263
     public function setSocialFacebookAttribute($facebookPageUrl)
265 264
     {
Please login to merge, or discard this patch.
src/Presenters/AppointmentPresenter.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -42,16 +42,16 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.