Completed
Push — master ( adb5f1...9300e7 )
by Nasrul Hazim
01:47
created
src/Models/Payroll/Payroll.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     use SoftDeletes;
11 11
 
12
-    protected $guarded = ['id'];
12
+    protected $guarded = [ 'id' ];
13 13
 
14 14
     protected $casts = [
15 15
         'date' => 'datetime:Y-m-d',
Please login to merge, or discard this patch.
stubs/Models/OpenPayroll/Salary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 class Salary extends Model
8 8
 {
9
-    protected $guarded = ['id'];
9
+    protected $guarded = [ 'id' ];
10 10
 
11 11
     public function employee()
12 12
     {
Please login to merge, or discard this patch.
stubs/Models/OpenPayroll/Position.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 class Position extends Model
8 8
 {
9
-    protected $guarded = ['id'];
9
+    protected $guarded = [ 'id' ];
10 10
 
11 11
     public function employee()
12 12
     {
Please login to merge, or discard this patch.
database/factories/OpenPayrollFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         'name'              => $faker->sentence,
24 24
         'description'       => $faker->sentence,
25 25
         'amount'            => $faker->numberBetween(10000, 20000),
26
-        'deduction_type_id' => $faker->randomElement([1, 2]),
26
+        'deduction_type_id' => $faker->randomElement([ 1, 2 ]),
27 27
     ];
28 28
 });
29 29
 
@@ -32,6 +32,6 @@  discard block
 block discarded – undo
32 32
         'name'            => $faker->sentence,
33 33
         'description'     => $faker->sentence,
34 34
         'amount'          => $faker->numberBetween(10000, 20000),
35
-        'earning_type_id' => $faker->randomElement([1, 2]),
35
+        'earning_type_id' => $faker->randomElement([ 1, 2 ]),
36 36
     ];
37 37
 });
Please login to merge, or discard this patch.
database/seeds/OpenPayrollDemoSeeder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             ]);
32 32
 
33 33
             $user->phones()->create([
34
-                'phone_type_id' => $this->faker->randomElement([1, 2]),
34
+                'phone_type_id' => $this->faker->randomElement([ 1, 2 ]),
35 35
                 'phone_number'  => $this->faker->phoneNumber,
36 36
                 'is_default'    => true,
37 37
             ]);
Please login to merge, or discard this patch.