original_string: public function destroy($id = null)
      {
          // Check the ID
          if (!isset($id)) {
              throw new \InvalidArgumentException('Undefined ID', 400);
          }
  
          // Delete the record
          $result = $this->model->destroy($id);
  
          // Return results
          return [
              'success' => true,
              'id' => $result
          ];
      }
code: public function destroy($id = null)
      {
          // Check the ID
          if (!isset($id)) {
              throw new \InvalidArgumentException('Undefined ID', 400);
          }
  
          // Delete the record
          $result = $this->model->destroy($id);
  
          // Return results
          return [
              'success' => true,
              'id' => $result
          ];
      }
code_tokens: public function destroy ( $ id = null ) { // Check the ID if ( ! isset ( $ id ) ) { throw new \ InvalidArgumentException ( 'Undefined ID' , 400 ) ; } // Delete the record $ result = $ this -> model -> destroy ( $ id ) ; // Return results return [ 'success' => true , 'id' => $ result ] ; }
docstring: Remove the specified resource from storage
  
  @param array $id Resource ID
  @return array Response
docstring_tokens: Remove the specified resource from storage