Skip to content

Commit fc1261c

Browse files
committed
fix: typo DIVSION
1 parent 3340700 commit fc1261c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Config/Options.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ final class Options
1616
public const DIAGRAM_CLASS = 'class';
1717
public const DIAGRAM_PACKAGE = 'package';
1818
public const DIAGRAM_JIG = 'jig';
19-
public const DIAGRAM_DIVSION = 'division';
19+
public const DIAGRAM_DIVISION = 'division';
2020

2121
/**
2222
* @param array<string, mixed> $opt Option array
@@ -49,7 +49,7 @@ public function diagram(): string
4949
return self::DIAGRAM_JIG;
5050
}
5151
if (isset($this->opt['division-diagram'])) {
52-
return self::DIAGRAM_DIVSION;
52+
return self::DIAGRAM_DIVISION;
5353
}
5454
// default
5555
return self::DIAGRAM_CLASS;

src/Main.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private function renderEntries(array $entries): void
7676
Options::DIAGRAM_CLASS => $this->renderDiagramClass($relation),
7777
OPTIONS::DIAGRAM_PACKAGE => $this->renderDiagramPackage($relation),
7878
OPTIONS::DIAGRAM_JIG => $this->renderDiagramJig($relation),
79-
OPTIONS::DIAGRAM_DIVSION => $this->renderDiagramVivsion($relation),
79+
OPTIONS::DIAGRAM_DIVISION => $this->renderDiagramDivision($relation),
8080
default => throw new RuntimeException('invalid diagram.')
8181
};
8282
}
@@ -98,7 +98,7 @@ private function renderDiagramJig(Relation $relation): void
9898
echo implode("\r\n", $relation->dumpDivisions()) . "\r\n";
9999
}
100100

101-
private function renderDiagramVivsion(Relation $relation): void
101+
private function renderDiagramDivision(Relation $relation): void
102102
{
103103
echo implode("\r\n", $relation->dumpDivisions()) . "\r\n";
104104
}

test/OptionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function testDiagram_division(): void
178178

179179
$options = new Options($opt);
180180

181-
$this->assertSame(Options::DIAGRAM_DIVSION, $options->diagram(), 'diagram is division.');
181+
$this->assertSame(Options::DIAGRAM_DIVISION, $options->diagram(), 'diagram is division.');
182182
}
183183
public function testDiagram3(): void
184184
{

0 commit comments

Comments
 (0)