Linted files
[danixland-contact-form.git] / include / dnxcf_mail_template_danixland.php
index 69766ac..1c7d5b7 100644 (file)
@@ -1,4 +1,4 @@
-<?php 
+<?php
 defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
 /**
  * danixland-contact-form standard Template
@@ -23,20 +23,20 @@ the 2 arrays example structure is the following:
 
 // this is data gathered via various php variables and WordPress functions
 $data = array(
-    'ownname'   = '', // name of the person receiving the message aka US!
-    'site'      = get_bloginfo('name'), // the site name
-    'time'      = '', // string generated by current_time()
-    'host'      = '', // string generated by getenv("REMOTE_ADDR")
-    'ua'        = ''  // string corresponding to $_SERVER['HTTP_USER_AGENT']
+       'ownname'   = '', // name of the person receiving the message aka US!
+       'site'      = get_bloginfo('name'), // the site name
+       'time'      = '', // string generated by current_time()
+       'host'      = '', // string generated by getenv("REMOTE_ADDR")
+       'ua'        = ''  // string corresponding to $_SERVER['HTTP_USER_AGENT']
 );
 
 // this is data sent via $_POST by the form itself
 $posted = array(
-    'dnxcf_name'    = '', // the name of the user sending the message
-    'dnxcf_email'   = '', // the user's email
-    'dnxcf_website' = '', // the user's website
-    'dnxcf_subject' = '', // the subject of the message
-    'dnxcf_message' = ''  // the message body
+       'dnxcf_name'    = '', // the name of the user sending the message
+       'dnxcf_email'   = '', // the user's email
+       'dnxcf_website' = '', // the user's website
+       'dnxcf_subject' = '', // the subject of the message
+       'dnxcf_message' = ''  // the message body
 );
 
 */
@@ -45,12 +45,12 @@ $posted = array(
 // always the same name or the main plugin won't be able to send emails
 // NOTE TO SELF: "I need to fix this ASAP"
 function dnxcf_email_content( $data = array(), $posted = array() ) {
-    extract($data);
-    extract($posted);
+       extract( $data );
+       extract( $posted );
 
-    $ownurl = get_bloginfo('url');
-// heredoc to return the email content
-    $output = <<<DNX44665312EOT
+       $ownurl = get_bloginfo( 'url' );
+       // heredoc to return the email content
+       $output = <<<DNX44665312EOT
 
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
@@ -882,9 +882,8 @@ function dnxcf_email_content( $data = array(), $posted = array() ) {
 
 DNX44665312EOT;
 
-    return $output;
+       return $output;
 
 }
 
-?>