Commit ddc6026e authored by Fabien Potencier's avatar Fabien Potencier

fixed CS

parent 850939d3
......@@ -277,7 +277,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
*
* @param string $eventName The event to listen on
* @param callable $callback The listener
* @param integer $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)
*/
public function on($eventName, $callback, $priority = 0)
......@@ -300,9 +300,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
*
* Before filters are run before any route has been matched.
*
* @param mixed $callback Before filter callback
* @param integer $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)
{
......@@ -326,9 +326,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
*
* After filters are run after the controller has been executed.
*
* @param mixed $callback After filter callback
* @param integer $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)
{
......@@ -353,9 +353,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
*
* Finish filters are run after the response has been sent.
*
* @param mixed $callback Finish filter callback
* @param integer $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)
{
......@@ -369,9 +369,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
/**
* Aborts the current request by sending a proper HTTP error.
*
* @param integer $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())
{
......@@ -391,9 +391,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
*
* For this reason you should add logging handlers before output handlers.
*
* @param mixed $callback Error handler callback, takes an Exception argument
* @param integer $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)
{
......@@ -413,8 +413,8 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
/**
* Redirects the user to another URL.
*
* @param string $url The URL to redirect to
* @param integer $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
*/
......@@ -426,9 +426,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
/**
* Creates a streaming response.
*
* @param mixed $callback A valid PHP callback
* @param integer $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
*/
......@@ -440,10 +440,10 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
/**
* Escapes a text for HTML.
*
* @param string $text The input text to be escaped
* @param integer $flags The flags (@see htmlspecialchars)
* @param string $charset The charset
* @param Boolean $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
*/
......@@ -455,9 +455,9 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
/**
* Convert some data into a JSON response.
*
* @param mixed $data The response data
* @param integer $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
*/
......@@ -470,7 +470,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
* Sends a file.
*
* @param \SplFileInfo|string $file The file to stream
* @param integer $status The response status code
* @param int $status The response status code
* @param array $headers An array of response headers
* @param null|string $contentDisposition The type of Content-Disposition to set automatically with the filename
*
......
......@@ -23,11 +23,11 @@ trait MonologTrait
/**
* Adds a log record.
*
* @param string $message The log message
* @param array $context The log context
* @param integer $level The logging level
* @param string $message The log message
* @param array $context The log context
* @param int $level The logging level
*
* @return Boolean Whether the record has been processed
* @return bool Whether the record has been processed
*/
public function log($message, array $context = array(), $level = Logger::INFO)
{
......
......@@ -36,11 +36,11 @@ trait TranslationTrait
/**
* Translates the given choice message by choosing a translation according to a number.
*
* @param string $id The message id
* @param integer $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
*/
......
......@@ -27,7 +27,7 @@ class CallbackResolver
*
* @param string $name
*
* @return Boolean
* @return bool
*/
public function isValid($name)
{
......
......@@ -161,8 +161,8 @@ class SecurityServiceProvider implements ServiceProviderInterface
$entryPoint = null;
$pattern = isset($firewall['pattern']) ? $firewall['pattern'] : null;
$users = isset($firewall['users']) ? $firewall['users'] : array();
$security = isset($firewall['security']) ? (Boolean) $firewall['security'] : true;
$stateless = isset($firewall['stateless']) ? (Boolean) $firewall['stateless'] : false;
$security = isset($firewall['security']) ? (bool) $firewall['security'] : true;
$stateless = isset($firewall['stateless']) ? (bool) $firewall['stateless'] : false;
unset($firewall['pattern'], $firewall['users'], $firewall['security'], $firewall['stateless']);
$protected = false === $security ? false : count($firewall);
......
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