From e5c13dd87080412cc756e16a71fa997574714280 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Sun, 2 May 2021 11:56:48 +0100 Subject: [PATCH] refactor: run Rector `TYPE_DECLARATIONS` ruleset --- rector.php | 1 + src/footnotes.php | 12 +++--------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/rector.php b/rector.php index 981cdf3..3d837f2 100644 --- a/rector.php +++ b/rector.php @@ -20,6 +20,7 @@ return static function (ContainerConfigurator $containerConfigurator): void { $parameters->set(Option::SETS, [ SetList::CODE_QUALITY, SetList::DEAD_CODE, + SetList::TYPE_DECLARATION, // DowngradeSetList::PHP_80, // DowngradeSetList::PHP_74, // DowngradeSetList::PHP_73, diff --git a/src/footnotes.php b/src/footnotes.php index 6a1431a..a8273c7 100755 --- a/src/footnotes.php +++ b/src/footnotes.php @@ -63,10 +63,8 @@ define( 'PRODUCTION_ENV', false ); * * @since 2.8.0 * @see includes\Activator::activate() - * - * @return void */ -function activate_footnotes() { +function activate_footnotes(): void { /** * Provides plugin activation functionality. */ @@ -80,10 +78,8 @@ function activate_footnotes() { * * @since 2.8.0 * @see includes\Deactivator::deactivate() - * - * @return void */ -function deactivate_footnotes() { +function deactivate_footnotes(): void { /** * Provides plugin deactivation functionality. */ @@ -108,10 +104,8 @@ require_once plugin_dir_path( __FILE__ ) . 'includes/class-core.php'; * the plugin from this point in the file does not affect the page life cycle. * * @since 2.8.0 - * - * @return void */ -function run_footnotes() { +function run_footnotes(): void { /** * The plugin core. *