浏览代码

[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)) {
         if (empty($name)) {
             throw new \InvalidArgumentException('The cookie name cannot be empty');
             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');
             throw new \InvalidArgumentException('The cookie expiration is not valid');
         }
         }