@@ -98,6 +98,7 @@ public function get_subdomains($domain) {
98
98
99
99
/**
100
100
* Get spf txt record contents
101
+ * @param string $domain specify a different domain
101
102
* @return string txt record
102
103
*/
103
104
public function get_spf_record ($ domain = '' ) {
@@ -134,7 +135,7 @@ public function get_mxtoolbox_spf_url() {
134
135
* Returns the include if matched
135
136
*
136
137
* The include can have a wildcard and this will return the actual matched value.
137
- * @param string include domain
138
+ * @param string $include include domain
138
139
* @return string matched include
139
140
*/
140
141
public function include_present (string $ include ) {
@@ -163,6 +164,8 @@ public function get_dkim_selector() {
163
164
164
165
/**
165
166
* Get DKIM txt record contents
167
+ * @param string $selector DKIM selector
168
+ * @param string $domain DKIM domain
166
169
* @return string txt record
167
170
*/
168
171
public function get_dkim_dns_domain ($ selector , $ domain ) {
@@ -171,6 +174,7 @@ public function get_dkim_dns_domain($selector, $domain) {
171
174
172
175
/**
173
176
* Get DKIM txt record contents
177
+ * @param string $selector DKIM selector
174
178
* @return string txt record
175
179
*/
176
180
public function get_dkim_record ($ selector ) {
@@ -187,7 +191,7 @@ public function get_dkim_record($selector) {
187
191
188
192
/**
189
193
* Get DKIM txt record contents
190
- * @return string txt record
194
+ * @return array txt record
191
195
*/
192
196
public function get_dmarc_dns_record () {
193
197
$ domain = $ this ->get_noreply_domain ();
@@ -215,13 +219,14 @@ public function get_dmarc_dns_record() {
215
219
216
220
/**
217
221
* Get MX record contents
218
- * @return string txt record
222
+ * @param string $domain domain to check
223
+ * @return array txt record
219
224
*/
220
225
public function get_mx_record ($ domain ) {
221
226
222
227
$ records = @dns_get_record ($ domain , DNS_MX );
223
228
if (empty ($ records )) {
224
- return ;
229
+ return [] ;
225
230
}
226
231
usort ($ records , function ($ a , $ b ) {
227
232
if ($ a ['pri ' ] == $ b ['pri ' ]) {
@@ -234,6 +239,8 @@ public function get_mx_record($domain) {
234
239
235
240
/**
236
241
* Get matching record contents
242
+ * @param string $domain domain to check
243
+ * @param string $match search for specific match
237
244
* @return string txt record
238
245
*/
239
246
public function get_matching_dns_record ($ domain , $ match ) {
0 commit comments