Skip to content

Commit

Permalink
Fix scrutinizer issues
Browse files Browse the repository at this point in the history
* PHPDoc
* Proper array initialization
  • Loading branch information
rullzer committed Oct 20, 2015
1 parent a0e4793 commit aeffd51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/provisioning_api/tests/testcase.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function setUp() {
/**
* Generates a temp user
* @param int $num number of users to generate
* @return array
* @return IUser[]|Iuser
*/
protected function generateUsers($num = 1) {
$users = array();
Expand Down
4 changes: 2 additions & 2 deletions apps/provisioning_api/tests/userstest.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public function testGetUserOnSelf() {
$user = $this->generateUsers();
$user->setDisplayName('foobar');
$this->userSession->setUser($user);
$params['userid'] = $user->getUID();
$params = ['userid' => $user->getUID()];
$result = $this->api->getUser($params);
$this->assertInstanceOf('OC_OCS_Result', $result);
$this->assertTrue($result->succeeded());
Expand All @@ -261,7 +261,7 @@ public function testGetUserOnNonExistingUser() {

public function testGetUserOnOtherUser() {
$users = $this->generateUsers(2);
$params['userid'] = $users[0];
$params = ['userid' => $users[0]->getUID()];
$this->userSession->setUser($users[1]);
$result = $this->api->getUser($params);
$this->assertInstanceOf('OC_OCS_Result', $result);
Expand Down

0 comments on commit aeffd51

Please sign in to comment.