Completed
Pull Request — develop (#1588)
by
unknown
17:33
created
future/includes/gutenberg/blocks/view-details/block.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,19 +36,19 @@  discard block
 block discarded – undo
36 36
 	 *
37 37
 	 * @return string $output
38 38
 	 */
39
-	static function render( $block_attributes = [] ) {
39
+	static function render( $block_attributes = [ ] ) {
40 40
 		$block_to_shortcode_attributes_map = [
41 41
 			'viewId' => 'id',
42 42
 			'detail' => 'detail',
43 43
 		];
44 44
 
45
-		$shortcode_attributes = [];
45
+		$shortcode_attributes = [ ];
46 46
 
47 47
 		foreach ( $block_attributes as $attribute => $value ) {
48 48
 			$value = esc_attr( sanitize_text_field( $value ) );
49 49
 
50 50
 			if ( isset( $block_to_shortcode_attributes_map[ $attribute ] ) && ! empty( $value ) ) {
51
-				$shortcode_attributes[] = sprintf(
51
+				$shortcode_attributes[ ] = sprintf(
52 52
 					'%s="%s"',
53 53
 					$block_to_shortcode_attributes_map[ $attribute ],
54 54
 					str_replace( '"', '\"', $value )
@@ -64,6 +64,6 @@  discard block
 block discarded – undo
64 64
 
65 65
 		$rendered_shortcode = Blocks::render_shortcode( $shortcode );
66 66
 
67
-		return $rendered_shortcode['content'];
67
+		return $rendered_shortcode[ 'content' ];
68 68
 	}
69 69
 }
Please login to merge, or discard this patch.
future/includes/gutenberg/blocks/entry-link/block.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	 *
37 37
 	 * @return string $output
38 38
 	 */
39
-	static function render( $block_attributes = [] ) {
39
+	static function render( $block_attributes = [ ] ) {
40 40
 		$block_to_shortcode_attributes_map = [
41 41
 			'viewId'       => 'view_id',
42 42
 			'entryId'      => 'entry_id',
@@ -48,13 +48,13 @@  discard block
 block discarded – undo
48 48
 			'content'      => 'content',
49 49
 		];
50 50
 
51
-		$shortcode_attributes = [];
51
+		$shortcode_attributes = [ ];
52 52
 
53 53
 		foreach ( $block_attributes as $attribute => $value ) {
54 54
 			$value = esc_attr( sanitize_text_field( $value ) );
55 55
 
56 56
 			if ( isset( $block_to_shortcode_attributes_map[ $attribute ] ) && ! empty( $value ) ) {
57
-				$shortcode_attributes[] = sprintf(
57
+				$shortcode_attributes[ ] = sprintf(
58 58
 					'%s="%s"',
59 59
 					$block_to_shortcode_attributes_map[ $attribute ],
60 60
 					str_replace( '"', '\"', $value )
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
62 62
 			}
63 63
 		}
64 64
 
65
-		if ( ! empty( $block_attributes['content'] ) ) {
65
+		if ( ! empty( $block_attributes[ 'content' ] ) ) {
66 66
 			$shortcode = sprintf(
67 67
 				'[gv_entry_link %s]%s[/gv_entry_link]',
68 68
 				implode( ' ', $shortcode_attributes ),
69
-				wp_kses_post( $block_attributes['content'] )
69
+				wp_kses_post( $block_attributes[ 'content' ] )
70 70
 			);
71 71
 		} else {
72 72
 			$shortcode = sprintf( '[gv_entry_link %s/]', implode( ' ', $shortcode_attributes ) );
@@ -82,6 +82,6 @@  discard block
 block discarded – undo
82 82
 
83 83
 		$rendered_shortcode = Blocks::render_shortcode( $shortcode );
84 84
 
85
-		return $rendered_shortcode['content'];
85
+		return $rendered_shortcode[ 'content' ];
86 86
 	}
87 87
 }
Please login to merge, or discard this patch.
future/includes/gutenberg/build/view.asset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,1 +1,1 @@
 block discarded – undo
1
-<?php return array('dependencies' => array('moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '440ca326bd4953109e3e');
1
+<?php return array( 'dependencies' => array( 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-url' ), 'version' => '440ca326bd4953109e3e' );
Please login to merge, or discard this patch.
future/includes/gutenberg/build/entry-link.asset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,1 +1,1 @@
 block discarded – undo
1
-<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '41801981504467da58c0');
1
+<?php return array( 'dependencies' => array( 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-url' ), 'version' => '41801981504467da58c0' );
Please login to merge, or discard this patch.
future/includes/gutenberg/build/entry-field.asset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,1 +1,1 @@
 block discarded – undo
1
-<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => 'bfea2d3c6e6f85cd9b84');
1
+<?php return array( 'dependencies' => array( 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-url' ), 'version' => 'bfea2d3c6e6f85cd9b84' );
Please login to merge, or discard this patch.
future/includes/gutenberg/build/view-details.asset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,1 +1,1 @@
 block discarded – undo
1
-<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '91fcdb7bdace474ce4be');
1
+<?php return array( 'dependencies' => array( 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-url' ), 'version' => '91fcdb7bdace474ce4be' );
Please login to merge, or discard this patch.
future/includes/gutenberg/build/entry.asset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,1 +1,1 @@
 block discarded – undo
1
-<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => 'eec7710ef477a656b69c');
1
+<?php return array( 'dependencies' => array( 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-url' ), 'version' => 'eec7710ef477a656b69c' );
Please login to merge, or discard this patch.