Skip to content

Commit 45a9d32

Browse files
committed
Fix PHPMD Problem
1 parent 40a8013 commit 45a9d32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PhpWord/Writer/HTML/Element/Ruby.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function write()
5858
return $content;
5959
}
6060

61-
private const mapAlignment = [
61+
private const MAP_ALIGNMENT = [
6262
RubyProperties::ALIGNMENT_CENTER => 'center',
6363
RubyProperties::ALIGNMENT_LEFT => 'start',
6464
];
@@ -69,7 +69,7 @@ public function write()
6969
private function getPropertyCssForRubyTag(RubyProperties $properties): string
7070
{
7171
// alignment CSS: https://developer.mozilla.org/en-US/docs/Web/CSS/ruby-align
72-
$alignment = self::mapAlignment[$properties->getAlignment()] ?? 'space-between';
72+
$alignment = self::MAP_ALIGNMENT[$properties->getAlignment()] ?? 'space-between';
7373

7474
return
7575
'font-size:' . $properties->getFontSizeForBaseText() . 'pt' . ';' .

0 commit comments

Comments
 (0)