File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ final class Options
16
16
public const DIAGRAM_CLASS = 'class ' ;
17
17
public const DIAGRAM_PACKAGE = 'package ' ;
18
18
public const DIAGRAM_JIG = 'jig ' ;
19
- public const DIAGRAM_DIVSION = 'division ' ;
19
+ public const DIAGRAM_DIVISION = 'division ' ;
20
20
21
21
/**
22
22
* @param array<string, mixed> $opt Option array
@@ -49,7 +49,7 @@ public function diagram(): string
49
49
return self ::DIAGRAM_JIG ;
50
50
}
51
51
if (isset ($ this ->opt ['division-diagram ' ])) {
52
- return self ::DIAGRAM_DIVSION ;
52
+ return self ::DIAGRAM_DIVISION ;
53
53
}
54
54
// default
55
55
return self ::DIAGRAM_CLASS ;
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ private function renderEntries(array $entries): void
76
76
Options::DIAGRAM_CLASS => $ this ->renderDiagramClass ($ relation ),
77
77
OPTIONS ::DIAGRAM_PACKAGE => $ this ->renderDiagramPackage ($ relation ),
78
78
OPTIONS ::DIAGRAM_JIG => $ this ->renderDiagramJig ($ relation ),
79
- OPTIONS ::DIAGRAM_DIVSION => $ this ->renderDiagramVivsion ($ relation ),
79
+ OPTIONS ::DIAGRAM_DIVISION => $ this ->renderDiagramDivision ($ relation ),
80
80
default => throw new RuntimeException ('invalid diagram. ' )
81
81
};
82
82
}
@@ -98,7 +98,7 @@ private function renderDiagramJig(Relation $relation): void
98
98
echo implode ("\r\n" , $ relation ->dumpDivisions ()) . "\r\n" ;
99
99
}
100
100
101
- private function renderDiagramVivsion (Relation $ relation ): void
101
+ private function renderDiagramDivision (Relation $ relation ): void
102
102
{
103
103
echo implode ("\r\n" , $ relation ->dumpDivisions ()) . "\r\n" ;
104
104
}
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ public function testDiagram_division(): void
178
178
179
179
$ options = new Options ($ opt );
180
180
181
- $ this ->assertSame (Options::DIAGRAM_DIVSION , $ options ->diagram (), 'diagram is division. ' );
181
+ $ this ->assertSame (Options::DIAGRAM_DIVISION , $ options ->diagram (), 'diagram is division. ' );
182
182
}
183
183
public function testDiagram3 (): void
184
184
{
You can’t perform that action at this time.
0 commit comments