public function parseResponseBody($body) { $response = parent::parseResponseBody($body); if (count($response) >= $this->getOption('limit.page')) { // Pop last element and save (we will need it for the next marker) $this->nextElement = array_pop($response); } return $response; }
public function parseResponseBody($body) { $parsed = parent::parseResponseBody($body); // Differentiate memory structure if (is_object($parsed) && isset($parsed->info->swap_free)) { $parsed->info = array($parsed->info); } return $parsed; }