@@ 611-621 (lines=11) @@ | ||
608 | $leftWidth = null, |
|
609 | string $colour = null |
|
610 | ) : self { |
|
611 | if (!is_int($rightWidth)) { |
|
612 | $colour = $rightWidth; |
|
613 | $rightWidth = $bottomWidth = $leftWidth = $topWidth; |
|
614 | } elseif (!is_int($bottomWidth)) { |
|
615 | $colour = $bottomWidth; |
|
616 | $bottomWidth = $topWidth; |
|
617 | $leftWidth = $rightWidth; |
|
618 | } elseif (!is_int($leftWidth)) { |
|
619 | $colour = $leftWidth; |
|
620 | $leftWidth = $rightWidth; |
|
621 | } |
|
622 | ||
623 | $this->borderTopWidth = $topWidth; |
|
624 | $this->borderRightWidth = $rightWidth; |
@@ 318-328 (lines=11) @@ | ||
315 | $leftWidth = null, |
|
316 | string $colour = null |
|
317 | ) : self { |
|
318 | if (!is_int($rightWidth)) { |
|
319 | $colour = $rightWidth; |
|
320 | $rightWidth = $bottomWidth = $leftWidth = $topWidth; |
|
321 | } elseif (!is_int($bottomWidth)) { |
|
322 | $colour = $bottomWidth; |
|
323 | $bottomWidth = $topWidth; |
|
324 | $leftWidth = $rightWidth; |
|
325 | } elseif (!is_int($leftWidth)) { |
|
326 | $colour = $leftWidth; |
|
327 | $leftWidth = $rightWidth; |
|
328 | } |
|
329 | ||
330 | $this->style['borderTopWidth'] = $topWidth; |
|
331 | $this->style['borderRightWidth'] = $rightWidth; |