@@ -708,8 +708,7 @@ public function getVertex($graph, $vertexId, array $options = [], $collection =
708
708
}
709
709
$ parts = explode ('/ ' , $ vertexId );
710
710
if (count ($ parts ) === 2 ) {
711
- $ vertexId = $ parts [1 ];
712
- $ collection = $ parts [0 ];
711
+ list ($ collection , $ vertexId ) = $ parts ;
713
712
}
714
713
715
714
if ($ collection === null ) {
@@ -799,8 +798,7 @@ public function replaceVertex($graph, $vertexId, Document $document, array $opti
799
798
800
799
$ parts = explode ('/ ' , $ vertexId );
801
800
if (count ($ parts ) === 2 ) {
802
- $ vertexId = $ parts [1 ];
803
- $ collection = $ parts [0 ];
801
+ list ($ collection , $ vertexId ) = $ parts ;
804
802
}
805
803
806
804
if ($ collection === null ) {
@@ -893,8 +891,7 @@ public function updateVertex($graph, $vertexId, Document $document, array $optio
893
891
}
894
892
$ parts = explode ('/ ' , $ vertexId );
895
893
if (count ($ parts ) === 2 ) {
896
- $ vertexId = $ parts [1 ];
897
- $ collection = $ parts [0 ];
894
+ list ($ collection , $ vertexId ) = $ parts ;
898
895
}
899
896
900
897
if ($ collection === null ) {
@@ -972,8 +969,7 @@ public function removeVertex($graph, $vertexId, $revision = null, array $options
972
969
}
973
970
$ parts = explode ('/ ' , $ vertexId );
974
971
if (count ($ parts ) === 2 ) {
975
- $ vertexId = $ parts [1 ];
976
- $ collection = $ parts [0 ];
972
+ list ($ collection , $ vertexId ) = $ parts ;
977
973
}
978
974
979
975
if ($ collection === null ) {
@@ -1105,8 +1101,7 @@ public function getEdge($graph, $edgeId, array $options = [], $collection = null
1105
1101
}
1106
1102
$ parts = explode ('/ ' , $ edgeId );
1107
1103
if (count ($ parts ) === 2 ) {
1108
- $ edgeId = $ parts [1 ];
1109
- $ collection = $ parts [0 ];
1104
+ list ($ collection , $ edgeId ) = $ parts ;
1110
1105
}
1111
1106
1112
1107
if ($ collection === null ) {
@@ -1197,8 +1192,7 @@ public function replaceEdge($graph, $edgeId, $label, Edge $document, array $opti
1197
1192
}
1198
1193
$ parts = explode ('/ ' , $ edgeId );
1199
1194
if (count ($ parts ) === 2 ) {
1200
- $ edgeId = $ parts [1 ];
1201
- $ collection = $ parts [0 ];
1195
+ list ($ collection , $ edgeId ) = $ parts ;
1202
1196
}
1203
1197
1204
1198
if ($ collection === null ) {
@@ -1300,8 +1294,7 @@ public function updateEdge($graph, $edgeId, $label, Edge $document, array $optio
1300
1294
}
1301
1295
$ parts = explode ('/ ' , $ edgeId );
1302
1296
if (count ($ parts ) === 2 ) {
1303
- $ edgeId = $ parts [1 ];
1304
- $ collection = $ parts [0 ];
1297
+ list ($ collection , $ edgeId ) = $ parts ;
1305
1298
}
1306
1299
1307
1300
if ($ collection === null ) {
@@ -1384,8 +1377,7 @@ public function removeEdge($graph, $edgeId, $revision = null, array $options = [
1384
1377
}
1385
1378
$ parts = explode ('/ ' , $ edgeId );
1386
1379
if (count ($ parts ) === 2 ) {
1387
- $ edgeId = $ parts [1 ];
1388
- $ collection = $ parts [0 ];
1380
+ list ($ collection , $ edgeId ) = $ parts ;
1389
1381
}
1390
1382
1391
1383
if ($ collection === null ) {
0 commit comments