Skip to content

Commit ba33c4e

Browse files
committed
It helps if you return values from functions
1 parent 2a77f3c commit ba33c4e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Branding.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function getLanguage()
132132
*/
133133
public function getLocale()
134134
{
135-
$this->options['language'];
135+
return $this->options['language'];
136136
}
137137

138138
/**

tests/BrandingTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function testConstructor()
3333
$this->assertEquals($expectedOptions, $branding->getOptions());
3434
$this->assertEquals('en-GB', $branding->getOrbitLanguage());
3535
$this->assertEquals('en-GB', $branding->getLanguage());
36+
$this->assertEquals('en_GB', $branding->getLocale());
3637
$this->assertEquals('default', $branding->getOrbitVariant());
3738
$this->assertEquals(null, $branding->getOrbitSearchScope());
3839
$this->assertEquals(

0 commit comments

Comments
 (0)