$res = Item::performActivity($request['id'], $this->parameters['verb'], $uid);
if ($res) {
- if ($this->parameters['extension'] ?? '' == 'xml') {
+ if (($this->parameters['extension'] ?? '') == 'xml') {
$ok = 'true';
} else {
$ok = 'ok';
$notifications[] = new ApiNotification($Notify);
}
- if ($this->parameters['extension'] ?? '' == 'xml') {
+ if (($this->parameters['extension'] ?? '') == 'xml') {
$xmlnotes = [];
foreach ($notifications as $notification) {
$xmlnotes[] = ['@attributes' => $notification->toArray()];
$profile = self::formatProfile($profile, $profileFields);
$profiles = [];
- if ($this->parameters['extension'] ?? '' == 'xml') {
+ if (($this->parameters['extension'] ?? '') == 'xml') {
$profiles['0:profile'] = $profile;
} else {
$profiles[] = $profile;
{
protected function rawContent(array $request = [])
{
- if ($this->parameters['extension'] ?? '' == 'xml') {
+ if (($this->parameters['extension'] ?? '') == 'xml') {
$ok = 'true';
} else {
$ok = 'ok';
{
protected function rawContent(array $request = [])
{
- if ($this->parameters['extension'] ?? '' == 'xml') {
+ if (($this->parameters['extension'] ?? '') == 'xml') {
$hash = [
'remaining-hits' => '150',
'@attributes' => ["type" => "integer"],
'Content-type' => ['text/xml'],
ICanCreateResponses::X_HEADER => ['xml']
], $response->getHeaders());
- self::assertxml($response->getBody(), 'true');
+ self::assertxml($response->getBody(), 'ok');
}
}