diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-10-08 16:21:31 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-10-08 16:21:31 +0200 |
commit | d78f6852c7daccf54614f54322f1b213fd6aea96 (patch) | |
tree | 96fed0c5502e5d1a2c7c303eff67a6f99f75a5d2 /build/integration/features/bootstrap/FeatureContext.php | |
parent | adeab41e2ab86e149912e37cdc7ee8bb5a0625c7 (diff) | |
download | nextcloud-server-d78f6852c7daccf54614f54322f1b213fd6aea96.tar.gz nextcloud-server-d78f6852c7daccf54614f54322f1b213fd6aea96.zip |
Fix whitespace issues in integration tests
Diffstat (limited to 'build/integration/features/bootstrap/FeatureContext.php')
-rw-r--r-- | build/integration/features/bootstrap/FeatureContext.php | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/build/integration/features/bootstrap/FeatureContext.php b/build/integration/features/bootstrap/FeatureContext.php index f440aece603..caff517a16d 100644 --- a/build/integration/features/bootstrap/FeatureContext.php +++ b/build/integration/features/bootstrap/FeatureContext.php @@ -43,35 +43,35 @@ class FeatureContext extends BehatContext { } /** - * @When /^sending "([^"]*)" to "([^"]*)"$/ - */ + * @When /^sending "([^"]*)" to "([^"]*)"$/ + */ public function sendingTo($verb, $url) { $this->sendingToWith($verb, $url, null); } /** - * Parses the xml answer to get ocs response which doesn't match with - * http one in v1 of the api. - */ - public function getOCSResponse($response){ + * Parses the xml answer to get ocs response which doesn't match with + * http one in v1 of the api. + */ + public function getOCSResponse($response) { return $response->xml()->meta[0]->statuscode; } /** - * Parses the xml answer to get the array of users returned. - */ + * Parses the xml answer to get the array of users returned. + */ public function getArrayOfUsersResponded($resp) { $listCheckedElements = $resp->xml()->data[0]->users[0]->element; - $extractedElementsArray = json_decode( json_encode($listCheckedElements) , 1); + $extractedElementsArray = json_decode(json_encode($listCheckedElements), 1); return $extractedElementsArray; } /** - * Parses the xml answer to get the array of groups returned. - */ + * Parses the xml answer to get the array of groups returned. + */ public function getArrayOfGroupsResponded($resp) { $listCheckedElements = $resp->xml()->data[0]->groups[0]->element; - $extractedElementsArray = json_decode( json_encode($listCheckedElements) , 1); + $extractedElementsArray = json_decode(json_encode($listCheckedElements), 1); return $extractedElementsArray; } @@ -100,7 +100,7 @@ class FeatureContext extends BehatContext { } } - + /** * @Then /^the OCS status code should be "([^"]*)"$/ */ @@ -161,7 +161,7 @@ class FeatureContext extends BehatContext { * @When /^creating the user "([^"]*)r"$/ */ public function creatingTheUser($user) { - $fullUrl = $this->baseUrl . "v{$this->apiVersion}.php/cloud/users/$user" ; + $fullUrl = $this->baseUrl . "v{$this->apiVersion}.php/cloud/users/$user"; $client = new Client(); $options = []; if ($this->currentUser === 'admin') { @@ -181,7 +181,7 @@ class FeatureContext extends BehatContext { * @When /^creating the group "([^"]*)r"$/ */ public function creatingTheGroup($group) { - $fullUrl = $this->baseUrl . "v{$this->apiVersion}.php/cloud/groups/addgroup" ; + $fullUrl = $this->baseUrl . "v{$this->apiVersion}.php/cloud/groups/addgroup"; $client = new Client(); $options = []; if ($this->currentUser === 'admin') { |