mirror of
https://ghproxy.net/https://github.com/fairpm/fair-plugin.git
synced 2025-09-04 10:32:01 +08:00
Fix code standards issues (#171)
Signed-off-by: Andy Fragen <andy@thefragens.com>
This commit is contained in:
parent
80d56075f3
commit
b64e97776d
3 changed files with 8 additions and 5 deletions
|
@ -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">';
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue