original_string: public static function totalPosts()
      {
          $posts = Podium::getInstance()->podiumCache->get('forum.postscount');
          if ($posts === false) {
              $posts = Post::find()->count();
              Podium::getInstance()->podiumCache->set('forum.postscount', $posts);
          }
          return $posts;
      }
code: public static function totalPosts()
      {
          $posts = Podium::getInstance()->podiumCache->get('forum.postscount');
          if ($posts === false) {
              $posts = Post::find()->count();
              Podium::getInstance()->podiumCache->set('forum.postscount', $posts);
          }
          return $posts;
      }
code_tokens: public static function totalPosts ( ) { $ posts = Podium :: getInstance ( ) -> podiumCache -> get ( 'forum.postscount' ) ; if ( $ posts === false ) { $ posts = Post :: find ( ) -> count ( ) ; Podium :: getInstance ( ) -> podiumCache -> set ( 'forum.postscount' , $ posts ) ; } return $ posts ; }
docstring: Counts number of created posts.
  @return int
docstring_tokens: Counts number of created posts .