| @@ -1,8 +1,9 @@ | ||
| 1 | -<?php if (!defined('ABSPATH')) exit; // Exit if accessed directly | |
| 1 | +<?php if (!defined('ABSPATH')) { exit; // Exit if accessed directly | |
| 2 | +} | |
| 2 | 3 | |
| 3 | 4 | /** |
| 4 | - * @var $app FluentCommunity\Framework\Foundation\Application | |
| 5 | + * @var FluentCommunity\Framework\Foundation\Application $app | |
| 5 | 6 | */ |
| 6 | 7 | |
| 7 | 8 | $app->addFilter('fluent_community/auth/signup_fields', function ($fields) { |
| 8 | 9 | $authSettings = \FluentCommunity\App\Services\AuthenticationService::getAuthSettings(); |
| @@ -29,5 +30,5 @@ | ||
| 29 | 30 | |
| 30 | 31 | return array_values(array_filter($fields, function ($field) use ($unavailableFields) { |
| 31 | 32 | return !in_array($field['name'] ?? '', $unavailableFields); |
| 32 | 33 | })); |
| 33 | -}, 10, 1); | |
| 34 | +}, 10, 1); | |