This commit is contained in:
Pascal Borreli 2013-07-21 00:31:00 +01:00
parent 0cac9a11cf
commit 76258695c4
8 changed files with 8 additions and 8 deletions

View File

@ -177,7 +177,7 @@ class BinaryFileResponse extends Response
$path = $this->file->getRealPath();
if (strtolower($type) == 'x-accel-redirect') {
// Do X-Accel-Mapping substitutions.
foreach (explode(',', $request->headers->get('X-Accel-Mapping', '')) as $mapping) {
foreach (explode(',', $request->headers->get('X-Accel-Mapping', '')) as $mapping) {
$mapping = explode('=', $mapping, 2);
if (2 == count($mapping)) {

View File

@ -299,6 +299,6 @@ class UploadedFile extends File
$maxFilesize = $errorCode === UPLOAD_ERR_INI_SIZE ? self::getMaxFilesize() / 1024 : 0;
$message = isset($errors[$errorCode]) ? $errors[$errorCode] : 'The file "%s" was not uploaded due to an unknown error.';
return sprintf($message, $this->getClientOriginalName(), $maxFilesize);
return sprintf($message, $this->getClientOriginalName(), $maxFilesize);
}
}

View File

@ -266,7 +266,7 @@ class ParameterBag implements \IteratorAggregate, \Countable
*
* @return mixed
*/
public function filter($key, $default = null, $deep = false, $filter=FILTER_DEFAULT, $options=array())
public function filter($key, $default = null, $deep = false, $filter = FILTER_DEFAULT, $options = array())
{
$value = $this->get($key, $default, $deep);

View File

@ -906,7 +906,7 @@ class Request
$pass = $this->getPassword();
if ('' != $pass) {
$userinfo .= ":$pass";
$userinfo .= ":$pass";
}
return $userinfo;

View File

@ -76,7 +76,7 @@ class FlashBag implements FlashBagInterface, \IteratorAggregate
/**
* {@inheritdoc}
*/
public function peek($type, array $default =array())
public function peek($type, array $default = array())
{
return $this->has($type) ? $this->flashes[$type] : $default;
}

View File

@ -51,7 +51,7 @@ class CookieTest extends \PHPUnit_Framework_TestCase
*/
public function testInvalidExpiration()
{
$cookie = new Cookie('MyCookie', 'foo','bar');
$cookie = new Cookie('MyCookie', 'foo', 'bar');
}
/**

View File

@ -224,7 +224,7 @@ class UploadedFileTest extends \PHPUnit_Framework_TestCase
null,
filesize(__DIR__.'/Fixtures/test.gif'),
UPLOAD_ERR_OK,
true
true
);
$this->assertTrue($file->isValid());

View File

@ -22,7 +22,7 @@ class ConcreteProxy extends AbstractProxy
class ConcreteSessionHandlerInterfaceProxy extends AbstractProxy implements \SessionHandlerInterface
{
public function open($savePath, $sessionName)
public function open($savePath, $sessionName)
{
}