original_string: protected function respondWithSuccess($data, TransformerAbstract $transformer = null, array $headers = [])
      {
          if ($transformer) {
              return $this->respondTransformer($data, SymfonyResponse::HTTP_OK, $transformer, $headers);
          }
          return $this->respondWithSimpleSuccess($data);
      }
code: protected function respondWithSuccess($data, TransformerAbstract $transformer = null, array $headers = [])
      {
          if ($transformer) {
              return $this->respondTransformer($data, SymfonyResponse::HTTP_OK, $transformer, $headers);
          }
          return $this->respondWithSimpleSuccess($data);
      }
code_tokens: protected function respondWithSuccess ( $ data , TransformerAbstract $ transformer = null , array $ headers = [ ] ) { if ( $ transformer ) { return $ this -> respondTransformer ( $ data , SymfonyResponse :: HTTP_OK , $ transformer , $ headers ) ; } return $ this -> respondWithSimpleSuccess ( $ data ) ; }
docstring: Return success response in json format
  
  @param mixed               $data        Response data
  @param TransformerAbstract $transformer Transformer class
  @param array               $headers     HTTP Header
  
  @return mixed
docstring_tokens: Return success response in json format