Skip to content

Commit ed9b854

Browse files
committed
Refactored provider.php to use imported interfaces and single-line implements
Replaced fully qualified interface names with imported aliases via "use" statements. This keeps the implements list under the line-length limit and avoids a conflict between the Moodle line-length sniff and the Universal.AlphabeticExtendsImplements sniff.
1 parent 8b95a1e commit ed9b854

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

classes/privacy/provider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@
2424
namespace mod_customcert\privacy;
2525

2626
use core_privacy\local\metadata\collection;
27+
use core_privacy\local\metadata\provider as metadata_provider;
2728
use core_privacy\local\request\approved_contextlist;
2829
use core_privacy\local\request\approved_userlist;
2930
use core_privacy\local\request\contextlist;
31+
use core_privacy\local\request\core_userlist_provider;
3032
use core_privacy\local\request\helper;
33+
use core_privacy\local\request\plugin\provider as plugin_provider;
3134
use core_privacy\local\request\transform;
3235
use core_privacy\local\request\userlist;
3336
use core_privacy\local\request\writer;
@@ -38,10 +41,7 @@
3841
* @copyright 2018 Mark Nelson <[email protected]>
3942
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
4043
*/
41-
class provider implements
42-
\core_privacy\local\metadata\provider,
43-
\core_privacy\local\request\plugin\provider,
44-
\core_privacy\local\request\core_userlist_provider {
44+
class provider implements core_userlist_provider, metadata_provider, plugin_provider {
4545
/**
4646
* Return the fields which contain personal data.
4747
*

0 commit comments

Comments
 (0)