original_string: public function isVisibleForModule(NewsCategoryModel $category, Module $module)
      {
          // List or archive module
          if ($category->hideInList && ($module instanceof ModuleNewsList || $module instanceof ModuleNewsArchive)) {
              return false;
          }
  
          // Reader module
          if ($category->hideInReader && $module instanceof ModuleNewsReader) {
              return false;
          }
  
          return true;
      }
code: public function isVisibleForModule(NewsCategoryModel $category, Module $module)
      {
          // List or archive module
          if ($category->hideInList && ($module instanceof ModuleNewsList || $module instanceof ModuleNewsArchive)) {
              return false;
          }
  
          // Reader module
          if ($category->hideInReader && $module instanceof ModuleNewsReader) {
              return false;
          }
  
          return true;
      }
code_tokens: public function isVisibleForModule ( NewsCategoryModel $ category , Module $ module ) { // List or archive module if ( $ category -> hideInList && ( $ module instanceof ModuleNewsList || $ module instanceof ModuleNewsArchive ) ) { return false ; } // Reader module if ( $ category -> hideInReader && $ module instanceof ModuleNewsReader ) { return false ; } return true ; }
docstring: Return true if the category is visible for module.
  
  @param NewsCategoryModel $category
  @param Module            $module
  
  @return bool
docstring_tokens: Return true if the category is visible for module .