Skip to content

Commit fc9dd96

Browse files
committed
CS
1 parent e7d356f commit fc9dd96

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

lib/ycom_user.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
class rex_ycom_user extends rex_yform_manager_dataset
44
{
5-
public string $password = '';
6-
public int $login_tries = 0;
7-
85
// Status constants
96
public const STATUS_INACTIVE_TERMINATION = -3;
107
public const STATUS_INACTIVE_LOGINS = -2;
@@ -22,6 +19,8 @@ class rex_ycom_user extends rex_yform_manager_dataset
2219
self::STATUS_CONFIRMED => 'translate:ycom_account_confirm',
2320
self::STATUS_ACTIVE => 'translate:ycom_account_active',
2421
];
22+
public string $password = '';
23+
public int $login_tries = 0;
2524

2625
/**
2726
* @return rex_ycom_user|null

plugins/auth/update.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@
55
* @psalm-scope-this rex_addon
66
*/
77

8-
98
// Ohne Overwrite schema
109
// dann werden nur fehlende Felder angelegt
1110
// rex_yform_manager_table_api::importTablesets($content);
1211
// existiert noch nicht
1312

1413
// einzelne Änderungen hier erzwingen und einzeln angeben
1514

16-
17-
1815
$this->includeFile(__DIR__ . '/install.php');

tests/unit/user_status_test.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ public function testDefaultStatusOptions()
3333
{
3434
// Test that default status options contain all expected entries
3535
$defaultOptions = rex_ycom_user::DEFAULT_STATUS_OPTIONS;
36-
36+
3737
self::assertIsArray($defaultOptions);
3838
self::assertArrayHasKey(-3, $defaultOptions);
3939
self::assertArrayHasKey(-2, $defaultOptions);
4040
self::assertArrayHasKey(-1, $defaultOptions);
4141
self::assertArrayHasKey(0, $defaultOptions);
4242
self::assertArrayHasKey(1, $defaultOptions);
4343
self::assertArrayHasKey(2, $defaultOptions);
44-
44+
4545
// Test that values are translation keys
4646
self::assertEquals('translate:ycom_account_inactive_termination', $defaultOptions[-3]);
4747
self::assertEquals('translate:ycom_account_inactive_logins', $defaultOptions[-2]);
@@ -55,10 +55,10 @@ public function testGetStatusOptionsReturnsArray()
5555
{
5656
// Test that getStatusOptions returns an array
5757
$options = rex_ycom_user::getStatusOptions();
58-
58+
5959
self::assertIsArray($options);
6060
self::assertNotEmpty($options);
61-
61+
6262
// Test that it returns the default options
6363
self::assertEquals(rex_ycom_user::DEFAULT_STATUS_OPTIONS, $options);
6464
}

0 commit comments

Comments
 (0)