@@ 615-625 (lines=11) @@ | ||
612 | $leftWidth = null, |
|
613 | string $colour = null |
|
614 | ) : self { |
|
615 | if (!is_int($rightWidth)) { |
|
616 | $colour = $rightWidth; |
|
617 | $rightWidth = $bottomWidth = $leftWidth = $topWidth; |
|
618 | } elseif (!is_int($bottomWidth)) { |
|
619 | $colour = $bottomWidth; |
|
620 | $bottomWidth = $topWidth; |
|
621 | $leftWidth = $rightWidth; |
|
622 | } elseif (!is_int($leftWidth)) { |
|
623 | $colour = $leftWidth; |
|
624 | $leftWidth = $rightWidth; |
|
625 | } |
|
626 | ||
627 | $this->borderTopWidth = $topWidth; |
|
628 | $this->borderRightWidth = $rightWidth; |
@@ 269-279 (lines=11) @@ | ||
266 | $leftWidth = null, |
|
267 | string $colour = null |
|
268 | ) : self { |
|
269 | if (!is_int($rightWidth)) { |
|
270 | $colour = $rightWidth; |
|
271 | $rightWidth = $bottomWidth = $leftWidth = $topWidth; |
|
272 | } elseif (!is_int($bottomWidth)) { |
|
273 | $colour = $bottomWidth; |
|
274 | $bottomWidth = $topWidth; |
|
275 | $leftWidth = $rightWidth; |
|
276 | } elseif (!is_int($leftWidth)) { |
|
277 | $colour = $leftWidth; |
|
278 | $leftWidth = $rightWidth; |
|
279 | } |
|
280 | ||
281 | $this->style['borderTopWidth'] = $topWidth; |
|
282 | $this->style['borderRightWidth'] = $rightWidth; |