| @@ 290-300 (lines=11) @@ | ||
| 287 | $leftWidth = null, |
|
| 288 | string $colour = null |
|
| 289 | ) : self { |
|
| 290 | if (!is_int($rightWidth)) { |
|
| 291 | $colour = $rightWidth; |
|
| 292 | $rightWidth = $bottomWidth = $leftWidth = $topWidth; |
|
| 293 | } elseif (!is_int($bottomWidth)) { |
|
| 294 | $colour = $bottomWidth; |
|
| 295 | $bottomWidth = $topWidth; |
|
| 296 | $leftWidth = $rightWidth; |
|
| 297 | } elseif (!is_int($leftWidth)) { |
|
| 298 | $colour = $leftWidth; |
|
| 299 | $leftWidth = $rightWidth; |
|
| 300 | } |
|
| 301 | ||
| 302 | $this->style['borderTopWidth'] = $topWidth; |
|
| 303 | $this->style['borderRightWidth'] = $rightWidth; |
|
| @@ 514-524 (lines=11) @@ | ||
| 511 | $leftWidth = null, |
|
| 512 | string $colour = null |
|
| 513 | ) : self { |
|
| 514 | if (!is_int($rightWidth)) { |
|
| 515 | $colour = $rightWidth; |
|
| 516 | $rightWidth = $bottomWidth = $leftWidth = $topWidth; |
|
| 517 | } elseif (!is_int($bottomWidth)) { |
|
| 518 | $colour = $bottomWidth; |
|
| 519 | $bottomWidth = $topWidth; |
|
| 520 | $leftWidth = $rightWidth; |
|
| 521 | } elseif (!is_int($leftWidth)) { |
|
| 522 | $colour = $leftWidth; |
|
| 523 | $leftWidth = $rightWidth; |
|
| 524 | } |
|
| 525 | ||
| 526 | $this->borderTopWidth = $topWidth; |
|
| 527 | $this->borderRightWidth = $rightWidth; |
|