small changes

This commit is contained in:
DavidBadura 2015-02-08 15:40:37 +00:00
parent 6d13ee7d3a
commit 85132b8189
3 changed files with 10 additions and 3 deletions

View File

@ -39,6 +39,14 @@ class Recurring
} }
} }
/**
* @return string
*/
public function getValue()
{
return $this->recurring;
}
/** /**
* @return string * @return string
*/ */

View File

@ -48,7 +48,7 @@ class RecurringHandler implements SubscribingHandlerInterface
*/ */
public function serializeCarbon(VisitorInterface $visitor, Recurring $recurring, array $type, Context $context) public function serializeCarbon(VisitorInterface $visitor, Recurring $recurring, array $type, Context $context)
{ {
return $visitor->visitString((string)$recurring, $type, $context); return $visitor->visitString($recurring->getValue(), $type, $context);
} }
/** /**

View File

@ -221,7 +221,7 @@ class TaskManager
try { try {
$this->taskwarrior->command('list'); $this->taskwarrior->command('list');
} catch (TaskwarriorException $e) { } catch (TaskwarriorException $e) {
// to nothing // do nothing
} }
} }
@ -281,7 +281,6 @@ class TaskManager
$registry->registerSubscribingHandler(new RecurringHandler()); $registry->registerSubscribingHandler(new RecurringHandler());
}) })
->addDefaultHandlers() ->addDefaultHandlers()
->setDebug(true)
->build(); ->build();
} }