diff --git a/public/class-bread-format-manager.php b/public/class-bread-format-manager.php index 41a7306..8bef612 100644 --- a/public/class-bread-format-manager.php +++ b/public/class-bread-format-manager.php @@ -144,7 +144,7 @@ public function getFormatByKey(string $lang, string $key): array|null * @param string $lang * @return array */ - public function getFormatsUsed(string $lang=''): array + public function getFormatsUsed(string $lang = ''): array { $lang = ($lang == '') ? $this->defaultLang : $lang; if (!isset($this->usedFormats[$lang])) { diff --git a/tests/BreadFormatsManagerTest.php b/tests/BreadFormatsManagerTest.php index 652353b..43f2651 100644 --- a/tests/BreadFormatsManagerTest.php +++ b/tests/BreadFormatsManagerTest.php @@ -16,15 +16,16 @@ private function getFormatMgr($usedFormat, $lang) Bread_Bmlt::setFormatBase('german-formats'); return new Bread_FormatsManager($this->getFormats($usedFormat), $lang); } - public function testGetFormatsUsed() { - $mgr = $this->getFormatMgr('berlin-formats-de','de'); + public function testGetFormatsUsed() + { + $mgr = $this->getFormatMgr('berlin-formats-de', 'de'); $used = $mgr->getFormatsUsed(); - assertEquals(50,count($used)); - $o1 = $mgr->getFormatByKey('de','O1'); + assertEquals(50, count($used)); + $o1 = $mgr->getFormatByKey('de', 'O1'); assertNotNull($o1); - $o1e = $mgr->getFormatByKey('en','O1'); + $o1e = $mgr->getFormatByKey('en', 'O1'); assertNotNull($o1e); $used = $mgr->getFormatsUsed('en'); - assertEquals(50,count($used)); + assertEquals(50, count($used)); } -} \ No newline at end of file +}