Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | public function calculate() |
||
42 | { |
||
43 | if ($this->payslip) { |
||
44 | $employee = $this->payslip->employee; |
||
45 | $salary = $employee->salary; |
||
46 | $payroll = $this->payslip->payroll; |
||
47 | $earnings = $this->payslip->earnings; |
||
48 | $deductions = $this->payslip->deductions; |
||
49 | |||
50 | $this->payslip->basic_salary = $salary->amount; |
||
51 | $this->payslip->gross_salary = $gross_salary = ($earnings->sum('amount') + $salary->amount); |
||
52 | $this->payslip->net_salary = $gross_salary - $deductions->sum('amount'); |
||
53 | |||
54 | $this->payslip->save(); |
||
55 | } |
||
56 | |||
57 | return $this; |
||
58 | } |
||
60 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths