original_string: public function getImage(NewsCategoryModel $category)
      {
          if (null === ($image = $category->getImage()) || !\is_file(TL_ROOT.'/'.$image->path)) {
              return null;
          }
  
          return $image;
      }
code: public function getImage(NewsCategoryModel $category)
      {
          if (null === ($image = $category->getImage()) || !\is_file(TL_ROOT.'/'.$image->path)) {
              return null;
          }
  
          return $image;
      }
code_tokens: public function getImage ( NewsCategoryModel $ category ) { if ( null === ( $ image = $ category -> getImage ( ) ) || ! \ is_file ( TL_ROOT . '/' . $ image -> path ) ) { return null ; } return $ image ; }
docstring: Get the image.
  
  @param NewsCategoryModel $category
  
  @return \Contao\FilesModel|null
docstring_tokens: Get the image .