mirror of
https://github.com/Karaka-Management/oms-Tag.git
synced 2026-01-23 21:08:42 +00:00
autofixes
This commit is contained in:
parent
4af355e54b
commit
e3b541fe38
|
|
@ -186,7 +186,7 @@ class Tag implements \JsonSerializable, ArrayableInterface
|
|||
} elseif ($this->title instanceof TagL11n && \is_string($title)) {
|
||||
$this->title->title = $title;
|
||||
} elseif (\is_string($title)) {
|
||||
$this->title = new TagL11n();
|
||||
$this->title = new TagL11n();
|
||||
$this->title->title = $title;
|
||||
$this->title->setLanguage($lang);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class TagL11nMapperTest extends \PHPUnit\Framework\TestCase
|
|||
self::assertGreaterThan(0, $tag->getId());
|
||||
self::assertEquals($id, $tag->getId());
|
||||
|
||||
$l11n = new TagL11n();
|
||||
$l11n = new TagL11n();
|
||||
$l11n->title = 'TestTitle';
|
||||
$l11n->setLanguage(ISO639x1Enum::_EN);
|
||||
$l11n->setTag($id);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user