Skip to content
This repository has been archived by the owner on Jul 4, 2018. It is now read-only.

Commit

Permalink
fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Apr 29, 2014
1 parent 10070e4 commit d0b2b9b
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 41 deletions.
54 changes: 27 additions & 27 deletions src/Silex/Application.php
Expand Up @@ -300,9 +300,9 @@ public function on($eventName, $callback, $priority = 0)
*
* Before filters are run before any route has been matched.
*
* @param mixed $callback Before filter callback
* @param int $priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to 0)
* @param mixed $callback Before filter callback
* @param int $priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to 0)
*/
public function before($callback, $priority = 0)
{
Expand All @@ -326,9 +326,9 @@ public function before($callback, $priority = 0)
*
* After filters are run after the controller has been executed.
*
* @param mixed $callback After filter callback
* @param int $priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to 0)
* @param mixed $callback After filter callback
* @param int $priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to 0)
*/
public function after($callback, $priority = 0)
{
Expand All @@ -348,9 +348,9 @@ public function after($callback, $priority = 0)
*
* Finish filters are run after the response has been sent.
*
* @param mixed $callback Finish filter callback
* @param int $priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to 0)
* @param mixed $callback Finish filter callback
* @param int $priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to 0)
*/
public function finish($callback, $priority = 0)
{
Expand All @@ -364,9 +364,9 @@ public function finish($callback, $priority = 0)
/**
* Aborts the current request by sending a proper HTTP error.
*
* @param int $statusCode The HTTP status code
* @param string $message The status message
* @param array $headers An array of HTTP headers
* @param int $statusCode The HTTP status code
* @param string $message The status message
* @param array $headers An array of HTTP headers
*/
public function abort($statusCode, $message = '', array $headers = array())
{
Expand All @@ -386,9 +386,9 @@ public function abort($statusCode, $message = '', array $headers = array())
*
* For this reason you should add logging handlers before output handlers.
*
* @param mixed $callback Error handler callback, takes an Exception argument
* @param int $priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to -8)
* @param mixed $callback Error handler callback, takes an Exception argument
* @param int $priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to -8)
*/
public function error($callback, $priority = -8)
{
Expand All @@ -408,8 +408,8 @@ public function flush($prefix = '')
/**
* Redirects the user to another URL.
*
* @param string $url The URL to redirect to
* @param int $status The status code (302 by default)
* @param string $url The URL to redirect to
* @param int $status The status code (302 by default)
*
* @return RedirectResponse
*/
Expand All @@ -421,9 +421,9 @@ public function redirect($url, $status = 302)
/**
* Creates a streaming response.
*
* @param mixed $callback A valid PHP callback
* @param int $status The response status code
* @param array $headers An array of response headers
* @param mixed $callback A valid PHP callback
* @param int $status The response status code
* @param array $headers An array of response headers
*
* @return StreamedResponse
*/
Expand All @@ -435,10 +435,10 @@ public function stream($callback = null, $status = 200, array $headers = array()
/**
* Escapes a text for HTML.
*
* @param string $text The input text to be escaped
* @param int $flags The flags (@see htmlspecialchars)
* @param string $charset The charset
* @param bool $doubleEncode Whether to try to avoid double escaping or not
* @param string $text The input text to be escaped
* @param int $flags The flags (@see htmlspecialchars)
* @param string $charset The charset
* @param bool $doubleEncode Whether to try to avoid double escaping or not
*
* @return string Escaped text
*/
Expand All @@ -450,9 +450,9 @@ public function escape($text, $flags = ENT_COMPAT, $charset = null, $doubleEncod
/**
* Convert some data into a JSON response.
*
* @param mixed $data The response data
* @param int $status The response status code
* @param array $headers An array of response headers
* @param mixed $data The response data
* @param int $status The response status code
* @param array $headers An array of response headers
*
* @return JsonResponse
*/
Expand Down
8 changes: 4 additions & 4 deletions src/Silex/Application/MonologTrait.php
Expand Up @@ -23,11 +23,11 @@ trait MonologTrait
/**
* Adds a log record.
*
* @param string $message The log message
* @param array $context The log context
* @param int $level The logging level
* @param string $message The log message
* @param array $context The log context
* @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)
{
Expand Down
10 changes: 5 additions & 5 deletions src/Silex/Application/TranslationTrait.php
Expand Up @@ -36,11 +36,11 @@ public function trans($id, array $parameters = array(), $domain = 'messages', $l
/**
* Translates the given choice message by choosing a translation according to a number.
*
* @param string $id The message id
* @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 string $domain The domain for the message
* @param string $locale The locale
* @param string $id The message id
* @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 string $domain The domain for the message
* @param string $locale The locale
*
* @return string The translated string
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Silex/EventListener/ConverterListener.php
Expand Up @@ -30,8 +30,8 @@ class ConverterListener implements EventSubscriberInterface
/**
* Constructor.
*
* @param RouteCollection $routes A RouteCollection instance
* @param CallbackResolver $callbackResolver A CallbackResolver instance
* @param RouteCollection $routes A RouteCollection instance
* @param CallbackResolver $callbackResolver A CallbackResolver instance
*/
public function __construct(RouteCollection $routes, CallbackResolver $callbackResolver)
{
Expand Down
1 change: 0 additions & 1 deletion src/Silex/ExceptionListenerWrapper.php
Expand Up @@ -16,7 +16,6 @@
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
use Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent;
use Silex\Application;

/**
* Wraps exception listeners.
Expand Down
2 changes: 1 addition & 1 deletion src/Silex/Provider/FormServiceProvider.php
Expand Up @@ -90,7 +90,7 @@ public function register(Application $app)
->getFormFactory()
;
});

$app['form.resolved_type_factory'] = $app->share(function ($app) {
return new ResolvedFormTypeFactory();
});
Expand Down
2 changes: 1 addition & 1 deletion src/Silex/ServiceControllerResolver.php
Expand Up @@ -28,7 +28,7 @@ class ServiceControllerResolver implements ControllerResolverInterface
* Constructor.
*
* @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)
{
Expand Down

0 comments on commit d0b2b9b

Please sign in to comment.