@@ -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(); |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | /* |
| 22 | 22 | * Database - Migrations, Factories and Seeders |
| 23 | 23 | */ |
| 24 | - if (! class_exists('CreatePayrollTable')) { |
|
| 24 | + if (!class_exists('CreatePayrollTable')) { |
|
| 25 | 25 | $this->publishes([ |
| 26 | 26 | __DIR__ . '/../database/factories/' => database_path('factories/'), |
| 27 | 27 | __DIR__ . '/../database/migrations/create_payroll_table.php.stub' => database_path('migrations/' . date('Y_m_d_His', time()) . '_create_payroll_table.php'), |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * @param callable|null $callback |
| 20 | 20 | * @param array $options |
| 21 | 21 | */ |
| 22 | - public static function routes($callback = null, array $options = []) |
|
| 22 | + public static function routes($callback = null, array $options = [ ]) |
|
| 23 | 23 | { |
| 24 | 24 | $callback = $callback ?: function($router) { |
| 25 | 25 | $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 | ]; |