X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FuserOptions.php;h=eb8da57e86a860672c738ef3dd1eb0acc898caba;hb=5f49c61c632734d4b2a2d4ee573a284d6d94718a;hp=7cf16b611e59b1bd5495232182794cb64231f26f;hpb=1b13888ed6bd09731f10045650714a3392bb55df;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/userOptions.php b/maintenance/userOptions.php index 7cf16b611e..eb8da57e86 100644 --- a/maintenance/userOptions.php +++ b/maintenance/userOptions.php @@ -102,23 +102,21 @@ The new option is NOT validated.' ); // Get the options and update stats if ( $option ) { if ( !array_key_exists( $option, $defaultOptions ) ) { - $this->error( "Invalid user option. Use --list to see valid choices\n", 1 ); + $this->fatalError( "Invalid user option. Use --list to see valid choices\n" ); } $userValue = $user->getOption( $option ); if ( $userValue <> $defaultOptions[$option] ) { - // @codingStandardsIgnoreStart Ignore silencing errors is discouraged warning + // phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged @$ret[$option][$userValue]++; - // @codingStandardsIgnoreEnd } } else { foreach ( $defaultOptions as $name => $defaultValue ) { $userValue = $user->getOption( $name ); if ( $userValue != $defaultValue ) { - // @codingStandardsIgnoreStart Ignore silencing errors is discouraged warning + // phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged @$ret[$name][$userValue]++; - // @codingStandardsIgnoreEnd } } }