- 'version' => trim(str_replace("\n", '', $response[0])),
- 'changed' => trim(str_replace("\n", '', $response[1])),
- 'revision' => trim(str_replace("\n", '', $response[2])),
+ 'version' => trim(str_replace(PHP_EOL, '', $response[0])),
+ 'changed' => trim(str_replace(PHP_EOL, '', $response[1])),