Test Failed
Push — master ( c2c5e3...6c3fa5 )
by Brandon
02:30
created
includes.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -6,35 +6,35 @@
 block discarded – undo
6 6
  */
7 7
 
8 8
 /* Exit if accessed directly. */
9
-if ( ! defined( 'ABSPATH' ) ) { exit; }
9
+if ( ! defined('ABSPATH')) { exit; }
10 10
 
11 11
 
12 12
 
13 13
 // Google maps.
14
-include_once( 'modules/google-maps/gmaps.php' );
14
+include_once('modules/google-maps/gmaps.php');
15 15
 
16 16
 // Equal Housing.
17
-include_once( 'modules/equal-housing/equal-housing.php' );
17
+include_once('modules/equal-housing/equal-housing.php');
18 18
 
19 19
 // Zillow.
20
-include_once( 'modules/zillow/zillow.php' );
20
+include_once('modules/zillow/zillow.php');
21 21
 
22
-include_once( 'modules/trulia/trulia.php' );
22
+include_once('modules/trulia/trulia.php');
23 23
 
24
-include_once( 'modules/inman/inman.php' );
24
+include_once('modules/inman/inman.php');
25 25
 
26
-include_once( 'modules/homes-com/homes-com.php' );
26
+include_once('modules/homes-com/homes-com.php');
27 27
 
28 28
 
29
-include_once( 'modules/streetadvisor/streetadvisor.php' );
29
+include_once('modules/streetadvisor/streetadvisor.php');
30 30
 
31
-include_once( 'modules/greatschools/greatschools.php' );
31
+include_once('modules/greatschools/greatschools.php');
32 32
 
33
-include_once( 'modules/homefinder/homefinder.php' );
33
+include_once('modules/homefinder/homefinder.php');
34 34
 
35
-include_once( 'modules/rentbits/rentbits.php' );
35
+include_once('modules/rentbits/rentbits.php');
36 36
 
37 37
 
38
-include_once( 'modules/users/class-user-roles.php' );
39
-include_once( 'modules/users/class-user-fields.php' );
38
+include_once('modules/users/class-user-roles.php');
39
+include_once('modules/users/class-user-fields.php');
40 40
 
Please login to merge, or discard this patch.
modules/users/class-user-fields.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * @param mixed $user User.
10 10
  * @return void
11 11
  */
