Skip to content

Commit

Permalink
style(PHP): adjust to updated code style rules
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed Sep 2, 2024
1 parent fd8b8ba commit 862ab6d
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/GroupBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class GroupBackend extends ABackend implements IAddToGroupBackend, ICountUsersBackend, ICreateGroupBackend, IDeleteGroupBackend, IGetDisplayNameBackend, IRemoveFromGroupBackend, INamedBackend {

/** @var array */
/** @var array */
private $groupCache = [];

public const TABLE_GROUPS = 'user_saml_groups';
Expand Down
4 changes: 2 additions & 2 deletions lib/Settings/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ public function getSection() {

/**
* @return int whether the form should be rather on the top or bottom of
* the admin section. The forms are arranged in ascending order of the
* priority values. It is required to return a value between 0 and 100.
* the admin section. The forms are arranged in ascending order of the
* priority values. It is required to return a value between 0 and 100.
*
* keep the server setting at the top, right after "server settings"
*/
Expand Down
2 changes: 1 addition & 1 deletion templates/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
<?php foreach ($_['name-id-formats'] as $key => $value): ?>
<option value="<?php p($key) ?>"
<?php if ($value['selected'] ?? false) {
p("selected");
p('selected');
} ?> ><?php p($value['label']) ?></option>
<?php endforeach; ?>
</select>
Expand Down
2 changes: 1 addition & 1 deletion templates/selectUserBackEnd.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Util::addScript('user_saml', 'selectUserBackEnd');

/** @var array $_ */
/** @var $l \OCP\IL10N */
/** @var \OCP\IL10N $l */
?>

<div id="saml-select-user-back-end">
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/Command/GetMetadataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

class GetMetadataTest extends \Test\TestCase {

/** @var GetMetadata|MockObject*/
/** @var GetMetadata|MockObject */
protected $GetMetadata;
/** @var SAMLSettings|MockObject*/
/** @var SAMLSettings|MockObject */
private $samlSettings;

protected function setUp(): void {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Controller/SAMLControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class SAMLControllerTest extends TestCase {
private $session;
/** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
private $userSession;
/** @var SAMLSettings|\PHPUnit_Framework_MockObject_MockObject*/
/** @var SAMLSettings|\PHPUnit_Framework_MockObject_MockObject */
private $samlSettings;
/** @var UserBackend|\PHPUnit_Framework_MockObject_MockObject */
private $userBackend;
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/GroupBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ public function testInGroup() {
foreach ($this->users as $user) {
$result = $this->groupBackend->inGroup($user['uid'], $group['gid']);
if (in_array($group['gid'], $user['groups'])) {
$this->assertTrue($result, sprintf("User %s should be member of group %s", $user['uid'], $group['gid']));
$this->assertTrue($result, sprintf('User %s should be member of group %s', $user['uid'], $group['gid']));
} else {
$this->assertFalse($result, sprintf("User %s should not be member of group %s", $user['uid'], $group['gid']));
$this->assertFalse($result, sprintf('User %s should not be member of group %s', $user['uid'], $group['gid']));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Settings/SectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SectionTest extends \Test\TestCase {
private $section;
/** @var IL10N|\PHPUnit_Framework_MockObject_MockObject */
private $l10n;
/** @var IURLGenerator|\PHPUnit_Framework_MockObject_MockObject */
/** @var IURLGenerator|\PHPUnit_Framework_MockObject_MockObject */
private $urlGenerator;

protected function setUp(): void {
Expand Down

0 comments on commit 862ab6d

Please sign in to comment.