@@ -467,9 +467,9 @@ discard block |
||
467 | 467 | public function getChildrenCenter() |
468 | 468 | { |
469 | 469 | $node = $this->getChildAt(0); |
470 | - $node1 = $this->getChildAt(count($this->children) - 1); |
|
470 | + $node1 = $this->getChildAt(count($this->children)-1); |
|
471 | 471 | |
472 | - return $node->getOffset() + (($node1->getOffset() - $node->getOffset()) + $node1->getWidth()) / 2; |
|
472 | + return $node->getOffset()+(($node1->getOffset()-$node->getOffset())+$node1->getWidth())/2; |
|
473 | 473 | } |
474 | 474 | |
475 | 475 | /** |
@@ -521,14 +521,14 @@ discard block |
||
521 | 521 | */ |
522 | 522 | public function setUpLinks() |
523 | 523 | { |
524 | - $xa = $this->x + ($this->width / 2); |
|
525 | - $ya = $this->y + $this->height; |
|
524 | + $xa = $this->x+($this->width/2); |
|
525 | + $ya = $this->y+$this->height; |
|
526 | 526 | |
527 | 527 | foreach ($this->children as $child) { |
528 | - $xd = $xc = $child->getX() + ($child->getWidth() / 2); |
|
528 | + $xd = $xc = $child->getX()+($child->getWidth()/2); |
|
529 | 529 | $yd = $child->getY(); |
530 | 530 | $xb = $xa; |
531 | - $yb = $yc = $ya + ($yd - $ya) / 2; |
|
531 | + $yb = $yc = $ya+($yd-$ya)/2; |
|
532 | 532 | $this->links[$child->id]['xa'] = $xa; |
533 | 533 | $this->links[$child->id]['ya'] = $ya; |
534 | 534 | $this->links[$child->id]['xb'] = $xb; |