Completed
Pull Request — master (#1107)
by Zack
21:09 queued 16:59
created
gravityview.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 	 * @deprecated use gravityview()->log
245 245
      * @return void
246 246
      */
247
-    public static function log_debug( $message, $data = null ){
247
+    public static function log_debug( $message, $data = null ) {
248 248
 		gravityview()->log->notice( '\GravityView_Plugin is deprecated. Use \GV\Plugin instead.' );
249 249
 		gravityview()->log->debug( $message, $data );
250 250
     }
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
 	 * @deprecated use gravityview()->log
256 256
      * @return void
257 257
      */
258
-    public static function log_error( $message, $data = null ){
258
+    public static function log_error( $message, $data = null ) {
259 259
 		gravityview()->log->notice( '\GravityView_Plugin is deprecated. Use \GV\Plugin instead.' );
260 260
 		gravityview()->log->error( $message, $data );
261 261
     }
Please login to merge, or discard this patch.
includes/class-api.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1324,7 +1324,7 @@  discard block
 block discarded – undo
1324 1324
 		$placeholders['label_value'] = gv_label( $field, $entry );
1325 1325
 	}
1326 1326
 
1327
-	if ( empty( $placeholders['label'] ) && ! empty( $placeholders['label_value'] ) ){
1327
+	if ( empty( $placeholders['label'] ) && ! empty( $placeholders['label_value'] ) ) {
1328 1328
 		$placeholders['label'] = '<span class="gv-field-label">{{ label_value }}</span>';
1329 1329
 	}
1330 1330
 
@@ -1363,7 +1363,7 @@  discard block
 block discarded – undo
1363 1363
 	foreach ( $placeholders as $tag => $value ) {
1364 1364
 
1365 1365
 		// If the tag doesn't exist just skip it
1366
-		if ( false === strpos( $html, $open_tag . $tag . $close_tag ) && false === strpos( $html, $open_tag . ' ' . $tag . ' ' . $close_tag ) ){
1366
+		if ( false === strpos( $html, $open_tag . $tag . $close_tag ) && false === strpos( $html, $open_tag . ' ' . $tag . ' ' . $close_tag ) ) {
1367 1367
 			continue;
1368 1368
 		}
1369 1369
 
Please login to merge, or discard this patch.
includes/class-frontend-views.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
 		}
451 451
 
452 452
 		// User reported WooCommerce doesn't pass two args.
453
-		if ( empty( $passed_post_id ) )  {
453
+		if ( empty( $passed_post_id ) ) {
454 454
 			return $title;
455 455
 		}
456 456
 
@@ -1127,7 +1127,7 @@  discard block
 block discarded – undo
1127 1127
 					 */
1128 1128
 					$address_part = apply_filters( 'gravityview/sorting/address', 'city', $sort_field_id, $form_id );
1129 1129
 
1130
-					switch( strtolower( $address_part ) ){
1130
+					switch( strtolower( $address_part ) ) {
1131 1131
 						case 'street':
1132 1132
 							$sort_field_id .= '.1';
1133 1133
 							break;
@@ -1207,7 +1207,7 @@  discard block
 block discarded – undo
1207 1207
 		 */
1208 1208
 		$single_entry = apply_filters( 'gravityview/is_single_entry', $single_entry );
1209 1209
 
1210
-		if ( empty( $single_entry ) ){
1210
+		if ( empty( $single_entry ) ) {
1211 1211
 			return false;
1212 1212
 		} else {
1213 1213
 			return $single_entry;
Please login to merge, or discard this patch.
includes/widgets/search-widget/class-search-widget.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -603,7 +603,8 @@  discard block
 block discarded – undo
603 603
 				// Fast-forward 24 hour on the end time
604 604
 				$curr_end = date( 'Y-m-d H:i:s', strtotime( $curr_end ) + DAY_IN_SECONDS );
605 605
 				$search_criteria['end_date'] = $adjust_tz ? get_gmt_from_date( $curr_end ) : $curr_end;
606
-				if ( strpos( $search_criteria['end_date'], '00:00:00' ) ) { // See https://github.com/gravityview/GravityView/issues/1056
606
+				if ( strpos( $search_criteria['end_date'], '00:00:00' ) ) {
607
+// See https://github.com/gravityview/GravityView/issues/1056
607 608
 					$search_criteria['end_date'] = date( 'Y-m-d H:i:s', strtotime( $search_criteria['end_date'] ) - 1 );
608 609
 				}
609 610
 			}
@@ -874,7 +875,7 @@  discard block
 block discarded – undo
874 875
 			'ymd_dot' => 'Y.m.d',
875 876
 		);
876 877
 
877
-		if ( ! empty( $field->dateFormat ) && isset( $datepicker[ $field->dateFormat ] ) ){
878
+		if ( ! empty( $field->dateFormat ) && isset( $datepicker[ $field->dateFormat ] ) ) {
878 879
 			$format = $datepicker[ $field->dateFormat ];
879 880
 		}
880 881
 
Please login to merge, or discard this patch.
future/includes/class-gv-extension.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -291,7 +291,7 @@
 block discarded – undo
291 291
 	public function settings() {
292 292
 
293 293
 		// If doing ajax, get outta here
294
-		if ( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX && 'update-plugin' !== Utils::_POST('action') ) )  {
294
+		if ( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX && 'update-plugin' !== Utils::_POST('action') ) ) {
295 295
 			return;
296 296
 		}
297 297
 
Please login to merge, or discard this patch.