Fixed CS
This commit is contained in:
parent
0cac9a11cf
commit
76258695c4
|
@ -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)) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -906,7 +906,7 @@ class Request
|
|||
|
||||
$pass = $this->getPassword();
|
||||
if ('' != $pass) {
|
||||
$userinfo .= ":$pass";
|
||||
$userinfo .= ":$pass";
|
||||
}
|
||||
|
||||
return $userinfo;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -22,7 +22,7 @@ class ConcreteProxy extends AbstractProxy
|
|||
|
||||
class ConcreteSessionHandlerInterfaceProxy extends AbstractProxy implements \SessionHandlerInterface
|
||||
{
|
||||
public function open($savePath, $sessionName)
|
||||
public function open($savePath, $sessionName)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue