Pārlūkot izejas kodu

fixed coding standards

Fabien Potencier 15 gadi atpakaļ
vecāks
revīzija
16d406a9da

+ 1 - 1
src/Symfony/Components/Process/Process.php

@@ -112,7 +112,7 @@ class Process
       throw new \RuntimeException('Unable to launch a new process.');
     }
 
-    if (!is_null($this->stdin))
+    if (null !== $this->stdin)
     {
       fwrite($pipes[0], (binary) $this->stdin);
     }

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

@@ -204,7 +204,7 @@ class Response implements ResponseInterface
       throw new \InvalidArgumentException(sprintf('The HTTP status code "%s" is not valid.', $code));
     }
 
-    $this->statusText = false === $text ? '' : (is_null($text) ? self::$statusTexts[$this->statusCode] : $text);
+    $this->statusText = false === $text ? '' : (null === $text ? self::$statusTexts[$this->statusCode] : $text);
 
     return $this;
   }