@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('ministries', function (Blueprint $table) { |
|
| 16 | + Schema::create('ministries', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('id', 150)->primary(); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('email', 150)->unique(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('oauth_access_tokens', function (Blueprint $table) { |
|
| 16 | + Schema::create('oauth_access_tokens', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('id', 100)->primary(); |
| 18 | 18 | $table->string('user_id', 150)->index()->nullable(); |
| 19 | 19 | $table->unsignedInteger('client_id'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('images', function (Blueprint $table) { |
|
| 16 | + Schema::create('images', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('id', 150); |
| 18 | 18 | $table->string('imageable_id', 150)->index(); |
| 19 | 19 | $table->string('imageable_type'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('oauth_auth_codes', function (Blueprint $table) { |
|
| 16 | + Schema::create('oauth_auth_codes', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('id', 100)->primary(); |
| 18 | 18 | $table->string('user_id', 150); |
| 19 | 19 | $table->unsignedInteger('client_id'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('oauth_personal_access_clients', function (Blueprint $table) { |
|
| 16 | + Schema::create('oauth_personal_access_clients', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->unsignedInteger('client_id')->index(); |
| 19 | 19 | $table->timestamps(); |
@@ -13,10 +13,10 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('accounts', function (Blueprint $table) { |
|
| 16 | + Schema::create('accounts', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('id', 150)->primary(); |
| 18 | 18 | $table->string('ministry_id', 150)->index(); |
| 19 | - $table->enum('level', ['Free', 'Premium', 'PremiumPlus'])->default('Free'); |
|
| 19 | + $table->enum('level', [ 'Free', 'Premium', 'PremiumPlus' ])->default('Free'); |
|
| 20 | 20 | $table->dateTime('expiry_date')->default(now()); |
| 21 | 21 | $table->timestamps(); |
| 22 | 22 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('comments', function (Blueprint $table) { |
|
| 16 | + Schema::create('comments', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('id', 150); |
| 18 | 18 | $table->string('creatable_id', 150)->index(); |
| 19 | 19 | $table->string('creatable_type'); |
@@ -40,14 +40,14 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public function broadcastOn() |
| 42 | 42 | { |
| 43 | - return new PrivateChannel('comments-'.$this->data['category'].'-'.$this->data['item_id']); |
|
| 43 | + return new PrivateChannel('comments-' . $this->data[ 'category' ] . '-' . $this->data[ 'item_id' ]); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | public function broadcastWith() |
| 47 | 47 | { |
| 48 | 48 | return [ |
| 49 | 49 | 'user' => $this->user, |
| 50 | - 'coming_in' => (bool) $this->data['presence'], |
|
| 50 | + 'coming_in' => (bool)$this->data[ 'presence' ], |
|
| 51 | 51 | ]; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -40,14 +40,14 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public function broadcastOn() |
| 42 | 42 | { |
| 43 | - return new PrivateChannel('comments-'.$this->data['category'].'-'.$this->data['item_id']); |
|
| 43 | + return new PrivateChannel('comments-' . $this->data[ 'category' ] . '-' . $this->data[ 'item_id' ]); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | public function broadcastWith() |
| 47 | 47 | { |
| 48 | 48 | return [ |
| 49 | 49 | 'user' => $this->user, |
| 50 | - 'status' => $this->name.' is typing', |
|
| 50 | + 'status' => $this->name . ' is typing', |
|
| 51 | 51 | ]; |
| 52 | 52 | } |
| 53 | 53 | |