@@ -4,9 +4,9 @@ |
||
| 4 | 4 | class Point |
| 5 | 5 | { |
| 6 | 6 | protected $id, |
| 7 | - $x, |
|
| 8 | - $y, |
|
| 9 | - $label = null; |
|
| 7 | + $x, |
|
| 8 | + $y, |
|
| 9 | + $label = null; |
|
| 10 | 10 | |
| 11 | 11 | public function __construct($id, $label = null) |
| 12 | 12 | { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | |
| 71 | 71 | $this->each(function ($connection) use (&$connections, $from) { |
| 72 | 72 | if ($connection->from |
| 73 | - ->id == $from) { |
|
| 73 | + ->id == $from) { |
|
| 74 | 74 | $connections[] = $connection; |
| 75 | 75 | } |
| 76 | 76 | }); |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | foreach ($connections as $connection) { |
| 12 | 12 | $this->add($connection); |
| 13 | 13 | } |
| 14 | - } elseif(!is_null($connections)) { |
|
| 14 | + } elseif (!is_null($connections)) { |
|
| 15 | 15 | throw new ConnectionException('ConnectionsContainer contructor only accept connections array'); |
| 16 | 16 | } |
| 17 | 17 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | { |
| 69 | 69 | $connections = array(); |
| 70 | 70 | |
| 71 | - $this->each(function ($connection) use (&$connections, $from) { |
|
| 71 | + $this->each(function($connection) use (&$connections, $from) { |
|
| 72 | 72 | if ($connection->from |
| 73 | 73 | ->id == $from) { |
| 74 | 74 | $connections[] = $connection; |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | class Creator |
| 5 | 5 | { |
| 6 | 6 | protected $points = array(), |
| 7 | - $labels = array(); |
|
| 7 | + $labels = array(); |
|
| 8 | 8 | |
| 9 | 9 | public function __construct($points = null) |
| 10 | 10 | { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | foreach ($points as $point) { |
| 13 | 13 | $this->add($point); |
| 14 | 14 | } |
| 15 | - } elseif(!is_null($points)) { |
|
| 15 | + } elseif (!is_null($points)) { |
|
| 16 | 16 | throw new CreatorException('Creator contructor only accept points array'); |
| 17 | 17 | } |
| 18 | 18 | } |