Skip to content

Commit a370dba

Browse files
Remove useless code
1 parent 432717f commit a370dba

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Diff for: Dumper/PlantUmlDumper.php

+4-7
Original file line numberDiff line numberDiff line change
@@ -115,23 +115,20 @@ public function dump(Definition $definition, ?Marking $marking = null, array $op
115115
}
116116
}
117117

118-
return $this->startPuml($options).$this->getLines($code).$this->endPuml($options);
118+
return $this->startPuml().$this->getLines($code).$this->endPuml();
119119
}
120120

121121
private function isWorkflowTransitionType(): bool
122122
{
123123
return self::WORKFLOW_TRANSITION === $this->transitionType;
124124
}
125125

126-
private function startPuml(array $options): string
126+
private function startPuml(): string
127127
{
128-
$start = '@startuml'.\PHP_EOL;
129-
$start .= 'allow_mixing'.\PHP_EOL;
130-
131-
return $start;
128+
return '@startuml'.\PHP_EOL.'allow_mixing'.\PHP_EOL;
132129
}
133130

134-
private function endPuml(array $options): string
131+
private function endPuml(): string
135132
{
136133
return \PHP_EOL.'@enduml';
137134
}

0 commit comments

Comments
 (0)