@@ 306-316 (lines=11) @@ | ||
303 | $leftWidth = null, |
|
304 | string $colour = null |
|
305 | ) : self { |
|
306 | if (!is_int($rightWidth)) { |
|
307 | $colour = $rightWidth; |
|
308 | $rightWidth = $bottomWidth = $leftWidth = $topWidth; |
|
309 | } elseif (!is_int($bottomWidth)) { |
|
310 | $colour = $bottomWidth; |
|
311 | $bottomWidth = $topWidth; |
|
312 | $leftWidth = $rightWidth; |
|
313 | } elseif (!is_int($leftWidth)) { |
|
314 | $colour = $leftWidth; |
|
315 | $leftWidth = $rightWidth; |
|
316 | } |
|
317 | ||
318 | $this->style['borderTopWidth'] = $topWidth; |
|
319 | $this->style['borderRightWidth'] = $rightWidth; |
@@ 601-611 (lines=11) @@ | ||
598 | $leftWidth = null, |
|
599 | string $colour = null |
|
600 | ) : self { |
|
601 | if (!is_int($rightWidth)) { |
|
602 | $colour = $rightWidth; |
|
603 | $rightWidth = $bottomWidth = $leftWidth = $topWidth; |
|
604 | } elseif (!is_int($bottomWidth)) { |
|
605 | $colour = $bottomWidth; |
|
606 | $bottomWidth = $topWidth; |
|
607 | $leftWidth = $rightWidth; |
|
608 | } elseif (!is_int($leftWidth)) { |
|
609 | $colour = $leftWidth; |
|
610 | $leftWidth = $rightWidth; |
|
611 | } |
|
612 | ||
613 | $this->borderTopWidth = $topWidth; |
|
614 | $this->borderRightWidth = $rightWidth; |