Skip to content

Commit

Permalink
chore: prep for flarum/gdpr (#59)
Browse files Browse the repository at this point in the history
* chore: prep for flarum/gdpr

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <[email protected]>
  • Loading branch information
imorland and StyleCIBot authored Nov 3, 2024
1 parent 5bd5769 commit f7cc50b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"color": "#fff"
},
"optional-dependencies": [
"blomstra/gdpr"
"flarum/gdpr"
]
},
"flagrow": {
Expand All @@ -67,7 +67,7 @@
},
"require-dev": {
"flarum/phpstan": "*",
"blomstra/gdpr": "@beta"
"flarum/gdpr": "dev-main"
},
"scripts": {
"analyse:phpstan": "phpstan analyse",
Expand Down
4 changes: 2 additions & 2 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

namespace FoF\Terms;

use Blomstra\Gdpr\Extend\UserData;
use Flarum\Api\Controller\ShowForumController;
use Flarum\Api\Serializer\BasicUserSerializer;
use Flarum\Api\Serializer\ForumSerializer;
use Flarum\Database\AbstractModel;
use Flarum\Extend;
use Flarum\Gdpr\Extend\UserData;
use Flarum\User\User;
use FoF\Terms\Middlewares\RegisterMiddleware;
use FoF\Terms\Repositories\PolicyRepository;
Expand Down Expand Up @@ -90,7 +90,7 @@
->addInclude('fofTermsPolicies'),

(new Extend\Conditional())
->whenExtensionEnabled('blomstra-gdpr', fn () => [
->whenExtensionEnabled('flarum-gdpr', fn () => [
(new UserData())
->addType(Data\UserPolicyData::class),
]),
Expand Down
2 changes: 1 addition & 1 deletion resources/locale/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ fof-terms:
user_controls:
state_button: Terms accept state

blomstra-gdpr:
flarum-gdpr:
lib:
data:
userpolicydata:
Expand Down
2 changes: 1 addition & 1 deletion src/Data/UserPolicyData.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

namespace FoF\Terms\Data;

use Blomstra\Gdpr\Data\Type;
use Carbon\Carbon;
use Flarum\Gdpr\Data\Type;
use FoF\Terms\Policy;
use FoF\Terms\Repositories\PolicyRepository;
use Illuminate\Database\Eloquent\Collection;
Expand Down

0 comments on commit f7cc50b

Please sign in to comment.