Skip to content

Commit

Permalink
Fixup code
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer committed Dec 22, 2017
1 parent 0b8a9fc commit 735b9fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/private/Console/TimestampFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class TimestampFormatter implements OutputFormatterInterface {
/** @var IConfig */
protected $config;

/** @var OutputFormatterInterface */
protected $formatter;

/**
* @param IConfig $config
* @param OutputFormatterInterface $formatter
Expand Down Expand Up @@ -75,14 +78,15 @@ public function setStyle($name, OutputFormatterStyleInterface $style) {
* @return bool
*/
public function hasStyle($name) {
$this->formatter->hasStyle($name);
return $this->formatter->hasStyle($name);
}

/**
* Gets style options from style with specified name.
*
* @param string $name
* @return OutputFormatterStyleInterface
* @throws \InvalidArgumentException When style isn't defined
*/
public function getStyle($name) {
return $this->formatter->getStyle($name);
Expand Down

0 comments on commit 735b9fb

Please sign in to comment.