浏览代码

Delete comments that do not make sense

Visman 3 年之前
父节点
当前提交
8fa2e7e708
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      app/Controllers/Routing.php
  2. 1 1
      app/Core/Cache/FileCache.php
  3. 1 1
      app/Core/Validator.php

+ 1 - 1
app/Controllers/Routing.php

@@ -343,7 +343,7 @@ class Routing
             if (
                 ! $user->isAdmin
                 && ! $user->isGuest
-            ) { // ????
+            ) {
                 $r->add(
                     $r::DUO,
                     '/post/{id|i:[1-9]\d*}/report',

+ 1 - 1
app/Core/Cache/FileCache.php

@@ -81,7 +81,7 @@ class FileCache implements CacheInterface
         if ($ttl instanceof DateInterval) {
             $expire = (new DateTime('now', new DateTimeZone('UTC')))->add($value)->getTimestamp();
         } else {
-            $expire  = null === $ttl || $ttl < 1 ? 0 : \time() + $ttl; //????
+            $expire  = null === $ttl || $ttl < 1 ? 0 : \time() + $ttl;
         }
 
         $value   = \var_export($value, true);

+ 1 - 1
app/Core/Validator.php

@@ -722,7 +722,7 @@ class Validator
                 return null;
             }
         } elseif (null !== $value) {
-            $this->addError('The :alias maximum is :attr'); //????
+            $this->addError('The :alias maximum is :attr');
 
             return null;
         }