@@ -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 | { |
@@ -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 | }); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | ]); |
| 32 | 32 | |
| 33 | 33 | $user->phones()->create([ |
| 34 | - 'phone_type_id' => $this->faker->randomElement([1, 2]), |
|
| 34 | + 'phone_type_id' => $this->faker->randomElement([ 1, 2 ]), |
|
| 35 | 35 | 'phone_number' => $this->faker->phoneNumber, |
| 36 | 36 | 'is_default' => true, |
| 37 | 37 | ]); |
@@ -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 \CleaniqueCoders\OpenPayroll\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 \CleaniqueCoders\OpenPayroll\Processors\PayslipProcessor::make($identifier); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | public function __construct($identifier = null) |
| 12 | 12 | { |
| 13 | - if (! is_null($identifier)) { |
|
| 13 | + if (!is_null($identifier)) { |
|
| 14 | 14 | if (is_string($identifier) || is_int($identifier)) { |
| 15 | 15 | $this->payslip = config('open-payroll.models.payslip')::query() |
| 16 | 16 | ->with('earnings', 'deductions', 'payroll', 'employee', 'employee.salary') |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * @param callable|null $callback |
| 13 | 13 | * @param array $options |
| 14 | 14 | */ |
| 15 | - public static function routes($callback = null, array $options = []) |
|
| 15 | + public static function routes($callback = null, array $options = [ ]) |
|
| 16 | 16 | { |
| 17 | 17 | $callback = $callback ?: function($router) { |
| 18 | 18 | $router->all(); |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public function all() |
| 31 | 31 | { |
| 32 | - $this->router->group(['middleware' => ['web', 'auth']], function($router) { |
|
| 32 | + $this->router->group([ 'middleware' => [ 'web', 'auth' ] ], function($router) { |
|
| 33 | 33 | $router->resource('payroll', 'PayrollController'); |
| 34 | 34 | $router->resource('payslip', 'PayslipController'); |
| 35 | 35 | $router->resource('earning', 'EarningController'); |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | | |
| 90 | 90 | */ |
| 91 | 91 | |
| 92 | - 'processors' => [ |
|
| 92 | + 'processors' => [ |
|
| 93 | 93 | 'default_earning' => \CleaniqueCoders\OpenPayroll\Processors\Earning\BaseEarningProcessor::class, |
| 94 | 94 | 'default_deduction' => \CleaniqueCoders\OpenPayroll\Processors\Earning\BaseEarningProcessor::class, |
| 95 | 95 | 'earnings' => [ |
@@ -104,5 +104,5 @@ discard block |
||
| 104 | 104 | 'Loan' => \CleaniqueCoders\OpenPayroll\Processors\Deduction\LoanProcessor::class, |
| 105 | 105 | 'IncomeTax' => \CleaniqueCoders\OpenPayroll\Processors\Deduction\IncomeTaxProcessor::class, |
| 106 | 106 | ], |
| 107 | - ], |
|
| 107 | + ], |
|
| 108 | 108 | ]; |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * @param callable|null $callback |
| 13 | 13 | * @param array $options |
| 14 | 14 | */ |
| 15 | - public static function routes($callback = null, array $options = []) |
|
| 15 | + public static function routes($callback = null, array $options = [ ]) |
|
| 16 | 16 | { |
| 17 | 17 | $callback = $callback ?: function($router) { |
| 18 | 18 | $router->all(); |