@@ -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); |
@@ -9,7 +9,7 @@ |
||
| 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', |
@@ -6,7 +6,7 @@ |
||
| 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 | { |
@@ -6,7 +6,7 @@ |
||
| 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 | { |