Commit d0b2b9b2 authored by Fabien Potencier's avatar Fabien Potencier

fixed CS

parent 10070e4c
...@@ -300,9 +300,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte ...@@ -300,9 +300,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
* *
* Before filters are run before any route has been matched. * Before filters are run before any route has been matched.
* *
* @param mixed $callback Before filter callback * @param mixed $callback Before filter callback
* @param int $priority The higher this value, the earlier an event * @param int $priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to 0) * listener will be triggered in the chain (defaults to 0)
*/ */
public function before($callback, $priority = 0) public function before($callback, $priority = 0)
{ {
...@@ -326,9 +326,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte ...@@ -326,9 +326,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
* *
* After filters are run after the controller has been executed. * After filters are run after the controller has been executed.
* *
* @param mixed $callback After filter callback * @param mixed $callback After filter callback
* @param int $priority The higher this value, the earlier an event * @param int $priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to 0) * listener will be triggered in the chain (defaults to 0)
*/ */
public function after($callback, $priority = 0) public function after($callback, $priority = 0)
{ {
...@@ -348,9 +348,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte ...@@ -348,9 +348,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
* *
* Finish filters are run after the response has been sent. * Finish filters are run after the response has been sent.
* *
* @param mixed $callback Finish filter callback * @param mixed $callback Finish filter callback
* @param int $priority The higher this value, the earlier an event * @param int $priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to 0) * listener will be triggered in the chain (defaults to 0)
*/ */
public function finish($callback, $priority = 0) public function finish($callback, $priority = 0)
{ {
...@@ -364,9 +364,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte ...@@ -364,9 +364,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
/** /**
* Aborts the current request by sending a proper HTTP error. * Aborts the current request by sending a proper HTTP error.
* *
* @param int $statusCode The HTTP status code * @param int $statusCode The HTTP status code
* @param string $message The status message * @param string $message The status message
* @param array $headers An array of HTTP headers * @param array $headers An array of HTTP headers
*/ */
public function abort($statusCode, $message = '', array $headers = array()) public function abort($statusCode, $message = '', array $headers = array())
{ {
...@@ -386,9 +386,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte ...@@ -386,9 +386,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
* *
* For this reason you should add logging handlers before output handlers. * For this reason you should add logging handlers before output handlers.
* *
* @param mixed $callback Error handler callback, takes an Exception argument * @param mixed $callback Error handler callback, takes an Exception argument
* @param int $priority The higher this value, the earlier an event * @param int $priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to -8) * listener will be triggered in the chain (defaults to -8)
*/ */
public function error($callback, $priority = -8) public function error($callback, $priority = -8)
{ {
...@@ -408,8 +408,8 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte ...@@ -408,8 +408,8 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
/** /**
* Redirects the user to another URL. * Redirects the user to another URL.
* *
* @param string $url The URL to redirect to * @param string $url The URL to redirect to
* @param int $status The status code (302 by default) * @param int $status The status code (302 by default)
* *
* @return RedirectResponse * @return RedirectResponse
*/ */
...@@ -421,9 +421,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte ...@@ -421,9 +421,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
/** /**
* Creates a streaming response. * Creates a streaming response.
* *
* @param mixed $callback A valid PHP callback * @param mixed $callback A valid PHP callback
* @param int $status The response status code * @param int $status The response status code
* @param array $headers An array of response headers * @param array $headers An array of response headers
* *
* @return StreamedResponse * @return StreamedResponse
*/ */
...@@ -435,10 +435,10 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte ...@@ -435,10 +435,10 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
/** /**
* Escapes a text for HTML. * Escapes a text for HTML.
* *
* @param string $text The input text to be escaped * @param string $text The input text to be escaped
* @param int $flags The flags (@see htmlspecialchars) * @param int $flags The flags (@see htmlspecialchars)
* @param string $charset The charset * @param string $charset The charset
* @param bool $doubleEncode Whether to try to avoid double escaping or not * @param bool $doubleEncode Whether to try to avoid double escaping or not
* *
* @return string Escaped text * @return string Escaped text
*/ */
...@@ -450,9 +450,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte ...@@ -450,9 +450,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
/** /**
* Convert some data into a JSON response. * Convert some data into a JSON response.
* *
* @param mixed $data The response data * @param mixed $data The response data
* @param int $status The response status code * @param int $status The response status code
* @param array $headers An array of response headers * @param array $headers An array of response headers
* *
* @return JsonResponse * @return JsonResponse
*/ */
......
...@@ -23,11 +23,11 @@ trait MonologTrait ...@@ -23,11 +23,11 @@ trait MonologTrait
/** /**
* Adds a log record. * Adds a log record.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @param int $level The logging level * @param int $level The logging level
* *
* @return bool Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function log($message, array $context = array(), $level = Logger::INFO) public function log($message, array $context = array(), $level = Logger::INFO)
{ {
......
...@@ -36,11 +36,11 @@ trait TranslationTrait ...@@ -36,11 +36,11 @@ trait TranslationTrait
/** /**
* Translates the given choice message by choosing a translation according to a number. * Translates the given choice message by choosing a translation according to a number.
* *
* @param string $id The message id * @param string $id The message id
* @param int $number The number to use to find the indice of the message * @param int $number The number to use to find the indice of the message
* @param array $parameters An array of parameters for the message * @param array $parameters An array of parameters for the message
* @param string $domain The domain for the message * @param string $domain The domain for the message
* @param string $locale The locale * @param string $locale The locale
* *
* @return string The translated string * @return string The translated string
*/ */
......
...@@ -30,8 +30,8 @@ class ConverterListener implements EventSubscriberInterface ...@@ -30,8 +30,8 @@ class ConverterListener implements EventSubscriberInterface
/** /**
* Constructor. * Constructor.
* *
* @param RouteCollection $routes A RouteCollection instance * @param RouteCollection $routes A RouteCollection instance
* @param CallbackResolver $callbackResolver A CallbackResolver instance * @param CallbackResolver $callbackResolver A CallbackResolver instance
*/ */
public function __construct(RouteCollection $routes, CallbackResolver $callbackResolver) public function __construct(RouteCollection $routes, CallbackResolver $callbackResolver)
{ {
......
...@@ -16,7 +16,6 @@ use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; ...@@ -16,7 +16,6 @@ use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
use Symfony\Component\HttpKernel\KernelEvents; use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
use Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent; use Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent;
use Silex\Application;
/** /**
* Wraps exception listeners. * Wraps exception listeners.
......
...@@ -90,7 +90,7 @@ class FormServiceProvider implements ServiceProviderInterface ...@@ -90,7 +90,7 @@ class FormServiceProvider implements ServiceProviderInterface
->getFormFactory() ->getFormFactory()
; ;
}); });
$app['form.resolved_type_factory'] = $app->share(function ($app) { $app['form.resolved_type_factory'] = $app->share(function ($app) {
return new ResolvedFormTypeFactory(); return new ResolvedFormTypeFactory();
}); });
......
...@@ -28,7 +28,7 @@ class ServiceControllerResolver implements ControllerResolverInterface ...@@ -28,7 +28,7 @@ class ServiceControllerResolver implements ControllerResolverInterface
* Constructor. * Constructor.
* *
* @param ControllerResolverInterface $controllerResolver A ControllerResolverInterface instance to delegate to * @param ControllerResolverInterface $controllerResolver A ControllerResolverInterface instance to delegate to
* @param CallbackResolver $callbackResolver A service resolver instance * @param CallbackResolver $callbackResolver A service resolver instance
*/ */
public function __construct(ControllerResolverInterface $controllerResolver, CallbackResolver $callbackResolver) public function __construct(ControllerResolverInterface $controllerResolver, CallbackResolver $callbackResolver)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment