11<?php
2-
3- /*
2+ /**
43 * mailgun-wordpress-plugin - Sending mail from Wordpress using Mailgun
54 * Copyright (C) 2016 Mailgun, et al.
65 *
1716 * You should have received a copy of the GNU General Public License along
1817 * with this program; if not, write to the Free Software Foundation, Inc.,
1918 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19+ *
20+ * @package Mailgun
2021 */
2122
22-
2323/**
2424 * Tries several methods to get the MIME Content-Type of a file.
2525 *
@@ -60,6 +60,7 @@ function get_mime_content_type( string $filepath, string $default_type = 'text/p
6060 * `$from_addr` before being returned. The filtered result is null-tested
6161 * before being returned.
6262 *
63+ * @param string $from_name_header
6364 * @return string
6465 *
6566 * @since 1.5.8
@@ -108,7 +109,7 @@ function mg_detect_from_name( $from_name_header = null ): string {
108109 * This operates as a filter for the from address. If the override is set,
109110 * a given address will except in ONE case.
110111 * If the override is not enabled this is the from address resolution order:
111- * 1. From address given by headers - {@param $from_addr_header}
112+ * 1. From address given by headers - {$from_addr_header}
112113 * 2. From address set in Mailgun settings
113114 * 3. From `MAILGUN_FROM_ADDRESS` constant
114115 * 4. From address constructed as `wordpress@<your_site_domain>`
@@ -123,8 +124,7 @@ function mg_detect_from_name( $from_name_header = null ): string {
123124 * might appear to be another option but some hosts may refuse to
124125 * relay mail from an unknown domain.
125126 *
126- * @link http://trac.wordpress.org/ticket/5007.
127- *
127+ * @param null $from_addr_header
128128 * @return string
129129 *
130130 * @since 1.5.8
0 commit comments