original_string: private function getIndexOf($segment){
  		if($segment instanceof Segment){
  			foreach($this->segments as $index=>$other){
  				if($other === $segment){
  					return $index;
  				}
  			}
  		}else{
  			foreach($this->segments as $index=>$other){
  				if($other->getName() === $segment){
  					return $index;
  				}
  			}
  		}
  		return false;
  	}
code: private function getIndexOf($segment){
  		if($segment instanceof Segment){
  			foreach($this->segments as $index=>$other){
  				if($other === $segment){
  					return $index;
  				}
  			}
  		}else{
  			foreach($this->segments as $index=>$other){
  				if($other->getName() === $segment){
  					return $index;
  				}
  			}
  		}
  		return false;
  	}
code_tokens: private function getIndexOf ( $ segment ) { if ( $ segment instanceof Segment ) { foreach ( $ this -> segments as $ index => $ other ) { if ( $ other === $ segment ) { return $ index ; } } } else { foreach ( $ this -> segments as $ index => $ other ) { if ( $ other -> getName ( ) === $ segment ) { return $ index ; } } } return false ; }
docstring: Returns the index of the segment
  @param string|\csslib\Segment $segment
  @return \csslib\Segment|boolean
docstring_tokens: Returns the index of the segment