[HttpFoundation] Coding standards.
This commit is contained in:
parent
bf33bd469d
commit
aec133996e
@ -1019,13 +1019,13 @@ class Request
|
||||
/**
|
||||
* Checks if the request method is of specified type.
|
||||
*
|
||||
* @param string $type Uppercase request type (GET, POST etc).
|
||||
* @param string $method Uppercase request method (GET, POST etc).
|
||||
*
|
||||
* @return Boolean
|
||||
*/
|
||||
public function isMethod($type)
|
||||
public function isMethod($method)
|
||||
{
|
||||
return ($this->getMethod() === strtoupper($type));
|
||||
return $this->getMethod() === strtoupper($method);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -935,9 +935,6 @@ class RequestTest extends \PHPUnit_Framework_TestCase
|
||||
$request->setMethod('GET');
|
||||
$this->assertTrue($request->isMethod('GET'));
|
||||
$this->assertFalse($request->isMethod('POST'));
|
||||
|
||||
$this->assertSame(true, $request->isMethod('GET'));
|
||||
$this->assertSame(false, $request->isMethod('POST'));
|
||||
}
|
||||
|
||||
private function startTrustingProxyData()
|
||||
|
Reference in New Issue
Block a user