@@ -6,6 +6,6 @@ |
||
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 | } |
@@ -6,6 +6,6 @@ |
||
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 | } |
@@ -6,7 +6,7 @@ |
||
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 | { |
@@ -6,7 +6,7 @@ |
||
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 | { |
@@ -6,6 +6,6 @@ |
||
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 | } |
@@ -6,6 +6,6 @@ |
||
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 | } |
@@ -6,7 +6,7 @@ |
||
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 | { |
@@ -11,7 +11,7 @@ |
||
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') |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('payroll')) { |
|
3 | +if (!function_exists('payroll')) { |
|
4 | 4 | function payroll($identifier) |
5 | 5 | { |
6 | 6 | return \App\Processors\PayrollProcessor::make($identifier); |
7 | 7 | } |
8 | 8 | } |
9 | 9 | |
10 | -if (! function_exists('payslip')) { |
|
10 | +if (!function_exists('payslip')) { |
|
11 | 11 | function payslip($identifier) |
12 | 12 | { |
13 | 13 | return \App\Processors\PayslipProcessor::make($identifier); |