| @@ 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; |
|
| @@ 474-484 (lines=11) @@ | ||
| 471 | $leftWidth = null, |
|
| 472 | string $colour = null |
|
| 473 | ) : self { |
|
| 474 | if (!is_int($rightWidth)) { |
|
| 475 | $colour = $rightWidth; |
|
| 476 | $rightWidth = $bottomWidth = $leftWidth = $topWidth; |
|
| 477 | } elseif (!is_int($bottomWidth)) { |
|
| 478 | $colour = $bottomWidth; |
|
| 479 | $bottomWidth = $topWidth; |
|
| 480 | $leftWidth = $rightWidth; |
|
| 481 | } elseif (!is_int($leftWidth)) { |
|
| 482 | $colour = $leftWidth; |
|
| 483 | $leftWidth = $rightWidth; |
|
| 484 | } |
|
| 485 | ||
| 486 | $this->borderTopWidth = $topWidth; |
|
| 487 | $this->borderRightWidth = $rightWidth; |
|