Merge branch '2.7' into 2.8
* 2.7: fixed CS Fixed return type
This commit is contained in:
commit
1f3aa51b5f
@ -42,7 +42,7 @@ class NotFoundActivationStrategy extends ErrorLevelActivationStrategy
|
|||||||
$isActivated
|
$isActivated
|
||||||
&& isset($record['context']['exception'])
|
&& isset($record['context']['exception'])
|
||||||
&& $record['context']['exception'] instanceof HttpException
|
&& $record['context']['exception'] instanceof HttpException
|
||||||
&& $record['context']['exception']->getStatusCode() == 404
|
&& 404 == $record['context']['exception']->getStatusCode()
|
||||||
&& ($request = $this->requestStack->getMasterRequest())
|
&& ($request = $this->requestStack->getMasterRequest())
|
||||||
) {
|
) {
|
||||||
return !preg_match($this->blacklist, $request->getPathInfo());
|
return !preg_match($this->blacklist, $request->getPathInfo());
|
||||||
|
@ -104,7 +104,7 @@ class Command
|
|||||||
array_unshift($this->bits, $bit);
|
array_unshift($this->bits, $bit);
|
||||||
|
|
||||||
foreach ($this->labels as $label => $index) {
|
foreach ($this->labels as $label => $index) {
|
||||||
$this->labels[$label] += 1;
|
++$this->labels[$label];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
@ -1301,7 +1301,7 @@ class Request
|
|||||||
*
|
*
|
||||||
* @param string $format The format
|
* @param string $format The format
|
||||||
*
|
*
|
||||||
* @return string The associated mime type (null if not found)
|
* @return string|null The associated mime type (null if not found)
|
||||||
*/
|
*/
|
||||||
public function getMimeType($format)
|
public function getMimeType($format)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user