@@ -86,6 +86,7 @@ public function get_subdomains($domain) {
86
86
87
87
/**
88
88
* Get spf txt record contents
89
+ * @param string $domain specify a different domain
89
90
* @return string txt record
90
91
*/
91
92
public function get_spf_record ($ domain = '' ) {
@@ -122,7 +123,7 @@ public function get_mxtoolbox_spf_url() {
122
123
* Returns the include if matched
123
124
*
124
125
* The include can have a wildcard and this will return the actual matched value.
125
- * @param string include domain
126
+ * @param string $include include domain
126
127
* @return string matched include
127
128
*/
128
129
public function include_present (string $ include ) {
@@ -151,6 +152,8 @@ public function get_dkim_selector() {
151
152
152
153
/**
153
154
* Get DKIM txt record contents
155
+ * @param string $selector DKIM selector
156
+ * @param string $domain DKIM domain
154
157
* @return string txt record
155
158
*/
156
159
public function get_dkim_dns_domain ($ selector , $ domain ) {
@@ -159,6 +162,7 @@ public function get_dkim_dns_domain($selector, $domain) {
159
162
160
163
/**
161
164
* Get DKIM txt record contents
165
+ * @param string $selector DKIM selector
162
166
* @return string txt record
163
167
*/
164
168
public function get_dkim_record ($ selector ) {
@@ -175,7 +179,7 @@ public function get_dkim_record($selector) {
175
179
176
180
/**
177
181
* Get DKIM txt record contents
178
- * @return string txt record
182
+ * @return array txt record
179
183
*/
180
184
public function get_dmarc_dns_record () {
181
185
$ domain = $ this ->get_noreply_domain ();
@@ -203,13 +207,14 @@ public function get_dmarc_dns_record() {
203
207
204
208
/**
205
209
* Get MX record contents
206
- * @return string txt record
210
+ * @param string $domain domain to check
211
+ * @return array txt record
207
212
*/
208
213
public function get_mx_record ($ domain ) {
209
214
210
215
$ records = @dns_get_record ($ domain , DNS_MX );
211
216
if (empty ($ records )) {
212
- return ;
217
+ return [] ;
213
218
}
214
219
usort ($ records , function ($ a , $ b ) {
215
220
if ($ a ['pri ' ] == $ b ['pri ' ]) {
@@ -222,6 +227,8 @@ public function get_mx_record($domain) {
222
227
223
228
/**
224
229
* Get matching record contents
230
+ * @param string $domain domain to check
231
+ * @param string $match search for specific match
225
232
* @return string txt record
226
233
*/
227
234
public function get_matching_dns_record ($ domain , $ match ) {
0 commit comments