Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
59 | private function calcPerColumn() : float |
||
60 | { |
||
61 | $toDistribute = $this->calculator->getMaxTotal() - $this->operations->calcTotal(); |
||
62 | |||
63 | if($toDistribute <= 0) |
||
64 | { |
||
65 | $toDistribute = $this->calculator->getMinWidth() * $this->missing; |
||
66 | } |
||
67 | |||
68 | return $toDistribute / $this->missing; |
||
69 | } |
||
71 |