From cf93b8eff031286105f634be2c0cac1c4c4502fd Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sun, 14 Jul 2024 00:11:18 +0200 Subject: [PATCH] Lint --- tests/Feature/Form/FormtemplateFieldRequest.php | 2 +- tests/FileshareTestCase.php | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/Feature/Form/FormtemplateFieldRequest.php b/tests/Feature/Form/FormtemplateFieldRequest.php index cfcdc555..89945bf7 100644 --- a/tests/Feature/Form/FormtemplateFieldRequest.php +++ b/tests/Feature/Form/FormtemplateFieldRequest.php @@ -10,7 +10,7 @@ use App\Form\Enums\SpecialType; /** * @method self name(string $name) * @method self key(string $key) - * @method self required(bool $isRequired) + * @method self required(bool|string $isRequired) * @method self rows(int $rows) * @method self columns(array{mobile: int, tablet: int, desktop: int} $rows) * @method self default(mixed $default) diff --git a/tests/FileshareTestCase.php b/tests/FileshareTestCase.php index 5ab7afc2..aaeac0a8 100644 --- a/tests/FileshareTestCase.php +++ b/tests/FileshareTestCase.php @@ -62,9 +62,7 @@ abstract class FileshareTestCase extends TestCase return Http::withOptions(['base_uri' => env('TEST_OWNCLOUD_DOMAIN')])->withBasicAuth($this->adminUser, $this->adminPassword)->acceptJson(); } - if ($connection === NextcloudConnection::class) { - return Http::withOptions(['base_uri' => env('TEST_NEXTCLOUD_DOMAIN')])->withHeaders(['OCS-APIRequest' => 'true'])->withBasicAuth($this->adminUser, $this->adminPassword)->acceptJson(); - } + return Http::withOptions(['base_uri' => env('TEST_NEXTCLOUD_DOMAIN')])->withHeaders(['OCS-APIRequest' => 'true'])->withBasicAuth($this->adminUser, $this->adminPassword)->acceptJson(); } /** @@ -102,9 +100,7 @@ abstract class FileshareTestCase extends TestCase 'userName' => $username, 'password' => $this->passwords[$username], ]), '/remote.php/dav/files/' . $username); - } - - if ($connection === NextcloudConnection::class) { + } else { $adapter = new WebDAVAdapter(new Client([ 'baseUri' => env('TEST_NEXTCLOUD_DOMAIN') . '/remote.php/dav/files/' . $username, 'userName' => $username,