original_string: public function deletable($id)
      {
          $record = $this->modelRepository->findOrFail($id);
  
          if ( ! $this->isModelDeletable($record)) {
              return $this->failureResponse(
                  $this->getLastUnmetDeleteConditionMessage()
              );
          }
  
          return $this->successResponse();
      }
code: public function deletable($id)
      {
          $record = $this->modelRepository->findOrFail($id);
  
          if ( ! $this->isModelDeletable($record)) {
              return $this->failureResponse(
                  $this->getLastUnmetDeleteConditionMessage()
              );
          }
  
          return $this->successResponse();
      }
code_tokens: public function deletable ( $ id ) { $ record = $ this -> modelRepository -> findOrFail ( $ id ) ; if ( ! $ this -> isModelDeletable ( $ record ) ) { return $ this -> failureResponse ( $ this -> getLastUnmetDeleteConditionMessage ( ) ) ; } return $ this -> successResponse ( ) ; }
docstring: Checks whether a model is deletable.
  
  @param mixed $id
  @return mixed
docstring_tokens: Checks whether a model is deletable .