Преглед на файлове

[HttpFoundation] fixed CS

Fabien Potencier преди 14 години
родител
ревизия
51023eea86
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      src/Symfony/Component/HttpFoundation/Cookie.php

+ 3 - 3
src/Symfony/Component/HttpFoundation/Cookie.php

@@ -40,9 +40,9 @@ class Cookie
         if (empty($name)) {
             throw new \InvalidArgumentException('The cookie name cannot be empty');
         }
-        
-        //check if the expiration is valid
-        if(!$expire instanceof \DateTime && !is_numeric($expire) && (strtotime($expire) === false || strtotime($expire) === -1)){
+
+        // check if the expiration is valid
+        if (!$expire instanceof \DateTime && !is_numeric($expire) && (strtotime($expire) === false || strtotime($expire) === -1)) {
             throw new \InvalidArgumentException('The cookie expiration is not valid');
         }