code: public function parseResponse($data)
      {
          if (empty($data) || !$lines = preg_split('/\r?\n/', $data)) {
              return array();
          }
  
          if (strpos($lines[0], '#') === 0) {
              return $this->parseNewResponseFormat($lines);
          } else {
              return $this->parseOldResponseFormat($lines);
          }
      }
docs: {@inheritdoc}