original_string: protected function _isOptionVisibilityRequired($name, $destCountry)
      {
          $suboptions = $this->_getOptionVisibilities($destCountry, Fontis_Australia_Model_Shipping_Carrier_Australiapost_Source_Visibility::REQUIRED);
          foreach ($suboptions as $suboption) {
              if (stripos($name, $suboption) === false) {
                  return false;
              }
          }
          return true;
      }
code: protected function _isOptionVisibilityRequired($name, $destCountry)
      {
          $suboptions = $this->_getOptionVisibilities($destCountry, Fontis_Australia_Model_Shipping_Carrier_Australiapost_Source_Visibility::REQUIRED);
          foreach ($suboptions as $suboption) {
              if (stripos($name, $suboption) === false) {
                  return false;
              }
          }
          return true;
      }
code_tokens: protected function _isOptionVisibilityRequired ( $ name , $ destCountry ) { $ suboptions = $ this -> _getOptionVisibilities ( $ destCountry , Fontis_Australia_Model_Shipping_Carrier_Australiapost_Source_Visibility :: REQUIRED ) ; foreach ( $ suboptions as $ suboption ) { if ( stripos ( $ name , $ suboption ) === false ) { return false ; } } return true ; }
docstring: Checks whether a shipping method has the visibility "required"
  
  @param string $name Name of the shipping method
  @param string $destCountry Country code
  @return bool
docstring_tokens: Checks whether a shipping method has the visibility required