@@ -36,7 +36,7 @@ |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | |
| 39 | - return trigger_error('Call to undefined method '. static::class . "::{$name}()", E_USER_ERROR); |
|
| 39 | + return trigger_error('Call to undefined method '.static::class."::{$name}()", E_USER_ERROR); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | * Builder constructor. |
| 57 | 57 | * @param GraphBuilder|null $builder |
| 58 | 58 | */ |
| 59 | - public function __construct(?GraphBuilder $builder = null) |
|
| 59 | + public function __construct(? GraphBuilder $builder = null) |
|
| 60 | 60 | { |
| 61 | 61 | $this->builder = $builder; |
| 62 | 62 | } |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | * @param float|null $y |
| 56 | 56 | * @param float|null $z |
| 57 | 57 | */ |
| 58 | - public function __construct(?float $x = null, ?float $y = null, ?float $z = null) |
|
| 58 | + public function __construct(? float $x = null, ? float $y = null, ? float $z = null) |
|
| 59 | 59 | { |
| 60 | 60 | $this->id = $this::$increment++; |
| 61 | 61 | |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | * Builder constructor. |
| 57 | 57 | * @param GraphBuilder|null $builder |
| 58 | 58 | */ |
| 59 | - public function __construct(?GraphBuilder $builder = null) |
|
| 59 | + public function __construct(? GraphBuilder $builder = null) |
|
| 60 | 60 | { |
| 61 | 61 | $this->builder = $builder; |
| 62 | 62 | } |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | * @param Node $to |
| 115 | 115 | * @return null|Connection |
| 116 | 116 | */ |
| 117 | - public function getNearestConnection(Node $from, Node $to) : ?Connection |
|
| 117 | + public function getNearestConnection(Node $from, Node $to) : ? Connection |
|
| 118 | 118 | { |
| 119 | 119 | /** |
| 120 | 120 | * @var null|Connection $nearest |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | * @param Node $to |
| 140 | 140 | * @return null|float |
| 141 | 141 | */ |
| 142 | - public function getNearestDistance(Node $from, Node $to) : ?float |
|
| 142 | + public function getNearestDistance(Node $from, Node $to) : ? float |
|
| 143 | 143 | { |
| 144 | 144 | $nearest = $this->getNearestConnection($from, $to); |
| 145 | 145 | |