File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 10
10
},
11
11
"require" : {
12
12
"php" : " >=5.3.0" ,
13
- "graphp/graph" : " dev-master#a9d8cfc as 1.0.0"
13
+ "graphp/graph" : " dev-master#214de45 as 1.0.0"
14
14
},
15
15
"require-dev" : {
16
16
"phpunit/phpunit" : " ^9.3 || ^5.7 || ^4.8.35"
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ public function createScript(Graph $graph)
305
305
$ vid = $ vids [\spl_object_hash ($ vertex )];
306
306
$ layout = $ this ->getLayoutVertex ($ vertex , $ vid );
307
307
308
- if ($ layout || $ vertex ->getEdges ()-> isEmpty ()) {
308
+ if ($ layout || ! $ vertex ->getEdges ()) {
309
309
$ script .= $ this ->formatIndent . $ this ->escape ($ vid );
310
310
if ($ layout ) {
311
311
$ script .= ' ' . $ this ->escapeAttributes ($ layout );
@@ -319,7 +319,7 @@ public function createScript(Graph $graph)
319
319
320
320
// add all edges as directed edges
321
321
foreach ($ graph ->getEdges () as $ currentEdge ) {
322
- $ both = $ currentEdge ->getVertices ()-> getVector () ;
322
+ $ both = $ currentEdge ->getVertices ();
323
323
$ currentStartVertex = $ both [0 ];
324
324
$ currentTargetVertex = $ both [1 ];
325
325
You can’t perform that action at this time.
0 commit comments