@@ -313,6 +313,9 @@ discard block |
||
| 313 | 313 | $this->message = apply_filters( 'frm_email_message', $this->message, $this->package_atts() ); |
| 314 | 314 | } |
| 315 | 315 | |
| 316 | + /** |
|
| 317 | + * @param string $mail_body |
|
| 318 | + */ |
|
| 316 | 319 | private function maybe_add_ip( &$mail_body ) { |
| 317 | 320 | if ( ! empty( $this->entry->ip ) ) { |
| 318 | 321 | $mail_body .= __( 'IP Address', 'formidable' ) . ': ' . $this->entry->ip . "\r\n"; |
@@ -437,7 +440,7 @@ discard block |
||
| 437 | 440 | * |
| 438 | 441 | * @since 2.03.04 |
| 439 | 442 | * |
| 440 | - * @return array |
|
| 443 | + * @return string[] |
|
| 441 | 444 | */ |
| 442 | 445 | private function package_header() { |
| 443 | 446 | $header = array(); |
@@ -621,6 +624,7 @@ discard block |
||
| 621 | 624 | * Get only the email if the name and email have been combined |
| 622 | 625 | * |
| 623 | 626 | * @since 3.0.06 |
| 627 | + * @param string $name |
|
| 624 | 628 | */ |
| 625 | 629 | private function get_email_from_name( $name ) { |
| 626 | 630 | $email = $name; |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | 'entry' => $this->entry, |
| 96 | 96 | 'form' => $this->form, |
| 97 | 97 | ); |
| 98 | - $to = apply_filters( 'frm_to_email', $to, $values, $this->form->id, $args ); |
|
| 98 | + $to = apply_filters( 'frm_to_email', $to, $values, $this->form->id, $args ); |
|
| 99 | 99 | |
| 100 | 100 | $this->to = array_unique( (array) $to ); |
| 101 | 101 | |
@@ -440,7 +440,7 @@ discard block |
||
| 440 | 440 | * @return array |
| 441 | 441 | */ |
| 442 | 442 | private function package_header() { |
| 443 | - $header = array(); |
|
| 443 | + $header = array(); |
|
| 444 | 444 | |
| 445 | 445 | if ( ! empty( $this->cc ) ) { |
| 446 | 446 | $header[] = 'CC: ' . implode( ',', $this->cc ); |
@@ -553,12 +553,12 @@ discard block |
||
| 553 | 553 | $name = trim( str_replace( $email, '', $val ) ); |
| 554 | 554 | } else { |
| 555 | 555 | // If user enters a name without an email |
| 556 | - unset( $recipients[ $key ] ); |
|
| 556 | + unset( $recipients[$key] ); |
|
| 557 | 557 | continue; |
| 558 | 558 | } |
| 559 | 559 | } |
| 560 | 560 | |
| 561 | - $recipients[ $key ] = $this->format_from_email( $name, $email ); |
|
| 561 | + $recipients[$key] = $this->format_from_email( $name, $email ); |
|
| 562 | 562 | } |
| 563 | 563 | |
| 564 | 564 | return $recipients; |
@@ -694,7 +694,7 @@ discard block |
||
| 694 | 694 | ) ); |
| 695 | 695 | |
| 696 | 696 | // Remove phone number from to addresses |
| 697 | - unset( $this->to[ $key ] ); |
|
| 697 | + unset( $this->to[$key] ); |
|
| 698 | 698 | } |
| 699 | 699 | } |
| 700 | 700 | } |