diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-12-22 13:08:00 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-12-22 13:08:00 +0100 |
commit | 735b9fb81a83ae182bf9c005f1fbbbcce12d9b64 (patch) | |
tree | e6b94e217df49eb80317e7a853371f2a03964a61 /lib/private/Console | |
parent | 0b8a9fcaead4074d603c6a66f0c6c4c63d89dc51 (diff) | |
download | nextcloud-server-735b9fb81a83ae182bf9c005f1fbbbcce12d9b64.tar.gz nextcloud-server-735b9fb81a83ae182bf9c005f1fbbbcce12d9b64.zip |
Fixup code
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Console')
-rw-r--r-- | lib/private/Console/TimestampFormatter.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Console/TimestampFormatter.php b/lib/private/Console/TimestampFormatter.php index 66dd38e6ac3..9ced9e18b31 100644 --- a/lib/private/Console/TimestampFormatter.php +++ b/lib/private/Console/TimestampFormatter.php @@ -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); |