Completed
Push — develop ( 488d60...36a6ed )
by Zack
20:06
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   +1 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1372,11 +1372,4 @@
 block discarded – undo
1372 1372
 		 */
1373 1373
 		$datepicker_class = apply_filters( 'gravityview_search_datepicker_class', 'gv-datepicker datepicker mdy' );
1374 1374
 
1375
-		$gravityview_view->datepicker_class = $datepicker_class;
1376
-
1377
-	}
1378
-
1379
-
1380
-} // end class
1381
-
1382
-new GravityView_Widget_Search;
1375
+		$gravityview_view->datepicker_class = $datepicker_class
1383 1376
\ No newline at end of file
Please login to merge, or discard this patch.
includes/extensions/edit-entry/class-edit-entry-render.php 1 patch
Braces   +2 added lines, -7 removed lines patch added patch discarded remove patch
@@ -945,7 +945,7 @@  discard block
 block discarded – undo
945 945
 
946 946
 			$back_link = esc_url( remove_query_arg( array( 'page', 'view', 'edit' ) ) );
947 947
 
948
-			if( ! $this->is_valid ){
948
+			if( ! $this->is_valid ) {
949 949
 
950 950
 				// Keeping this compatible with Gravity Forms.
951 951
 				$validation_message = "<div class='validation_error'>" . __('There was a problem with your submission.', 'gravityview') . " " . __('Errors have been highlighted below.', 'gravityview') . "</div>";
@@ -2037,9 +2037,4 @@  discard block
 block discarded – undo
2037 2037
 			return implode( ',', $maybe_json );
2038 2038
 		}
2039 2039
 
2040
-		return $field_value;
2041
-	}
2042
-
2043
-
2044
-
2045
-} //end class
2040
+		return $field_value
2046 2041
\ No newline at end of file
Please login to merge, or discard this patch.