Fixed CS
This commit is contained in:
parent
0cac9a11cf
commit
76258695c4
@ -177,7 +177,7 @@ class BinaryFileResponse extends Response
|
|||||||
$path = $this->file->getRealPath();
|
$path = $this->file->getRealPath();
|
||||||
if (strtolower($type) == 'x-accel-redirect') {
|
if (strtolower($type) == 'x-accel-redirect') {
|
||||||
// Do X-Accel-Mapping substitutions.
|
// 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);
|
$mapping = explode('=', $mapping, 2);
|
||||||
|
|
||||||
if (2 == count($mapping)) {
|
if (2 == count($mapping)) {
|
||||||
|
@ -299,6 +299,6 @@ class UploadedFile extends File
|
|||||||
$maxFilesize = $errorCode === UPLOAD_ERR_INI_SIZE ? self::getMaxFilesize() / 1024 : 0;
|
$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.';
|
$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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -266,7 +266,7 @@ class ParameterBag implements \IteratorAggregate, \Countable
|
|||||||
*
|
*
|
||||||
* @return mixed
|
* @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);
|
$value = $this->get($key, $default, $deep);
|
||||||
|
|
||||||
|
@ -906,7 +906,7 @@ class Request
|
|||||||
|
|
||||||
$pass = $this->getPassword();
|
$pass = $this->getPassword();
|
||||||
if ('' != $pass) {
|
if ('' != $pass) {
|
||||||
$userinfo .= ":$pass";
|
$userinfo .= ":$pass";
|
||||||
}
|
}
|
||||||
|
|
||||||
return $userinfo;
|
return $userinfo;
|
||||||
|
@ -76,7 +76,7 @@ class FlashBag implements FlashBagInterface, \IteratorAggregate
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function peek($type, array $default =array())
|
public function peek($type, array $default = array())
|
||||||
{
|
{
|
||||||
return $this->has($type) ? $this->flashes[$type] : $default;
|
return $this->has($type) ? $this->flashes[$type] : $default;
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ class CookieTest extends \PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
public function testInvalidExpiration()
|
public function testInvalidExpiration()
|
||||||
{
|
{
|
||||||
$cookie = new Cookie('MyCookie', 'foo','bar');
|
$cookie = new Cookie('MyCookie', 'foo', 'bar');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -224,7 +224,7 @@ class UploadedFileTest extends \PHPUnit_Framework_TestCase
|
|||||||
null,
|
null,
|
||||||
filesize(__DIR__.'/Fixtures/test.gif'),
|
filesize(__DIR__.'/Fixtures/test.gif'),
|
||||||
UPLOAD_ERR_OK,
|
UPLOAD_ERR_OK,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->assertTrue($file->isValid());
|
$this->assertTrue($file->isValid());
|
||||||
|
@ -22,7 +22,7 @@ class ConcreteProxy extends AbstractProxy
|
|||||||
|
|
||||||
class ConcreteSessionHandlerInterfaceProxy extends AbstractProxy implements \SessionHandlerInterface
|
class ConcreteSessionHandlerInterfaceProxy extends AbstractProxy implements \SessionHandlerInterface
|
||||||
{
|
{
|
||||||
public function open($savePath, $sessionName)
|
public function open($savePath, $sessionName)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user