| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 10 | public function getHeightByContent(int $endOfPreviousSibling = 0): int |
|
| 22 | { |
||
| 23 | 10 | $deltaTop = $this->__get('paddingTop') + $this->__get('borderTop'); |
|
| 24 | 10 | $this->offsetY = $deltaTop; |
|
| 25 | 10 | if ($this->renderedHeight) { |
|
| 26 | 8 | return $this->height; |
|
| 27 | } |
||
| 28 | 10 | foreach ($this->children as $child) { |
|
| 29 | 10 | $this->height = $child->getHeightByContent(0); |
|
| 30 | } |
||
| 31 | 10 | parent::appendHeight($this->height); |
|
| 32 | 10 | return $this->height; |
|
| 33 | } |
||
| 35 |