Fix code standards issues (#171)

Signed-off-by: Andy Fragen <andy@thefragens.com>
This commit is contained in:
Andy Fragen 2025-07-17 15:43:38 -07:00 committed by GitHub
parent 80d56075f3
commit b64e97776d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 5 deletions

View file

@ -8,7 +8,6 @@
namespace FAIR\Settings; namespace FAIR\Settings;
use const FAIR\Avatars\AVATAR_SRC_SETTING_KEY; use const FAIR\Avatars\AVATAR_SRC_SETTING_KEY;
/* phpcs:disable Squiz.PHP.EmbeddedPhp.ContentBeforeOpen, Squiz.PHP.EmbeddedPhp.ContentAfterOpen, Squiz.PHP.EmbeddedPhp.ContentBeforeEnd */
/** /**
* Bootstrap. * Bootstrap.
@ -89,9 +88,9 @@ function save_multisite_avatar_settings() {
* *
* @param array $args The args passed from the `add_settings_field` call or our own. * @param array $args The args passed from the `add_settings_field` call or our own.
* *
* @return HTML * @return void
*/ */
function site_avatar_source_field( $args ) { function site_avatar_source_field( $args ) : void {
// The rest of the table markup is there, so begin with the select. // The rest of the table markup is there, so begin with the select.
echo '<select id="' . esc_attr( $args['field_id'] ) . '" name="' . esc_attr( $args['field_name'] ) . '" aria-describedby="fair-avatar-source-description">'; echo '<select id="' . esc_attr( $args['field_id'] ) . '" name="' . esc_attr( $args['field_name'] ) . '" aria-describedby="fair-avatar-source-description">';

View file

@ -7,9 +7,9 @@
namespace FAIR\Upgrades; namespace FAIR\Upgrades;
use const FAIR\VERSION;
use const FAIR\PLUGIN_FILE;
use const FAIR\Avatars\AVATAR_SRC_SETTING_KEY; use const FAIR\Avatars\AVATAR_SRC_SETTING_KEY;
use const FAIR\PLUGIN_FILE;
use const FAIR\VERSION;
/** /**
* Bootstrap. * Bootstrap.

View file

@ -74,4 +74,8 @@
<exclude-pattern>inc/icons/svg\.php</exclude-pattern> <exclude-pattern>inc/icons/svg\.php</exclude-pattern>
<exclude-pattern>tests/phpunit/bootstrap\.php</exclude-pattern> <exclude-pattern>tests/phpunit/bootstrap\.php</exclude-pattern>
</rule> </rule>
<rule ref="Squiz.PHP.EmbeddedPhp">
<exclude-pattern>inc/settings/namespace\.php</exclude-pattern>
</rule>
</ruleset> </ruleset>