Completed
Push — master ( 5a8fbc...eea109 )
by Mike
02:59
created
includes/class-connection-test.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 	 *
25 25
 	 * @see check_admin_page, check_airplane_mode, check_internet, check_splashbase
26 26
 	 *
27
-	 * @return boolean Status of connection to Internet/Splashbase.
27
+	 * @return null|boolean Status of connection to Internet/Splashbase.
28 28
 	 */
29 29
 	public function test(){
30 30
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * @subpackage Evans
18 18
  * @author     Old Town Media
19 19
  */
20
-class ConnectionTest{
20
+class ConnectionTest {
21 21
 
22 22
 	/**
23 23
 	 * Run all of our connection tests.
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 			return false;
90 90
 		}
91 91
 
92
-		$last_uri_bit = explode( '=', $_SERVER['REQUEST_URI'] );
92
+		$last_uri_bit = explode( '=', $_SERVER[ 'REQUEST_URI' ] );
93 93
 		if ( 'create-test-data' != end( $last_uri_bit ) ) {
94 94
 			return false;
95 95
 		}
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 		// Attempt to open a socket connection to Google
139 139
 		$connected = @fsockopen( "www.google.com", 80 );
140 140
 
141
-		if ( !$connected ) {
141
+		if ( ! $connected ) {
142 142
 			return false;
143 143
 		}
144 144
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 		$test_url = esc_url( $url );
166 166
 		$response = wp_remote_get( $test_url );
167 167
 
168
-		if ( !is_array( $response ) ) {
168
+		if ( ! is_array( $response ) ) {
169 169
 			return false;
170 170
 		}
171 171
 
Please login to merge, or discard this patch.
includes/class-metabox-types.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -306,6 +306,9 @@
 block discarded – undo
306 306
 
307 307
 	}
308 308
 
309
+	/**
310
+	 * @param string $source
311
+	 */
309 312
 	private function add_source( $fields, $source ){
310 313
 
311 314
 		if ( empty( $fields ) || empty( $source ) ){
Please login to merge, or discard this patch.
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  * @subpackage Evans
9 9
  * @author     Old Town Media
10 10
  */
11
-class MetaboxTypes{
11
+class MetaboxTypes {
12 12
 
13 13
 	/**
14 14
 	 * Decide which cmb library to try and loop to get our metaboxes.
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
 		// Loop through the rules to check for post type matches
110 110
 		foreach ( $fieldset->rules as $rule ) {
111
-			if ( $rule['param'] === 'post_type' && $rule['value'] === $slug ) {
111
+			if ( $rule[ 'param' ] === 'post_type' && $rule[ 'value' ] === $slug ) {
112 112
 				return true;
113 113
 			}
114 114
 		}
@@ -145,31 +145,31 @@  discard block
 block discarded – undo
145 145
 
146 146
 				$data = get_metadata( 'post', get_the_id() );
147 147
 
148
-				foreach ( $data['rule'] as $rule ) {
149
-					$rules[] = unserialize( $rule );
148
+				foreach ( $data[ 'rule' ] as $rule ) {
149
+					$rules[ ] = unserialize( $rule );
150 150
 				}
151 151
 
152 152
 				foreach ( $data as $key => $value ) {
153 153
 					if ( substr( $key, 0, 6 ) == 'field_' ) :
154
-						$field_detail = unserialize( $value[0] );
155
-						$fields[] = array(
156
-							'key'	 => $field_detail['key'],
157
-							'type'	 => $field_detail['type'],
158
-							'name'	 => $field_detail['label'],
159
-							'id'	 => $field_detail['name'],
154
+						$field_detail = unserialize( $value[ 0 ] );
155
+						$fields[ ] = array(
156
+							'key'	 => $field_detail[ 'key' ],
157
+							'type'	 => $field_detail[ 'type' ],
158
+							'name'	 => $field_detail[ 'label' ],
159
+							'id'	 => $field_detail[ 'name' ],
160 160
 							'extras' => (object) array(
161
-								'chars'	 => ( isset( $field_detail['maxlength'] ) ? $field_detail['maxlength'] : '' ),
162
-								'max'	 => ( isset( $field_detail['max'] ) ? $field_detail['max'] : '' ),
163
-								'min'	 => ( isset( $field_detail['min'] ) ? $field_detail['min'] : '' ),
161
+								'chars'	 => ( isset( $field_detail[ 'maxlength' ] ) ? $field_detail[ 'maxlength' ] : '' ),
162
+								'max'	 => ( isset( $field_detail[ 'max' ] ) ? $field_detail[ 'max' ] : '' ),
163
+								'min'	 => ( isset( $field_detail[ 'min' ] ) ? $field_detail[ 'min' ] : '' ),
164 164
 							),
165
-							'options' => ( isset( $field_detail['choices'] ) ? $field_detail['choices'] : '' ),
165
+							'options' => ( isset( $field_detail[ 'choices' ] ) ? $field_detail[ 'choices' ] : '' ),
166 166
 							'source' =>'acf',
167 167
 						);
168 168
 
169 169
 					endif;
170 170
 				}
171 171
 
172
-				$info[] = (object) array(
172
+				$info[ ] = (object) array(
173 173
 					'rules'		=> $rules,
174 174
 					'fields'	=> $fields
175 175
 				);
@@ -207,14 +207,14 @@  discard block
 block discarded – undo
207 207
 		foreach ( $all_metaboxes as $metabox_array ) {
208 208
 
209 209
 			// If the custom post type ID matches this set of fields, set & stop
210
-			if ( in_array( $slug, $metabox_array['object_types'] ) ) {
210
+			if ( in_array( $slug, $metabox_array[ 'object_types' ] ) ) {
211 211
 
212 212
 				// If this is the first group of fields, simply set the value
213 213
 				// Else, merge this group with the previous one
214 214
 				if ( empty( $fields ) ) {
215
-					$fields = $metabox_array['fields'];
215
+					$fields = $metabox_array[ 'fields' ];
216 216
 				} else {
217
-					$fields = array_merge( $fields, $metabox_array['fields'] );
217
+					$fields = array_merge( $fields, $metabox_array[ 'fields' ] );
218 218
 				}
219 219
 			}
220 220
 
@@ -227,12 +227,12 @@  discard block
 block discarded – undo
227 227
 			$match = false;
228 228
 
229 229
 			// Establish correct cmb types
230
-			if ( is_string( $cmb->meta_box['object_types'] ) ) {
231
-				if ( $cmb->meta_box['object_types'] == $slug ) {
230
+			if ( is_string( $cmb->meta_box[ 'object_types' ] ) ) {
231
+				if ( $cmb->meta_box[ 'object_types' ] == $slug ) {
232 232
 					$match = true;
233 233
 				}
234 234
 			} else {
235
-				if ( in_array( $slug, $cmb->meta_box['object_types'] ) ) {
235
+				if ( in_array( $slug, $cmb->meta_box[ 'object_types' ] ) ) {
236 236
 					$match = true;
237 237
 				}
238 238
 			}
@@ -242,9 +242,9 @@  discard block
 block discarded – undo
242 242
 			}
243 243
 
244 244
 			if ( empty( $fields ) ) {
245
-				$fields = $cmb->meta_box['fields'];
245
+				$fields = $cmb->meta_box[ 'fields' ];
246 246
 			} else {
247
-				$fields = array_merge( $fields, $cmb->meta_box['fields'] );
247
+				$fields = array_merge( $fields, $cmb->meta_box[ 'fields' ] );
248 248
 			}
249 249
 
250 250
 		}
@@ -281,14 +281,14 @@  discard block
 block discarded – undo
281 281
 		foreach ( $all_metaboxes as $metabox_array ) {
282 282
 
283 283
 			// If the custom post type ID matches this set of fields, set & stop
284
-			if ( in_array( $slug, $metabox_array['pages'] ) ) {
284
+			if ( in_array( $slug, $metabox_array[ 'pages' ] ) ) {
285 285
 
286 286
 				// If this is the first group of fields, simply set the value
287 287
 				// Else, merge this group with the previous one
288 288
 				if ( empty( $fields ) ) {
289
-					$fields = $metabox_array['fields'];
289
+					$fields = $metabox_array[ 'fields' ];
290 290
 				} else {
291
-					$fields = array_merge( $fields, $metabox_array['fields'] );
291
+					$fields = array_merge( $fields, $metabox_array[ 'fields' ] );
292 292
 				}
293 293
 			}
294 294
 
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 		}
314 314
 
315 315
 		foreach ( $fields as $key => $value ) {
316
-			$fields[ $key ]['source'] = $source;
316
+			$fields[ $key ][ 'source' ] = $source;
317 317
 		}
318 318
 
319 319
 		return $fields;
Please login to merge, or discard this patch.
includes/class-plugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  * @subpackage Evans
9 9
  * @author     Old Town Media
10 10
  */
11
-class Plugin{
11
+class Plugin {
12 12
 
13 13
 	/**
14 14
 	 * Plugin definitions.
Please login to merge, or discard this patch.
abstracts/view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
  * @subpackage Test Content
11 11
  * @author     Old Town Media
12 12
  */
13
-abstract class View{
13
+abstract class View {
14 14
 
15 15
 	/**
16 16
 	 * title
Please login to merge, or discard this patch.
abstracts/type.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * @subpackage Test Content
10 10
  * @author     Old Town Media
11 11
  */
12
-abstract class Type{
12
+abstract class Type {
13 13
 
14 14
 	/**
15 15
 	 * type
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 	 */
49 49
 	public function set_type( $types ) {
50 50
 
51
-		$types[] = $this->type;
51
+		$types[ ] = $this->type;
52 52
 		return $types;
53 53
 
54 54
 	}
Please login to merge, or discard this patch.
includes/class-reporting.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
  * @subpackage Evans
11 11
  * @author     Old Town Media
12 12
  */
13
-class Reporting{
13
+class Reporting {
14 14
 
15 15
 	public function create_report( $data ) {
16 16
 
Please login to merge, or discard this patch.
includes/class-delete.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * @subpackage Evans
10 10
  * @author     Old Town Media
11 11
  */
12
-class Delete{
12
+class Delete {
13 13
 
14 14
 	/**
15 15
 	 * Delete all test content created ever.
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
 			return;
65 65
 		}
66 66
 
67
-		$type = 'DummyPress\Types\\' . ucwords( $data['type'] );
68
-		$slug = $data['slug'];
67
+		$type = 'DummyPress\Types\\' . ucwords( $data[ 'type' ] );
68
+		$slug = $data[ 'slug' ];
69 69
 
70 70
 		$object = new $type();
71 71
 
Please login to merge, or discard this patch.
includes/class-metabox-values.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  * @subpackage Evans
9 9
  * @author     Old Town Media
10 10
  */
11
-class MetaboxValues{
11
+class MetaboxValues {
12 12
 
13 13
 	/**
14 14
 	 * Assigns the proper testing data to a custom metabox.
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 		}
32 32
 
33 33
 		// Fetch the appropriate type of data and return
34
-		switch( $cmb['type'] ) {
34
+		switch ( $cmb[ 'type' ] ) {
35 35
 
36 36
 			case 'text':
37 37
 			case 'text_small':
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
 			case 'checkbox':
122 122
 
123
-				if ( isset( $cmb['source'] ) && 'acf' === $cmb['source'] ) {
123
+				if ( isset( $cmb[ 'source' ] ) && 'acf' === $cmb[ 'source' ] ) {
124 124
 					$value = $this->multicheck( $cmb );
125 125
 				} else {
126 126
 					$value = $this->checkbox( $cmb );
@@ -183,19 +183,19 @@  discard block
 block discarded – undo
183 183
 	private function text( $cmb ) {
184 184
 
185 185
 		// If phone is in the id, fetch a phone #
186
-		if ( stripos( $cmb['id'], 'phone' ) ) {
186
+		if ( stripos( $cmb[ 'id' ], 'phone' ) ) {
187 187
 			$value = TestContent::phone();
188 188
 
189 189
 		// If email is in the id, fetch an email address
190
-		} elseif ( stripos( $cmb['id'], 'email' ) ) {
190
+		} elseif ( stripos( $cmb[ 'id' ], 'email' ) ) {
191 191
 			$value = TestContent::email();
192 192
 
193 193
 		// If time is in the id, fetch a time string
194
-		} elseif ( stripos( $cmb['id'], 'time' ) ) {
194
+		} elseif ( stripos( $cmb[ 'id' ], 'time' ) ) {
195 195
 			$value = TestContent::time();
196 196
 
197 197
 		// If company|organization is in the ID, fetch a company name
198
-		} elseif ( stripos( $cmb['id'], 'company' ) || stripos( $cmb['id'], 'organization' ) ) {
198
+		} elseif ( stripos( $cmb[ 'id' ], 'company' ) || stripos( $cmb[ 'id' ], 'organization' ) ) {
199 199
 			$value = TestContent::organization();
200 200
 
201 201
 		// Otherwise, just a random text string
@@ -203,8 +203,8 @@  discard block
 block discarded – undo
203 203
 			$value = TestContent::title( rand( 10, 50 ) );
204 204
 		}
205 205
 
206
-		if ( 'acf' === $cmb['source'] && ! empty( $cmb['extras']->chars ) ) {
207
-			$value = substr( $value, 0, $cmb['extras']->chars );
206
+		if ( 'acf' === $cmb[ 'source' ] && ! empty( $cmb[ 'extras' ]->chars ) ) {
207
+			$value = substr( $value, 0, $cmb[ 'extras' ]->chars );
208 208
 		}
209 209
 
210 210
 		return $value;
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 	 */
238 238
 	private function email( $cmb ) {
239 239
 
240
-		return TestContent::email();;
240
+		return TestContent::email(); ;
241 241
 
242 242
 	}
243 243
 
@@ -253,12 +253,12 @@  discard block
 block discarded – undo
253 253
 		$min = 1;
254 254
 		$max = 10000000;
255 255
 
256
-		if ( 'acf' == $cmb['source'] && ! empty( $cmb['extras']->min ) ) {
257
-			$min = $cmb['extras']->min;
256
+		if ( 'acf' == $cmb[ 'source' ] && ! empty( $cmb[ 'extras' ]->min ) ) {
257
+			$min = $cmb[ 'extras' ]->min;
258 258
 		}
259 259
 
260
-		if ( 'acf' == $cmb['source'] && ! empty( $cmb['extras']->max ) ) {
261
-			$max = $cmb['extras']->max;
260
+		if ( 'acf' == $cmb[ 'source' ] && ! empty( $cmb[ 'extras' ]->max ) ) {
261
+			$max = $cmb[ 'extras' ]->max;
262 262
 		}
263 263
 
264 264
 		return rand( $min, $max );
@@ -351,8 +351,8 @@  discard block
 block discarded – undo
351 351
 
352 352
 		$value = TestContent::plain_text();
353 353
 
354
-		if ( 'acf' == $cmb['source'] && ! empty( $cmb['extras']->chars ) ) {
355
-			$value = substr( $value, 0,  $cmb['extras']->chars );
354
+		if ( 'acf' == $cmb[ 'source' ] && ! empty( $cmb[ 'extras' ]->chars ) ) {
355
+			$value = substr( $value, 0, $cmb[ 'extras' ]->chars );
356 356
 		}
357 357
 
358 358
 		return $value;
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 	private function radio( $cmb ) {
372 372
 
373 373
 		// Grab a random item out of the array and return the key
374
-		$new_val = array_slice( $cmb['options'], rand( 0, count( $cmb['options'] ) ), 1 );
374
+		$new_val = array_slice( $cmb[ 'options' ], rand( 0, count( $cmb[ 'options' ] ) ), 1 );
375 375
 		$value = key( $new_val );
376 376
 
377 377
 		return $value;
@@ -413,11 +413,11 @@  discard block
 block discarded – undo
413 413
 		$new_option = array();
414 414
 
415 415
 		// Loop through each of our options
416
-		foreach ( $cmb['options'] as $key => $value ) {
416
+		foreach ( $cmb[ 'options' ] as $key => $value ) {
417 417
 
418 418
 			// 50/50 chance of being included
419 419
 			if ( rand( 0, 1 ) ) {
420
-				$new_option[] = $key;
420
+				$new_option[ ] = $key;
421 421
 			}
422 422
 
423 423
 		}
@@ -492,23 +492,23 @@  discard block
 block discarded – undo
492 492
 	 */
493 493
 	private function update_meta( $post_id, $value, $cmb ) {
494 494
 
495
-		$type 	= $cmb['type'];
496
-		$id		= $cmb['id'];
497
-		$value = apply_filters( "tc_{$type}_metabox", $value );	// Filter by metabox type
495
+		$type 	= $cmb[ 'type' ];
496
+		$id = $cmb[ 'id' ];
497
+		$value = apply_filters( "tc_{$type}_metabox", $value ); // Filter by metabox type
498 498
 		$value = apply_filters( "tc_{$id}_metabox", $value ); // Filter by metabox ID
499 499
 
500 500
 		// Files must be treated separately - they use the attachment ID
501 501
 		// & url of media for separate cmb values. (only in cmb1 & cmb2 though)
502
-		if ( 'file'!== $cmb['type'] || ( 'file' === $cmb['type'] && 'cmb_hm' === $cmb['source'] ) ) {
503
-			add_post_meta( $post_id, $cmb['id'], $value, true );
502
+		if ( 'file' !== $cmb[ 'type' ] || ( 'file' === $cmb[ 'type' ] && 'cmb_hm' === $cmb[ 'source' ] ) ) {
503
+			add_post_meta( $post_id, $cmb[ 'id' ], $value, true );
504 504
 		} else {
505
-			add_post_meta( $post_id, $cmb['id'].'_id', $value, true );
506
-			add_post_meta( $post_id, $cmb['id'], wp_get_attachment_url( $value ), true );
505
+			add_post_meta( $post_id, $cmb[ 'id' ] . '_id', $value, true );
506
+			add_post_meta( $post_id, $cmb[ 'id' ], wp_get_attachment_url( $value ), true );
507 507
 		}
508 508
 
509 509
 		// Add extra, redundant meta. Because, why not have two rows for the price of one?
510
-		if ( isset( $cmb['source'] ) && 'acf' === $cmb['source'] ) {
511
-			add_post_meta( $post_id, '_' . $cmb['id'], $cmb['key'], true );
510
+		if ( isset( $cmb[ 'source' ] ) && 'acf' === $cmb[ 'source' ] ) {
511
+			add_post_meta( $post_id, '_' . $cmb[ 'id' ], $cmb[ 'key' ], true );
512 512
 		}
513 513
 
514 514
 	}
Please login to merge, or discard this patch.
includes/class-test-content.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
  * @subpackage Evans
15 15
  * @author     Old Town Media
16 16
  */
17
-class TestContent{
17
+class TestContent {
18 18
 
19 19
 	/**
20 20
 	 * Title function.
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 		}
73 73
 
74 74
 		// Pull random words
75
-		for( $i = 1; $i <= $num_words; $i++ ) {
75
+		for ( $i = 1; $i <= $num_words; $i++ ) {
76 76
 			$title .= $random_words[ rand( 0, 31 ) ] . " ";
77 77
 		}
78 78
 
@@ -351,17 +351,17 @@  discard block
 block discarded – undo
351 351
 		);
352 352
 
353 353
 		$used_keys = array();
354
-		for( $i = 1; $i < 7; $i++ ) {
354
+		for ( $i = 1; $i < 7; $i++ ) {
355 355
 
356 356
 			// Pull a new random key and make sure we're not repeating any elements
357 357
 			$key = rand( 0, 12 );
358
-			while( in_array( $key, $used_keys ) ) {
358
+			while ( in_array( $key, $used_keys ) ) {
359 359
 				$key = rand( 0, 12 );
360 360
 			}
361 361
 
362
-			$content .= $random_content_types[$key];
362
+			$content .= $random_content_types[ $key ];
363 363
 
364
-			$used_keys[] = $key;
364
+			$used_keys[ ] = $key;
365 365
 		}
366 366
 
367 367
 		return apply_filters( "tc_paragraphs_data", $content );
@@ -431,8 +431,8 @@  discard block
 block discarded – undo
431 431
 
432 432
 	    preg_match( '/[^\?]+\.(jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/', $url, $matches );
433 433
 
434
-        $file_array['name'] = basename( $matches[0] );
435
-        $file_array['tmp_name'] = $tmp;
434
+        $file_array[ 'name' ] = basename( $matches[ 0 ] );
435
+        $file_array[ 'tmp_name' ] = $tmp;
436 436
 
437 437
 	    // Check for download errors
438 438
 	    if ( is_wp_error( $tmp ) ) {
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
 
446 446
 	    // Check for handle sideload errors.
447 447
 	    if ( is_wp_error( $image_id ) ) {
448
-	        unlink( $file_array['tmp_name'] );
448
+	        unlink( $file_array[ 'tmp_name' ] );
449 449
 	        error_log( $image_id->get_error_message() );
450 450
 	    }
451 451
 
@@ -483,10 +483,10 @@  discard block
 block discarded – undo
483 483
 		$response = json_decode( $curl_response, true );
484 484
 
485 485
 		// Check to make sure that the return contains a valid image extensions
486
-		preg_match('/[^\?]+\.(jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/', $response['url'], $matches);
486
+		preg_match( '/[^\?]+\.(jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/', $response[ 'url' ], $matches );
487 487
 
488 488
 		if ( ! empty( $matches ) ) {
489
-			return $response['url'];
489
+			return $response[ 'url' ];
490 490
 		}
491 491
 
492 492
 	}
@@ -524,9 +524,9 @@  discard block
 block discarded – undo
524 524
 			'5:00PM',
525 525
 			'13:00',
526 526
 			'2015',
527
-			date( 'G:i', strtotime( " +".rand( 4, 24 )." hours" ) ),
528
-			date( 'g:i', strtotime( " +".rand( 4, 24 )." hours" ) ),
529
-			date( 'G:i A', strtotime( " +".rand( 4, 24 )." hours" ) )
527
+			date( 'G:i', strtotime( " +" . rand( 4, 24 ) . " hours" ) ),
528
+			date( 'g:i', strtotime( " +" . rand( 4, 24 ) . " hours" ) ),
529
+			date( 'G:i A', strtotime( " +" . rand( 4, 24 ) . " hours" ) )
530 530
 		);
531 531
 
532 532
 		return apply_filters( "tc_time_data", $times[ rand( 0, 6 ) ] );
@@ -718,7 +718,7 @@  discard block
 block discarded – undo
718 718
 	public static function video( $type ) {
719 719
 
720 720
 		// Switch through our video types. Expecting to add more in the future
721
-		switch( $type ) {
721
+		switch ( $type ) {
722 722
 
723 723
 			// YouTube videos
724 724
 			case 'youtube' :
Please login to merge, or discard this patch.