File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,7 @@ public function run(): void
25
25
{
26
26
$ finder = $ this ->createFinder ();
27
27
$ entries = $ this ->findEntries ($ finder );
28
-
29
- $ relation = new Relation ($ entries , $ this ->options );
30
- $ this ->renderRelations ($ relation );
28
+ $ this ->renderEntries ($ entries );
31
29
}
32
30
33
31
private function createFinder (): Finder
@@ -67,8 +65,13 @@ private function findEntries(Finder $finder): array
67
65
return $ entries ;
68
66
}
69
67
70
- private function renderRelations (Relation $ relation ): void
68
+ /**
69
+ * @param list<Entry> $entries
70
+ */
71
+ private function renderEntries (array $ entries ): void
71
72
{
73
+ $ relation = new Relation ($ entries , $ this ->options );
74
+
72
75
switch ($ this ->options ->diagram ()) {
73
76
case Options::DIAGRAM_CLASS :
74
77
echo implode ("\r\n" , $ relation ->dump ()) . "\r\n" ;
You can’t perform that action at this time.
0 commit comments