Passed
Push — develop ( dcecff...37402c )
by Septianata
16:01
created
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,13 +17,13 @@
 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('key')->unique();
24 24
             $table->string('name');
25 25
             $table->unsignedDecimal('value');
26
-            $table->string('type')->comment('Enum of ' . DenominationType::class);
26
+            $table->string('type')->comment('Enum of '.DenominationType::class);
27 27
             $table->unsignedInteger('quantity_per_bundle');
28 28
             $table->unsignedInteger('minimum_order_bundle');
29 29
             $table->unsignedInteger('maximum_order_bundle');
Please login to merge, or discard this patch.
database/factories/DenominationFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,22 +29,22 @@
 block discarded – undo
29 29
         $type = $isCoin ? DenominationType::coin() : DenominationType::banknote();
30 30
 
31 31
         $value = $isCoin
32
-            ? $this->faker->randomElement([100, 200, 500, 1000])
33
-            : $this->faker->randomElement([1000, 2000, 5000, 10000, 20000, 50000, 75000, 100000]);
32
+            ? $this->faker->randomElement([ 100, 200, 500, 1000 ])
33
+            : $this->faker->randomElement([ 1000, 2000, 5000, 10000, 20000, 50000, 75000, 100000 ]);
34 34
 
35 35
         return [
36
-            'key' => $type->value . '-' . $value,
36
+            'key' => $type->value.'-'.$value,
37 37
             'name' => terbilang($value),
38 38
             'value' => $value,
39 39
             'type' => $type,
40
-            'quantity_per_bundle' => $this->faker->randomElement([50, 100, 200]),
40
+            'quantity_per_bundle' => $this->faker->randomElement([ 50, 100, 200 ]),
41 41
             'minimum_order_bundle' => $minimumBundle = $this->faker->numberBetween(1, 10),
42 42
             'maximum_order_bundle' => $this->faker->numberBetween($minimumBundle, 10),
43 43
             'minimum_order_quantity' => $canOrderCustomQuantity ? $minimumQuantity = $this->faker->numberBetween(1, 100) : null,
44 44
             'maximum_order_quantity' => $canOrderCustomQuantity ? $this->faker->numberBetween($minimumQuantity, 100) : null,
45 45
             'can_order_custom_quantity' => $canOrderCustomQuantity,
46 46
             'is_visible' => $this->faker->boolean,
47
-            'image' => UploadedFile::fake()->image($type->value . '-' . $value . '.jpg'),
47
+            'image' => UploadedFile::fake()->image($type->value.'-'.$value.'.jpg'),
48 48
         ];
49 49
     }
50 50
 }
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' => null,
Please login to merge, or discard this patch.