Explorar el Código

[RequestHandler] fixed coding standards: the use of function is_null() is forbidden

Pascal Borreli hace 15 años
padre
commit
8b1c1db860
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/Symfony/Components/RequestHandler/Response.php

+ 2 - 2
src/Symfony/Components/RequestHandler/Response.php

@@ -147,7 +147,7 @@ class Response implements ResponseInterface
    */
   public function setCookie($name, $value, $expire = null, $path = '/', $domain = '', $secure = false, $httpOnly = false)
   {
-    if (!is_null($expire))
+    if (null !== $expire)
     {
       if (is_numeric($expire))
       {
@@ -228,7 +228,7 @@ class Response implements ResponseInterface
   {
     $name = $this->normalizeHeaderName($name);
 
-    if (is_null($value))
+    if (null === $value)
     {
       unset($this->headers[$name]);