From 850a32f36d68dedd92f2c0781b5bf3ac5e30ec8c Mon Sep 17 00:00:00 2001 From: Jan-Paul Kleemans Date: Fri, 13 Nov 2015 11:54:32 +0100 Subject: [PATCH] PHPDoc consistency --- Slim/Container.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Slim/Container.php b/Slim/Container.php index 2655b987c..8dee7fb13 100644 --- a/Slim/Container.php +++ b/Slim/Container.php @@ -161,22 +161,22 @@ private function registerDefaultServices($userSettings) }; } - /** - * This service MUST return a callable - * that accepts three arguments: - * - * 1. Instance of \Psr\Http\Message\ServerRequestInterface - * 2. Instance of \Psr\Http\Message\ResponseInterface - * 3. Instance of \Exception - * - * The callable MUST return an instance of - * \Psr\Http\Message\ResponseInterface. - * - * @param Container $c - * - * @return callable - */ if (!isset($this['errorHandler'])) { + /** + * This service MUST return a callable + * that accepts three arguments: + * + * 1. Instance of \Psr\Http\Message\ServerRequestInterface + * 2. Instance of \Psr\Http\Message\ResponseInterface + * 3. Instance of \Exception + * + * The callable MUST return an instance of + * \Psr\Http\Message\ResponseInterface. + * + * @param Container $c + * + * @return callable + */ $this['errorHandler'] = function ($c) { return new Error($c->get('settings')['displayErrorDetails']); };