Skip to content

Commit

Permalink
Fix php code sniffer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbaudry committed Feb 13, 2015
1 parent 24face4 commit e28f21e
Showing 1 changed file with 51 additions and 11 deletions.
62 changes: 51 additions & 11 deletions src/main/php/Gomoob/Pushwoosh/Client/PushwooshMock.php
Expand Up @@ -66,15 +66,28 @@ class PushwooshMock implements IPushwoosh
*/
public function createMessage(CreateMessageRequest $createMessageRequest)
{
return CreateMessageResponse::create(json_decode('{"status_code":200,"status_message":"OK","response": {"Messages":[]}}', true));
return CreateMessageResponse::create(
json_decode('{
"status_code":200,
"status_message":"OK",
"response": {
"Messages":[]
}
}', true)
);
}

/**
* {@inheritDoc}
*/
public function deleteMessage(DeleteMessageRequest $deleteMessageRequest)
{
return DeleteMessageResponse::create(json_decode('{"status_code":200,"status_message":"OK"}', true));
return DeleteMessageResponse::create(
json_decode('{
"status_code":200,
"status_message":"OK"
}', true)
);
}

/**
Expand Down Expand Up @@ -107,7 +120,7 @@ public function getAuth()
public function getNearestZone(GetNearestZoneRequest $getNearestZoneRequest)
{
return GetNearestZoneResponse::create(
'{
json_decode('{
"status_code":200,
"status_message":"OK"
"response": {
Expand All @@ -117,7 +130,7 @@ public function getNearestZone(GetNearestZoneRequest $getNearestZoneRequest)
"range":100,
"distance":4715784
}
}'
}', true)
);
}

Expand All @@ -127,15 +140,15 @@ public function getNearestZone(GetNearestZoneRequest $getNearestZoneRequest)
public function getTags(GetTagsRequest $getTagsRequest)
{
return GetTagsResponse::create(
'{
json_decode('{
"status_code": 200,
"status_message": "OK"
"response": {
"result": {
"Language": "fr"
}
}
}'
}', true)
);
}

Expand All @@ -144,15 +157,26 @@ public function getTags(GetTagsRequest $getTagsRequest)
*/
public function pushStat(PushStatRequest $pushStatRequest)
{
return PushStatResponse::create(json_decode('{"status_code":200,"status_message":"OK"}', true));
return PushStatResponse::create(
json_decode('{
"status_code":200,
"status_message":"OK"
}', true)
);
}

/**
* {@inheritDoc}
*/
public function registerDevice(RegisterDeviceRequest $registerDeviceRequest)
{
return RegisterDeviceResponse::create(json_decode('{"status_code":200,"status_message":"OK","response": null}', true));
return RegisterDeviceResponse::create(
json_decode('{
"status_code":200,
"status_message":"OK",
"response": null
}', true)
);
}

/**
Expand Down Expand Up @@ -190,22 +214,38 @@ public function setAuth($auth)
*/
public function setBadge(SetBadgeRequest $setBadgeRequest)
{
return SetBadgeResponse::create(json_decode('{"status_code":200,"status_message":"OK"}', true));
return SetBadgeResponse::create(
json_decode('{
"status_code":200,
"status_message":"OK"
}', true)
);
}

/**
* {@inheritDoc}
*/
public function setTags(SetTagsRequest $setTagsRequest)
{
return SetTagsResponse::create(json_decode('{"status_code":200,"status_message":"OK","response": null}', true));
return SetTagsResponse::create(
json_decode('{
"status_code":200,
"status_message":"OK",
"response": null
}', true)
);
}

/**
* {@inheritDoc}
*/
public function unregisterDevice(UnregisterDeviceRequest $unregisterDeviceRequest)
{
return UnregisterDeviceResponse::create(json_decode('{"status_code":200,"status_message":"OK"}', true));
return UnregisterDeviceResponse::create(
json_decode('{
"status_code":200,
"status_message":"OK"
}', true)
);
}
}

0 comments on commit e28f21e

Please sign in to comment.