original_string: public function getIndex(PHPExcel_Worksheet $pSheet)
      {
          foreach ($this->workSheetCollection as $key => $value) {
              if ($value->getHashCode() == $pSheet->getHashCode()) {
                  return $key;
              }
          }
  
          throw new PHPExcel_Exception("Sheet does not exist.");
      }
code: public function getIndex(PHPExcel_Worksheet $pSheet)
      {
          foreach ($this->workSheetCollection as $key => $value) {
              if ($value->getHashCode() == $pSheet->getHashCode()) {
                  return $key;
              }
          }
  
          throw new PHPExcel_Exception("Sheet does not exist.");
      }
code_tokens: public function getIndex ( PHPExcel_Worksheet $ pSheet ) { foreach ( $ this -> workSheetCollection as $ key => $ value ) { if ( $ value -> getHashCode ( ) == $ pSheet -> getHashCode ( ) ) { return $ key ; } } throw new PHPExcel_Exception ( "Sheet does not exist." ) ; }
docstring: Get index for sheet
  
  @param  PHPExcel_Worksheet $pSheet
  @return Sheet index
  @throws PHPExcel_Exception
docstring_tokens: Get index for sheet