Apply fixes from StyleCI (#1507)

[ci skip] [skip ci]
This commit is contained in:
Franz Liedke 2018-07-16 01:44:50 +02:00 committed by GitHub
parent fffab39c4b
commit d95a1481be

View File

@ -76,7 +76,8 @@ class Discussion implements ContentInterface
unset($newQueryParams['id']);
$queryString = http_build_query($newQueryParams);
$idWithSlug = $apiDocument->data->id . (trim($apiDocument->data->attributes->slug) ? '-' . $apiDocument->data->attributes->slug : '');
$idWithSlug = $apiDocument->data->id.(trim($apiDocument->data->attributes->slug) ? '-'.$apiDocument->data->attributes->slug : '');
return $this->url->to('forum')->route('discussion', ['id' => $idWithSlug]).
($queryString ? '?'.$queryString : '');
};