Completed
Pull Request — develop (#1588)
by
unknown
19:18
created
includes/gutenberg/blocks/view/block.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 			$value = esc_attr( sanitize_text_field( $value ) );
56 56
 
57 57
 			if ( in_array( $attribute, $accepted_attributes ) && ! empty( $value ) ) {
58
-				$shortcode_attributes[] = "{$attribute}={$value}";
58
+				$shortcode_attributes[ ] = "{$attribute}={$value}";
59 59
 			}
60 60
 		}
61 61
 
Please login to merge, or discard this patch.
includes/gutenberg/blocks/entry/block.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 			$value = esc_attr( sanitize_text_field( $value ) );
32 32
 
33 33
 			if ( in_array( $attribute, $accepted_attributes ) && ! empty( $value ) ) {
34
-				$shortcode_attributes[] = "{$attribute}={$value}";
34
+				$shortcode_attributes[ ] = "{$attribute}={$value}";
35 35
 			}
36 36
 		}
37 37
 
Please login to merge, or discard this patch.
includes/gutenberg/blocks/field/block.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 			$value = esc_attr( sanitize_text_field( $value ) );
37 37
 
38 38
 			if ( in_array( $attribute, $accepted_attributes ) && ! empty( $value ) ) {
39
-				$shortcode_attributes[] = "{$attribute}={$value}";
39
+				$shortcode_attributes[ ] = "{$attribute}={$value}";
40 40
 			}
41 41
 		}
42 42
 
Please login to merge, or discard this patch.
includes/gutenberg/blocks/view-details/block.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 			$value = esc_attr( sanitize_text_field( $value ) );
32 32
 
33 33
 			if ( in_array( $attribute, $accepted_attributes ) && ! empty( $value ) ) {
34
-				$shortcode_attributes[] = "{$attribute}={$value}";
34
+				$shortcode_attributes[ ] = "{$attribute}={$value}";
35 35
 			}
36 36
 		}
37 37
 
Please login to merge, or discard this patch.
includes/gutenberg/blocks/entry-link/block.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,15 +43,15 @@
 block discarded – undo
43 43
 			$value = esc_attr( sanitize_text_field( $value ) );
44 44
 
45 45
 			if ( 'content' !== $attribute && in_array( $attribute, $accepted_attributes ) && ! empty( $value ) ) {
46
-				$shortcode_attributes[] = "{$attribute}={$value}";
46
+				$shortcode_attributes[ ] = "{$attribute}={$value}";
47 47
 			}
48 48
 		}
49 49
 
50
-		if ( ! empty( $attributes['content'] ) ) {
50
+		if ( ! empty( $attributes[ 'content' ] ) ) {
51 51
 			$shortcode = sprintf(
52 52
 				'[gv_entry_link %s]%s[/gv_entry_link]',
53 53
 				implode( ' ', $shortcode_attributes ),
54
-				wp_kses_post( $attributes['content'] )
54
+				wp_kses_post( $attributes[ 'content' ] )
55 55
 			);
56 56
 		} else {
57 57
 			$shortcode = sprintf( '[gv_entry_link %s/]', implode( ' ', $shortcode_attributes ) );
Please login to merge, or discard this patch.
includes/gutenberg/class-gv-gutenberg-blocks.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
 		global $wp_version;
21 21
 
22 22
 		if ( ! class_exists( 'GravityView_Plugin' ) ||
23
-		     ! function_exists( 'register_block_type' ) ||
24
-		     version_compare( $wp_version, self::MIN_WP_VERSION, '<' )
23
+			 ! function_exists( 'register_block_type' ) ||
24
+			 version_compare( $wp_version, self::MIN_WP_VERSION, '<' )
25 25
 		) {
26 26
 			return;
27 27
 		}
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 		wp_enqueue_script(
92 92
 			self::ASSETS_HANDLE,
93 93
 			gravityview()->plugin->url() . $script,
94
-			$asset_file['dependencies'],
94
+			$asset_file[ 'dependencies' ],
95 95
 			filemtime( gravityview()->plugin->dir() . $script )
96 96
 		);
97 97
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 			)
110 110
 		);
111 111
 
112
-		$views_list_array = array_map( function ( $view ) {
112
+		$views_list_array = array_map( function( $view ) {
113 113
 			return array(
114 114
 				'value' => $view->ID,
115 115
 				'label' => $view->post_title,
Please login to merge, or discard this patch.