original_string: public function onParseArticles(FrontendTemplate $template, array $data, Module $module)
      {
          /** @var NewsCategoryModel $newsCategoryModelAdapter */
          $newsCategoryModelAdapter = $this->framework->getAdapter(NewsCategoryModel::class);
  
          if (null === ($models = $newsCategoryModelAdapter->findPublishedByNews($data['id']))) {
              return;
          }
  
          $this->addCategoriesToTemplate($template, $module, $models);
      }
code: public function onParseArticles(FrontendTemplate $template, array $data, Module $module)
      {
          /** @var NewsCategoryModel $newsCategoryModelAdapter */
          $newsCategoryModelAdapter = $this->framework->getAdapter(NewsCategoryModel::class);
  
          if (null === ($models = $newsCategoryModelAdapter->findPublishedByNews($data['id']))) {
              return;
          }
  
          $this->addCategoriesToTemplate($template, $module, $models);
      }
code_tokens: public function onParseArticles ( FrontendTemplate $ template , array $ data , Module $ module ) { /** @var NewsCategoryModel $newsCategoryModelAdapter */ $ newsCategoryModelAdapter = $ this -> framework -> getAdapter ( NewsCategoryModel :: class ) ; if ( null === ( $ models = $ newsCategoryModelAdapter -> findPublishedByNews ( $ data [ 'id' ] ) ) ) { return ; } $ this -> addCategoriesToTemplate ( $ template , $ module , $ models ) ; }
docstring: On parse the articles.
  
  @param FrontendTemplate $template
  @param array            $data
  @param Module           $module
docstring_tokens: On parse the articles .