Skip to content

Commit

Permalink
Trim messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed May 30, 2016
1 parent 2730cbc commit ce9d87e
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -53,18 +53,18 @@ protected function _parse()
'type' => empty($this->_typeMap[$alert->type])
? ''
: $this->_typeMap[$alert->type],
'desc' => empty($alert->description)
? (empty($alert->wtype_meteo_name)
'desc' => empty(trim($alert->description))
? (empty(trim($alert->wtype_meteo_name))
? ''
: $alert->wtype_meteo_name)
: $alert->description,
: trim($alert->wtype_meteo_name))
: trim($alert->description),
// Euro only returns this, not epoch, but it's in UTC.
'date_text' => $alert->date,
'date' => $date,
'expires_text' => $alert->expires,
'expires' => $expires,
// 'tz' => $alert->tz_long, //@todo - needed??
'body' => $alert->message,
'body' => trim($alert->message),
// @todo This is available here: http://www.nws.noaa.gov/os/vtec/
// but probably not needed, since 'description' looks like it
// contains a sort-of-mapping already.
Expand Down

0 comments on commit ce9d87e

Please sign in to comment.