Completed
Push — master ( db2763...7548f0 )
by Nasrul Hazim
01:57
created
src/Models/Payroll/Status.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,6 +6,6 @@
 block discarded – undo
6 6
 
7 7
 class Status extends Model
8 8
 {
9
-    protected $guarded = ['id'];
9
+    protected $guarded = [ 'id' ];
10 10
     protected $table   = 'payroll_statuses';
11 11
 }
Please login to merge, or discard this patch.
src/Models/Payslip/Status.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,6 +6,6 @@
 block discarded – undo
6 6
 
7 7
 class Status extends Model
8 8
 {
9
-    protected $guarded = ['id'];
9
+    protected $guarded = [ 'id' ];
10 10
     protected $table   = 'payslip_statuses';
11 11
 }
Please login to merge, or discard this patch.
src/Models/Payslip/Payslip.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 Payslip extends Model
8 8
 {
9
-    protected $guarded = ['id'];
9
+    protected $guarded = [ 'id' ];
10 10
 
11 11
     public function user()
12 12
     {
Please login to merge, or discard this patch.
src/Models/Earning/Earning.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 Earning extends Model
8 8
 {
9
-    protected $guarded = ['id'];
9
+    protected $guarded = [ 'id' ];
10 10
 
11 11
     public function user()
12 12
     {
Please login to merge, or discard this patch.
src/Models/Earning/Type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,6 +6,6 @@
 block discarded – undo
6 6
 
7 7
 class Type extends Model
8 8
 {
9
-    protected $guarded = ['id'];
9
+    protected $guarded = [ 'id' ];
10 10
     protected $table   = 'earning_types';
11 11
 }
Please login to merge, or discard this patch.
src/Models/Deduction/Type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,6 +6,6 @@
 block discarded – undo
6 6
 
7 7
 class Type extends Model
8 8
 {
9
-    protected $guarded = ['id'];
9
+    protected $guarded = [ 'id' ];
10 10
     protected $table   = 'deduction_types';
11 11
 }
Please login to merge, or discard this patch.
src/Models/Deduction/Deduction.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 Deduction extends Model
8 8
 {
9
-    protected $guarded = ['id'];
9
+    protected $guarded = [ 'id' ];
10 10
 
11 11
     public function user()
12 12
     {
Please login to merge, or discard this patch.
database/factories/PayrollFactory.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.
src/Processors/PayslipProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
     public function __construct($identifier = null)
13 13
     {
14
-        if (! is_null($identifier)) {
14
+        if (!is_null($identifier)) {
15 15
             if (is_string($identifier) || is_int($identifier)) {
16 16
                 $this->payslip = Payslip::query()
17 17
                     ->with('earnings', 'deductions', 'payroll', 'employee', 'employee.salary')
Please login to merge, or discard this patch.