text The text displayed to the user when they agreed to opt-in. * * @return void */ public function opt_in( string $stellar_slug, string $opt_in_text = '' ) { $this->container->get( Status::class )->set_status( true, $stellar_slug ); try { $this->container->get( Telemetry::class )->register_site(); $this->container->get( Telemetry::class )->register_user( $stellar_slug, $opt_in_text ); } catch ( \Error $e ) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCatch // We don't want to throw errors if the server cannot be reached. } } }