@@ 275-285 (lines=11) @@ | ||
272 | $leftWidth = null, |
|
273 | string $colour = null |
|
274 | ) : self { |
|
275 | if (!is_int($rightWidth)) { |
|
276 | $colour = $rightWidth; |
|
277 | $rightWidth = $bottomWidth = $leftWidth = $topWidth; |
|
278 | } elseif (!is_int($bottomWidth)) { |
|
279 | $colour = $bottomWidth; |
|
280 | $bottomWidth = $topWidth; |
|
281 | $leftWidth = $rightWidth; |
|
282 | } elseif (!is_int($leftWidth)) { |
|
283 | $colour = $leftWidth; |
|
284 | $leftWidth = $rightWidth; |
|
285 | } |
|
286 | ||
287 | $this->style['borderTopWidth'] = $topWidth; |
|
288 | $this->style['borderRightWidth'] = $rightWidth; |
@@ 442-452 (lines=11) @@ | ||
439 | $leftWidth = null, |
|
440 | string $colour = null |
|
441 | ) : self { |
|
442 | if (!is_int($rightWidth)) { |
|
443 | $colour = $rightWidth; |
|
444 | $rightWidth = $bottomWidth = $leftWidth = $topWidth; |
|
445 | } elseif (!is_int($bottomWidth)) { |
|
446 | $colour = $bottomWidth; |
|
447 | $bottomWidth = $topWidth; |
|
448 | $leftWidth = $rightWidth; |
|
449 | } elseif (!is_int($leftWidth)) { |
|
450 | $colour = $leftWidth; |
|
451 | $leftWidth = $rightWidth; |
|
452 | } |
|
453 | ||
454 | $this->borderTopWidth = $topWidth; |
|
455 | $this->borderRightWidth = $rightWidth; |