original_string: private function updateFromPostCache(Comment $comment, $c)
      {
          if ($comment->postId == null)
          {
              return;
          }
          if ($this->postCache == null || $this->postCache['ID'] != $comment->postId)
          {
              $this->postCache = $this->adminApi->getPost($comment->postId);
          }
  
          $comment->date = $this->getMetaKeyValue($this->postCache, "linkoscope_created_$comment->id") ?: $c['date'];
          $comment->score =
              $this->getMetaKeyValue($this->postCache, "linkoscope_score_$comment->id") ?: strtotime($c['date']);
      }
code: private function updateFromPostCache(Comment $comment, $c)
      {
          if ($comment->postId == null)
          {
              return;
          }
          if ($this->postCache == null || $this->postCache['ID'] != $comment->postId)
          {
              $this->postCache = $this->adminApi->getPost($comment->postId);
          }
  
          $comment->date = $this->getMetaKeyValue($this->postCache, "linkoscope_created_$comment->id") ?: $c['date'];
          $comment->score =
              $this->getMetaKeyValue($this->postCache, "linkoscope_score_$comment->id") ?: strtotime($c['date']);
      }
code_tokens: private function updateFromPostCache ( Comment $ comment , $ c ) { if ( $ comment -> postId == null ) { return ; } if ( $ this -> postCache == null || $ this -> postCache [ 'ID' ] != $ comment -> postId ) { $ this -> postCache = $ this -> adminApi -> getPost ( $ comment -> postId ) ; } $ comment -> date = $ this -> getMetaKeyValue ( $ this -> postCache , "linkoscope_created_$comment->id" ) ? : $ c [ 'date' ] ; $ comment -> score = $ this -> getMetaKeyValue ( $ this -> postCache , "linkoscope_score_$comment->id" ) ? : strtotime ( $ c [ 'date' ] ) ; }
docstring: fetch associated post if it hasn't been fetched before, or if the incorrect post is cached.
docstring_tokens: fetch associated post if it hasn t been fetched before or if the incorrect post is cached .