diff --git a/src/Profile/ProfileField/Depository/ProfileField.php b/src/Profile/ProfileField/Depository/ProfileField.php index 0ca427a1a1..dafe08f95c 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 e4f29d686f..8acd1d94ca 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, ], ]; }