12
-function repro_user_profile_fields( $user ) {
12
+function repro_user_profile_fields($user) {
13 13
 
14 14
 	?>
15 15
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 			<th><label for="zillow-username">Zillow Username:</label></th>
22 22
 
23 23
 			<td>
24
-				<input type="text" name="zillow_username" id="zillow-username" value="<?php echo esc_attr( get_the_author_meta( 'zillow_username', $user->ID ) ); ?>" class="regular-text" /><br />
24
+				<input type="text" name="zillow_username" id="zillow-username" value="<?php echo esc_attr(get_the_author_meta('zillow_username', $user->ID)); ?>" class="regular-text" /><br />
25 25
 				<span class="description">Please provide your Zillow Username.</span>
26 26
 			</td>
27 27
 		</tr>
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 			<th><label for="trulia-username">Trulia Username:</label></th>
31 31
 
32 32
 			<td>
33
-				<input type="text" name="trulia_username" id="trulia-username" value="<?php echo esc_attr( get_the_author_meta( 'trulia_username', $user->ID ) ); ?>" class="regular-text" /><br />
33
+				<input type="text" name="trulia_username" id="trulia-username" value="<?php echo esc_attr(get_the_author_meta('trulia_username', $user->ID)); ?>" class="regular-text" /><br />
34 34
 				<span class="description">Please provide your Trulia Username.</span>
35 35
 			</td>
36 36
 		</tr>
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 			<th><label for="homescom-user-id">Homes.com User ID:</label></th>
40 40
 
41 41
 			<td>
42
-				<input type="text" name="homescom_user_id" id="homescom-user-id" value="<?php echo esc_attr( get_the_author_meta( 'homescom_user_id', $user->ID ) ); ?>" class="regular-text" /><br />
42
+				<input type="text" name="homescom_user_id" id="homescom-user-id" value="<?php echo esc_attr(get_the_author_meta('homescom_user_id', $user->ID)); ?>" class="regular-text" /><br />
43 43
 				<span class="description">Please provide your Homes.com User ID.</span>
44 44
 			</td>
45 45
 		</tr>
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 			<th><label for="realtorcom-url">Realtor.com Profile Url:</label></th>
50 50
 
51 51
 			<td>
52
-				<input type="text" name="realtorcom_url" id="realtorcom-url" value="<?php echo esc_attr( get_the_author_meta( 'realtorcom_url', $user->ID ) ); ?>" class="regular-text" /><br />
52
+				<input type="text" name="realtorcom_url" id="realtorcom-url" value="<?php echo esc_attr(get_the_author_meta('realtorcom_url', $user->ID)); ?>" class="regular-text" /><br />
53 53
 				<span class="description">Please provide your Realtor.com URL.</span>
54 54
 			</td>
55 55
 		</tr>
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
 	<?php
60 60
 
61 61
 } // End repro_user_profile_fields.
62
-add_action( 'show_user_profile', 'repro_user_profile_fields' );
63
-add_action( 'edit_user_profile', 'repro_user_profile_fields' );
62
+add_action('show_user_profile', 'repro_user_profile_fields');
63
+add_action('edit_user_profile', 'repro_user_profile_fields');
64 64
 
65 65
 /**
66 66
  * repro_user_save_profile_fields function.
@@ -69,18 +69,18 @@  discard block
 block discarded – undo
69 69
  * @param mixed $user_id User ID.
70 70
  * @return void
71 71
  */
72
-function repro_user_save_profile_fields( $user_id ) {
72
+function repro_user_save_profile_fields($user_id) {
73 73
 
74
-	if ( ! current_user_can( 'edit_user', $user_id ) ) {
74
+	if ( ! current_user_can('edit_user', $user_id)) {
75 75
 		return false;
76 76
 	}
77 77
 
78
-	update_user_meta( $user_id, 'zillow_username', $_POST['zillow_username'] );
79
-	update_user_meta( $user_id, 'trulia_username', $_POST['trulia_username'] );
80
-	update_user_meta( $user_id, 'homescom_user_id', $_POST['homescom_user_id'] );
81
-	update_user_meta( $user_id, 'realtorcom_url', $_POST['realtorcom_url'] );
78
+	update_user_meta($user_id, 'zillow_username', $_POST['zillow_username']);
79
+	update_user_meta($user_id, 'trulia_username', $_POST['trulia_username']);
80
+	update_user_meta($user_id, 'homescom_user_id', $_POST['homescom_user_id']);
81
+	update_user_meta($user_id, 'realtorcom_url', $_POST['realtorcom_url']);
82 82
 
83 83
 } // End repro_user_save_profile_fields.
84
-add_action( 'personal_options_update', 'repro_user_save_profile_fields' );
85
-add_action( 'edit_user_profile_update', 'repro_user_save_profile_fields' );
84
+add_action('personal_options_update', 'repro_user_save_profile_fields');
85
+add_action('edit_user_profile_update', 'repro_user_save_profile_fields');
86 86
 
Please login to merge, or discard this patch.
modules/users/class-user-roles.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 * @access private
29 29
 	 * @return void
30 30
 	 */
31
-	private function add_roles(){
31
+	private function add_roles() {
32 32
 
33 33
 		// Add Lead.
34 34
 		add_role(
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 				'Lead'
37 37
 			),
38 38
 			array(
39
-				'read'              => true,  // Allows a user to read.
39
+				'read'              => true, // Allows a user to read.
40 40
 				'create_posts'      => false, // Allows user to create new posts.
41 41
 				'edit_posts'        => false, // Allows user to edit their own posts.
42 42
 				'edit_others_posts' => false, // Allows user to edit others posts too.
Please login to merge, or discard this patch.