Ver Fonte

Strict type checking

Visman há 3 anos atrás
pai
commit
cad7469b88
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      app/Models/Forum/Forum.php
  2. 1 1
      app/Models/Topic/Topic.php

+ 1 - 1
app/Models/Forum/Forum.php

@@ -54,7 +54,7 @@ class Forum extends DataModel
     {
     {
         $user = $this->c->user;
         $user = $this->c->user;
 
 
-        return 1 == $this->post_topics
+        return 1 === $this->post_topics
             || (
             || (
                 null === $this->post_topics
                 null === $this->post_topics
                 && 1 === $user->g_post_topics
                 && 1 === $user->g_post_topics

+ 1 - 1
app/Models/Topic/Topic.php

@@ -69,7 +69,7 @@ class Topic extends DataModel
         ) {
         ) {
             return false;
             return false;
         } elseif (
         } elseif (
-            '1' == $this->parent->post_replies
+            1 === $this->parent->post_replies
             || (
             || (
                 null === $this->parent->post_replies
                 null === $this->parent->post_replies
                 && 1 === $this->c->user->g_post_replies
                 && 1 === $this->c->user->g_post_replies