From a07acac46303609947b5197527d9c81a819df2e9 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 17 Oct 2021 15:38:24 +0200 Subject: [PATCH] Fix PHP-CS --- .../ProfileField/Depository/ProfileField.php | 1 - .../ProfileField/Entity/ProfileFieldTest.php | 30 +++++++++---------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/src/Profile/ProfileField/Depository/ProfileField.php b/src/Profile/ProfileField/Depository/ProfileField.php index 0ca427a1a..dafe08f95 100644 --- a/src/Profile/ProfileField/Depository/ProfileField.php +++ b/src/Profile/ProfileField/Depository/ProfileField.php @@ -23,7 +23,6 @@ namespace Friendica\Profile\ProfileField\Depository; use Friendica\BaseDepository; use Friendica\Database\Database; -use Friendica\Database\DBA; use Friendica\Profile\ProfileField\Exception\ProfileFieldNotFoundException; use Friendica\Profile\ProfileField\Exception\ProfileFieldPersistenceException; use Friendica\Profile\ProfileField\Exception\UnexpectedPermissionSetException; diff --git a/tests/src/Profile/ProfileField/Entity/ProfileFieldTest.php b/tests/src/Profile/ProfileField/Entity/ProfileFieldTest.php index e4f29d686..8acd1d94c 100644 --- a/tests/src/Profile/ProfileField/Entity/ProfileFieldTest.php +++ b/tests/src/Profile/ProfileField/Entity/ProfileFieldTest.php @@ -36,13 +36,13 @@ class ProfileFieldTest extends MockedTest { return [ 'default' => [ - 'uid' => 23, - 'order' => 1, - 'psid' => 2, - 'label' => 'test', - 'value' => 'more', - 'created' => new \DateTime('2021-10-10T21:12:00.000000+0000', new \DateTimeZone('UTC')), - 'edited' => new \DateTime('2021-10-10T21:12:00.000000+0000', new \DateTimeZone('UTC')), + 'uid' => 23, + 'order' => 1, + 'psid' => 2, + 'label' => 'test', + 'value' => 'more', + 'created' => new \DateTime('2021-10-10T21:12:00.000000+0000', new \DateTimeZone('UTC')), + 'edited' => new \DateTime('2021-10-10T21:12:00.000000+0000', new \DateTimeZone('UTC')), 'permissionSet' => [ 'uid' => 23, 'allow_cid' => "<1>", @@ -53,13 +53,13 @@ class ProfileFieldTest extends MockedTest ] ], 'withId' => [ - 'uid' => 23, - 'order' => 1, - 'psid' => 2, - 'label' => 'test', - 'value' => 'more', - 'created' => new \DateTime('2021-10-10T21:12:00.000000+0000', new \DateTimeZone('UTC')), - 'edited' => new \DateTime('2021-10-10T21:12:00.000000+0000', new \DateTimeZone('UTC')), + 'uid' => 23, + 'order' => 1, + 'psid' => 2, + 'label' => 'test', + 'value' => 'more', + 'created' => new \DateTime('2021-10-10T21:12:00.000000+0000', new \DateTimeZone('UTC')), + 'edited' => new \DateTime('2021-10-10T21:12:00.000000+0000', new \DateTimeZone('UTC')), 'permissionSet' => [ 'uid' => 23, 'allow_cid' => "<1>", @@ -68,7 +68,7 @@ class ProfileFieldTest extends MockedTest 'deny_gid' => '<3>', 'id' => 2, ], - 'id' => 54, + 'id' => 54, ], ]; }