web/wp-content/plugins/caldera-forms/classes/email/trackdata.php
/**
	 * Prepare stats array with new queries
	 *
	 * @since 1.4.5
	 */
Prepare stats array with new queries
@since 1.4.5
Prepare stats array with new queries @since 1 . 4 . 5
protected function prepare_stats() {
		if ( empty( $this->stats[ 'sent' ] ) ) {
			$this->success();
		}
		if ( empty( $this->stats[ 'failed' ] ) ) {
			$this->failed();
		}
		$this->stats[ 'success_rate' ] = 100;
		if ( 0 != $this->stats[ 'failed' ] ) {
			$total = $this->stats[ 'total' ] = $this->stats[ 'sent' ] + $this->stats[ 'failed' ];
			if ( 0 != $total && 0 != $this->stats[ 'sent' ] ) {
				$this->stats[ 'success_rate' ] = round( $this->stats[ 'sent' ] / $total, 2 );
			}
		}
		set_transient( __CLASS__, $this->stats, 599 );
		$this->ready = true;
	}
protected function prepare_stats ( ) { if ( empty ( $ this -> stats [ 'sent' ] ) ) { $ this -> success ( ) ; } if ( empty ( $ this -> stats [ 'failed' ] ) ) { $ this -> failed ( ) ; } $ this -> stats [ 'success_rate' ] = 100 ; if ( 0 != $ this -> stats [ 'failed' ] ) { $ total = $ this -> stats [ 'total' ] = $ this -> stats [ 'sent' ] + $ this -> stats [ 'failed' ] ; if ( 0 != $ total && 0 != $ this -> stats [ 'sent' ] ) { $ this -> stats [ 'success_rate' ] = round ( $ this -> stats [ 'sent' ] / $ total , 2 ) ; } } set_transient ( __CLASS__ , $ this -> stats , 599 ) ; $ this -> ready = true ; }
Prepare stats array with new queries
 @since 1.4.5
Prepare stats array with new queries @since 1 . 4 . 5