refactor code registration for static analyse

This commit is contained in:
2024-01-13 00:33:03 +03:00
parent b13b998cdd
commit 5e24ef3555
3 changed files with 63 additions and 64 deletions

View File

@@ -17,7 +17,7 @@ class RegistrationTest extends TestCase
if (! Features::enabled(Features::registration())) {
$this->markTestSkipped('Registration support is not enabled.');
return;
// return;
}
$response = $this->get('/register');
@@ -30,7 +30,7 @@ class RegistrationTest extends TestCase
if (Features::enabled(Features::registration())) {
$this->markTestSkipped('Registration support is enabled.');
return;
// return;
}
$response = $this->get('/register');
@@ -43,7 +43,7 @@ class RegistrationTest extends TestCase
if (! Features::enabled(Features::registration())) {
$this->markTestSkipped('Registration support is not enabled.');
return;
// return;
}
$response = $this->post('/register', [