@@ -66,12 +66,12 @@ discard block |
||
| 66 | 66 | Button::create(view('conversations.register-customer.reply-customer_data-no')->render())->value('no'), |
| 67 | 67 | ]); |
| 68 | 68 | |
| 69 | - return $this->ask($question, next: function (Answer $answer) use ($customer) { |
|
| 69 | + return $this->ask($question, next: function(Answer $answer) use ($customer) { |
|
| 70 | 70 | if (!$answer->isInteractiveMessageReply()) { |
| 71 | 71 | return; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - if (!in_array($value = $answer->getValue(), ['yes', 'no'])) { |
|
| 74 | + if (!in_array($value = $answer->getValue(), [ 'yes', 'no' ])) { |
|
| 75 | 75 | return $this->displayFallback($answer->getText()); |
| 76 | 76 | } |
| 77 | 77 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | )->toArray() |
| 107 | 107 | ); |
| 108 | 108 | |
| 109 | - return $this->getBot()->storeConversation($this, next: function (Answer $answer) use ($response) { |
|
| 109 | + return $this->getBot()->storeConversation($this, next: function(Answer $answer) use ($response) { |
|
| 110 | 110 | if (!$answer->isInteractiveMessageReply()) { |
| 111 | 111 | return; |
| 112 | 112 | } |
@@ -18,12 +18,12 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function up() |
| 20 | 20 | { |
| 21 | - Schema::create('order_statuses', function (Blueprint $table) { |
|
| 21 | + Schema::create('order_statuses', function(Blueprint $table) { |
|
| 22 | 22 | $table->id(); |
| 23 | 23 | $table->foreignIdFor(Order::class)->constrained()->onUpdate('cascade')->onDelete('cascade'); |
| 24 | 24 | $table->morphs('issuerable'); |
| 25 | 25 | |
| 26 | - $table->string('status')->comment('Enum of ' . OrderStatus::class); |
|
| 26 | + $table->string('status')->comment('Enum of '.OrderStatus::class); |
|
| 27 | 27 | $table->text('note')->nullable(); |
| 28 | 28 | $table->timestamps(); |
| 29 | 29 | }); |
@@ -18,13 +18,13 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function up() |
| 20 | 20 | { |
| 21 | - Schema::create('users', function (Blueprint $table) { |
|
| 21 | + Schema::create('users', function(Blueprint $table) { |
|
| 22 | 22 | $table->id(); |
| 23 | 23 | $table->foreignIdFor(Branch::class)->constrained()->onUpdate('cascade')->onDelete('cascade'); |
| 24 | 24 | |
| 25 | 25 | $table->string('username'); |
| 26 | 26 | $table->string('fullname'); |
| 27 | - $table->string('gender')->default(Gender::undefined())->comment('Enum of ' . Gender::class); |
|
| 27 | + $table->string('gender')->default(Gender::undefined())->comment('Enum of '.Gender::class); |
|
| 28 | 28 | $table->string('email')->unique(); |
| 29 | 29 | $table->string('phone_country')->default(env('PHONE_COUNTRY', 'ID')); |
| 30 | 30 | $table->string('phone')->unique(); |
@@ -17,12 +17,12 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | public function up() |
| 19 | 19 | { |
| 20 | - Schema::create('denominations', function (Blueprint $table) { |
|
| 20 | + Schema::create('denominations', function(Blueprint $table) { |
|
| 21 | 21 | $table->id(); |
| 22 | 22 | |
| 23 | 23 | $table->string('name'); |
| 24 | 24 | $table->decimal('value'); |
| 25 | - $table->string('type')->comment('Enum of ' . DenominationType::class); |
|
| 25 | + $table->string('type')->comment('Enum of '.DenominationType::class); |
|
| 26 | 26 | $table->unsignedInteger('quantity_per_bundle'); |
| 27 | 27 | $table->unsignedInteger('minimum_order_bundle'); |
| 28 | 28 | $table->unsignedInteger('maximum_order_bundle'); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public function up() |
| 18 | 18 | { |
| 19 | - Schema::create('configurations', function (Blueprint $table) { |
|
| 19 | + Schema::create('configurations', function(Blueprint $table) { |
|
| 20 | 20 | $table->id(); |
| 21 | 21 | |
| 22 | 22 | $table->string('key')->unique(); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function run() |
| 16 | 16 | { |
| 17 | - array_map(fn (array $attributes) => Configuration::create($attributes), [ |
|
| 17 | + array_map(fn(array $attributes) => Configuration::create($attributes), [ |
|
| 18 | 18 | [ |
| 19 | 19 | 'key' => 'maximum_total_order_value', |
| 20 | 20 | 'value' => 44000000, |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | Route::view('/', 'welcome'); |
| 18 | 18 | |
| 19 | -Route::middleware('auth:web', 'verified', 'user_is_active')->group(function () { |
|
| 19 | +Route::middleware('auth:web', 'verified', 'user_is_active')->group(function() { |
|
| 20 | 20 | Route::get('/dashboard', DashboardController::class)->name('dashboard'); |
| 21 | 21 | }); |
| 22 | 22 | |