original_string: protected function modelOrFind($idOrModel)
      {
      	if ($idOrModel instanceof Model && $idOrModel->exists()) {
      		return $idOrModel;
      	}
  
      	return $this->getModel()->findOrFail($idOrModel);
      }
code: protected function modelOrFind($idOrModel)
      {
      	if ($idOrModel instanceof Model && $idOrModel->exists()) {
      		return $idOrModel;
      	}
  
      	return $this->getModel()->findOrFail($idOrModel);
      }
code_tokens: protected function modelOrFind ( $ idOrModel ) { if ( $ idOrModel instanceof Model && $ idOrModel -> exists ( ) ) { return $ idOrModel ; } return $ this -> getModel ( ) -> findOrFail ( $ idOrModel ) ; }
docstring: Returns the given model instance.
  
  @param  Model\Mixed $idOrModel
  
  @return Mixed
docstring_tokens: Returns the given model instance .