Test Failed
Push — master ( dd5863...6ad539 )
by
unknown
03:08
created
modules/modules.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,24 +1,24 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 // Google maps.
4
-include_once( 'google-maps/gmaps.php' );
4
+include_once('google-maps/gmaps.php');
5 5
 
6 6
 // Equal Housing.
7
-include_once( 'equal-housing/equal-housing.php' );
7
+include_once('equal-housing/equal-housing.php');
8 8
 
9 9
 // Zillow.
10
-include_once( 'zillow/zillow.php' );
10
+include_once('zillow/zillow.php');
11 11
 
12
-include_once( 'trulia/trulia.php' );
12
+include_once('trulia/trulia.php');
13 13
 
14
-include_once( 'inman/inman.php' );
14
+include_once('inman/inman.php');
15 15
 
16
-include_once( 'homes-com/homes-com.php' );
16
+include_once('homes-com/homes-com.php');
17 17
 
18
-include_once( 'streetadvisor/streetadvisor.php' );
18
+include_once('streetadvisor/streetadvisor.php');
19 19
 
20
-include_once( 'greatschools/greatschools.php' );
20
+include_once('greatschools/greatschools.php');
21 21
 
22
-include_once( 'homefinder/homefinder.php' );
22
+include_once('homefinder/homefinder.php');
23 23
 
24
-include_once( 'rentbits/rentbits.php' );
24
+include_once('rentbits/rentbits.php');
Please login to merge, or discard this patch.
modules/greatschools/widgets/widget-getschools.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@  discard block
 block discarded – undo
13 13
 
14 14
 		parent::__construct(
15 15
 			'getschools',
16
-			__( 'GreatSchools - Get List of Schools', 're-pro' ),
16
+			__('GreatSchools - Get List of Schools', 're-pro'),
17 17
 			array(
18
-				'description' => __( 'Get Schools', 're-pro' ),
18
+				'description' => __('Get Schools', 're-pro'),
19 19
 			)
20 20
 		);
21 21
 
@@ -29,39 +29,39 @@  discard block
 block discarded – undo
29 29
 	 * @param mixed $instance
30 30
 	 * @return void
31 31
 	 */
