$cursor Not used. * @return array|null */ public function step( int $scan_id, array $cursor ): ?array { $failed = $this->entries->failed_mail(); if ( $failed > 0 ) { $source = new Source( Source::OPTION, 'forensix_forms' ); $this->store->record( $scan_id, $this->app, new Observation( self::ID, Priority::HIGH, Priority::ERROR, __( 'Form messages arrived but the email about them was not sent', 'forensix-digital' ), home_url( '/' ), $source->type, $source->ref, __( 'Forms', 'forensix-digital' ), array( 'count' => $failed ) ), admin_url( 'admin.php?page=forensix-forms' ), sprintf( /* translators: %d: number of messages. */ _n( '%d message', '%d messages', $failed, 'forensix-digital' ), $failed ) ); } return null; } }