Passed
Push — develop ( a95732...cd40df )
by Septianata
12:51
created
app/Conversations/ExchangeConversation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,12 +66,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
database/migrations/2021_05_22_000011_create_order_statuses_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
database/migrations/2021_05_22_000007_create_users_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
database/migrations/2021_05_22_000009_create_denominations_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
database/migrations/2021_05_22_000005_create_configurations_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
database/seeders/ConfigurationSeeder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.