Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
10 | 1 | protected function applyCosts(Load $a_load, Destination $a_destination, array $some_price_rules, float $net_benefits, float $previous_costs = 0): float |
|
11 | { |
||
12 | 1 | $percent_to_reduce = floor($a_destination->kilometers() / 100); |
|
13 | |||
14 | 1 | return $net_benefits * ($percent_to_reduce / 100); |
|
15 | } |
||
16 | } |