original_string: protected function getCurrentNewsCategories()
      {
          if (!($alias = Input::getAutoItem('items', false, true))
              || null === ($news = NewsModel::findPublishedByParentAndIdOrAlias($alias, $this->news_archives))
          ) {
              return [];
          }
  
          $ids = Model::getRelatedValues('tl_news', 'categories', $news->id);
          $ids = \array_map('intval', \array_unique($ids));
  
          return $ids;
      }
code: protected function getCurrentNewsCategories()
      {
          if (!($alias = Input::getAutoItem('items', false, true))
              || null === ($news = NewsModel::findPublishedByParentAndIdOrAlias($alias, $this->news_archives))
          ) {
              return [];
          }
  
          $ids = Model::getRelatedValues('tl_news', 'categories', $news->id);
          $ids = \array_map('intval', \array_unique($ids));
  
          return $ids;
      }
code_tokens: protected function getCurrentNewsCategories ( ) { if ( ! ( $ alias = Input :: getAutoItem ( 'items' , false , true ) ) || null === ( $ news = NewsModel :: findPublishedByParentAndIdOrAlias ( $ alias , $ this -> news_archives ) ) ) { return [ ] ; } $ ids = Model :: getRelatedValues ( 'tl_news' , 'categories' , $ news -> id ) ; $ ids = \ array_map ( 'intval' , \ array_unique ( $ ids ) ) ; return $ ids ; }
docstring: Get the category IDs of the current news item.
  
  @return array
docstring_tokens: Get the category IDs of the current news item .