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/OpenPayrollServiceProvider.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     public function register()
59 59
     {
60 60
         $this->mergeConfigFrom(
61
-             __DIR__ . '/../config/open-payroll.php', 'open-payroll'
61
+                __DIR__ . '/../config/open-payroll.php', 'open-payroll'
62 62
         );
63 63
     }
64 64
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         /*
22 22
          * Migration
23 23
          */
24
-        if (! class_exists('CreatePayrollTable')) {
24
+        if (!class_exists('CreatePayrollTable')) {
25 25
             $this->publishes([
26 26
                 __DIR__ . '/../database/migrations/create_payroll_table.php.stub' => database_path('migrations/' . date('Y_m_d_His', time()) . '_create_payroll_table.php'),
27 27
             ], 'migrations');
Please login to merge, or discard this patch.