32
-	public function widget( $args, $instance ) {
32
+	public function widget($args, $instance) {
33 33
 
34
-	$greatschools_title = !empty( $instance['greatschools_title'] ) ? $instance['greatschools_title'] : '';
35
-	$greatschools_state = !empty( $instance['greatschools_state'] ) ? $instance['greatschools_state'] : '';
36
-	$greatschools_city = !empty( $instance['greatschools_city'] ) ? $instance['greatschools_city'] : '';
34
+	$greatschools_title = ! empty($instance['greatschools_title']) ? $instance['greatschools_title'] : '';
35
+	$greatschools_state = ! empty($instance['greatschools_state']) ? $instance['greatschools_state'] : '';
36
+	$greatschools_city = ! empty($instance['greatschools_city']) ? $instance['greatschools_city'] : '';
37 37
 
38 38
 	// Call our API.
39
-	$repro_settings = get_option( 'repro_settings' );
39
+	$repro_settings = get_option('repro_settings');
40 40
 	$greatschools_apikey = $repro_settings['greatschools_apikey'];
41 41
 
42
-	$greatschools = new GreatSchoolsAPI( $greatschools_apikey );
43
-	$schools = $greatschools->get_schools( $greatschools_state,$greatschools_city );
42
+	$greatschools = new GreatSchoolsAPI($greatschools_apikey);
43
+	$schools = $greatschools->get_schools($greatschools_state, $greatschools_city);
44 44
 
45 45
 
46 46
 
47 47
 		echo $args['before_widget'];
48 48
 
49
-		echo $args['before_title'] . esc_attr( $greatschools_title ) . $args['after_title'];
49
+		echo $args['before_title'] . esc_attr($greatschools_title) . $args['after_title'];
50 50
 
51 51
 				// var_dump($schools);
52 52
 
53
-				foreach($schools as $school) {
53
+				foreach ($schools as $school) {
54 54
 
55
-					foreach($school as $school_item) {
55
+					foreach ($school as $school_item) {
56 56
 
57 57
 						$name = $school_item['name'];
58
-						$type =$school_item['type'];
58
+						$type = $school_item['type'];
59 59
 						$grade_range = $school_item['gradeRange'];
60 60
 						$state = $school_item['state'];
61 61
 						$city = $school_item['city'];
62 62
 						$overview_link = $school_item['overviewLink'];
63 63
 
64
-						echo '<li><a href="'.$overview_link.'" rel="nofollow">' . $name . '</a></li>';
64
+						echo '<li><a href="' . $overview_link . '" rel="nofollow">' . $name . '</a></li>';
65 65
 					}
66 66
 
67 67
 
@@ -71,48 +71,48 @@  discard block
 block discarded – undo
71 71
 
72 72
 	}
73 73
 
74
-	public function form( $instance ) {
74
+	public function form($instance) {
75 75
 
76 76
 		// Set default values
77
-		$instance = wp_parse_args( (array) $instance, array(
77
+		$instance = wp_parse_args((array) $instance, array(
78 78
 			'greatschools_title' => '',
79 79
 			'greatschools_state' => '',
80 80
 			'greatschools_city' => '',
81
-		) );
81
+		));
82 82
 
83 83
 		// Retrieve an existing value from the database
84
-		$greatschools_title = !empty( $instance['greatschools_title'] ) ? $instance['greatschools_title'] : '';
85
-		$greatschools_state = !empty( $instance['greatschools_state'] ) ? $instance['greatschools_state'] : '';
86
-		$greatschools_city = !empty( $instance['greatschools_city'] ) ? $instance['greatschools_city'] : '';
84
+		$greatschools_title = ! empty($instance['greatschools_title']) ? $instance['greatschools_title'] : '';
85
+		$greatschools_state = ! empty($instance['greatschools_state']) ? $instance['greatschools_state'] : '';
86
+		$greatschools_city = ! empty($instance['greatschools_city']) ? $instance['greatschools_city'] : '';
87 87
 
88 88
 		// Form fields
89 89
 		echo '<p>';
90
-		echo '	<label for="' . $this->get_field_id( 'greatschools_title' ) . '" class="greatschools_title_label">' . __( 'Title', 're-pro' ) . '</label>';
91
-		echo '	<input type="text" id="' . $this->get_field_id( 'greatschools_title' ) . '" name="' . $this->get_field_name( 'greatschools_title' ) . '" class="widefat" placeholder="' . esc_attr__( '', 're-pro' ) . '" value="' . esc_attr( $greatschools_title ) . '">';
92
-		echo '	<span class="description">' . __( 'Title', 're-pro' ) . '</span>';
90
+		echo '	<label for="' . $this->get_field_id('greatschools_title') . '" class="greatschools_title_label">' . __('Title', 're-pro') . '</label>';
91
+		echo '	<input type="text" id="' . $this->get_field_id('greatschools_title') . '" name="' . $this->get_field_name('greatschools_title') . '" class="widefat" placeholder="' . esc_attr__('', 're-pro') . '" value="' . esc_attr($greatschools_title) . '">';
92
+		echo '	<span class="description">' . __('Title', 're-pro') . '</span>';
93 93
 		echo '</p>';
94 94
 
95 95
 		echo '<p>';
96
-		echo '	<label for="' . $this->get_field_id( 'greatschools_state' ) . '" class="greatschools_state_label">' . __( 'State', 're-pro' ) . '</label>';
97
-		echo '	<input type="text" id="' . $this->get_field_id( 'greatschools_state' ) . '" name="' . $this->get_field_name( 'greatschools_state' ) . '" class="widefat" placeholder="' . esc_attr__( '', 're-pro' ) . '" value="' . esc_attr( $greatschools_state ) . '">';
98
-		echo '	<span class="description">' . __( 'State', 're-pro' ) . '</span>';
96
+		echo '	<label for="' . $this->get_field_id('greatschools_state') . '" class="greatschools_state_label">' . __('State', 're-pro') . '</label>';
97
+		echo '	<input type="text" id="' . $this->get_field_id('greatschools_state') . '" name="' . $this->get_field_name('greatschools_state') . '" class="widefat" placeholder="' . esc_attr__('', 're-pro') . '" value="' . esc_attr($greatschools_state) . '">';
98
+		echo '	<span class="description">' . __('State', 're-pro') . '</span>';
99 99
 		echo '</p>';
100 100
 
101 101
 		echo '<p>';
102
-		echo '	<label for="' . $this->get_field_id( 'greatschools_city' ) . '" class="greatschools_city_label">' . __( 'City', 're-pro' ) . '</label>';
103
-		echo '	<input type="text" id="' . $this->get_field_id( 'greatschools_city' ) . '" name="' . $this->get_field_name( 'greatschools_city' ) . '" class="widefat" placeholder="' . esc_attr__( '', 're-pro' ) . '" value="' . esc_attr( $greatschools_city ) . '">';
104
-		echo '	<span class="description">' . __( 'City', 're-pro' ) . '</span>';
102
+		echo '	<label for="' . $this->get_field_id('greatschools_city') . '" class="greatschools_city_label">' . __('City', 're-pro') . '</label>';
103
+		echo '	<input type="text" id="' . $this->get_field_id('greatschools_city') . '" name="' . $this->get_field_name('greatschools_city') . '" class="widefat" placeholder="' . esc_attr__('', 're-pro') . '" value="' . esc_attr($greatschools_city) . '">';
104
+		echo '	<span class="description">' . __('City', 're-pro') . '</span>';
105 105
 		echo '</p>';
106 106
 
107 107
 	}
108 108
 
109
-	public function update( $new_instance, $old_instance ) {
109
+	public function update($new_instance, $old_instance) {
110 110
 
111 111
 		$instance = $old_instance;
112 112
 
113
-		$instance['greatschools_title'] = !empty( $new_instance['greatschools_title'] ) ? strip_tags( $new_instance['greatschools_title'] ) : '';
114
-		$instance['greatschools_state'] = !empty( $new_instance['greatschools_state'] ) ? strip_tags( $new_instance['greatschools_state'] ) : '';
115
-		$instance['greatschools_city'] = !empty( $new_instance['greatschools_city'] ) ? strip_tags( $new_instance['greatschools_city'] ) : '';
113
+		$instance['greatschools_title'] = ! empty($new_instance['greatschools_title']) ? strip_tags($new_instance['greatschools_title']) : '';
114
+		$instance['greatschools_state'] = ! empty($new_instance['greatschools_state']) ? strip_tags($new_instance['greatschools_state']) : '';
115
+		$instance['greatschools_city'] = ! empty($new_instance['greatschools_city']) ? strip_tags($new_instance['greatschools_city']) : '';
116 116
 
117 117
 		return $instance;
118 118
 
@@ -122,11 +122,11 @@  discard block
 block discarded – undo
122 122
 
123 123
 function greatschools_register_widgets() {
124 124
 
125
-	$repro_settings = get_option( 'repro_settings' );
125
+	$repro_settings = get_option('repro_settings');
126 126
 	$greatschools_apikey = $repro_settings['greatschools_apikey'];
127 127
 
128
-	if ( ! empty( $greatschools_apikey) ) {
129
-	register_widget( 'greatschools_getschools' );
128
+	if ( ! empty($greatschools_apikey)) {
129
+	register_widget('greatschools_getschools');
130 130
 	}
131 131
 }
132
-add_action( 'widgets_init', 'greatschools_register_widgets' );
132
+add_action('widgets_init', 'greatschools_register_widgets');
Please login to merge, or discard this patch.
modules/greatschools/greatschools.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once( 'wp-greatschools-api.php' );
3
+require_once('wp-greatschools-api.php');
4 4
 
5
-require_once( 'widgets/widget-getschools.php' );
5
+require_once('widgets/widget-getschools.php');
Please login to merge, or discard this patch.