Fixup code

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-12-22 13:08:00 +01:00
parent 0b8a9fcaea
commit 735b9fb81a
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 5 additions and 1 deletions

View File

@ -31,6 +31,9 @@ class TimestampFormatter implements OutputFormatterInterface {
/** @var IConfig */
protected $config;
/** @var OutputFormatterInterface */
protected $formatter;
/**
* @param IConfig $config
* @param OutputFormatterInterface $formatter
@ -75,7 +78,7 @@ class TimestampFormatter implements OutputFormatterInterface {
* @return bool
*/
public function hasStyle($name) {
$this->formatter->hasStyle($name);
return $this->formatter->hasStyle($name);
}
/**
@ -83,6 +86,7 @@ class TimestampFormatter implements OutputFormatterInterface {
*
* @param string $name
* @return OutputFormatterStyleInterface
* @throws \InvalidArgumentException When style isn't defined
*/
public function getStyle($name) {
return $this->formatter->getStyle($name);