@@ -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 | { |
@@ -23,7 +23,7 @@ discard block |
||
| 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 |
||
| 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 | }); |
@@ -58,7 +58,7 @@ |
||
| 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 | } |
@@ -21,7 +21,7 @@ |
||
| 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 | __DIR__ . '/../database/migrations/create_positions.php.stub' => database_path('migrations/' . date('Y_m_d_His', time()) . '_create_positions.php'), |