| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 70 | private function calcPerColumn() : float |
||
| 71 | { |
||
| 72 | $toDistribute = $this->calculator->getMaxTotal() - $this->operations->calcTotal(); |
||
| 73 | |||
| 74 | if($toDistribute <= 0) |
||
| 75 | { |
||
| 76 | $toDistribute = $this->calculator->getMinWidth() * $this->missing; |
||
| 77 | } |
||
| 78 | |||
| 79 | return $toDistribute / $this->missing; |
||
| 80 | } |
||
| 82 |