PluginProbe
ElasticPress / 5.3.5
ElasticPress v5.3.5
5.3.5 5.3.4 3.6.5 3.6.6 4.0.0 4.0.1 4.1.0 4.2.0 4.2.1 4.2.2 4.3.0 4.3.1 4.4.0 4.4.1 4.5.0 4.5.1 4.5.2 4.6.0 4.6.1 4.7.0 4.7.1 4.7.2 5.0.0 5.0.1 5.0.2 All 108 releases
← All changes | includes/classes/BlockTemplateUtils.php +3 -3 5.0.15.3.5 View file →
@@ -42,9 +42,9 @@
42 42 *
43 43 * @param string $block_name The block name, e.g., `elasticpress/facet-meta`
44 44 * @return array
45 45 */
46 - public function get_specific_block_in_all_templates( string $block_name ) : array {
46 + public function get_specific_block_in_all_templates( string $block_name ): array {
47 47 $blocks = array_filter(
48 48 $this->get_all_blocks_in_all_templates(),
49 49 function ( $block ) use ( $block_name ) {
50 50 return ( $block['blockName'] === $block_name );
@@ -60,9 +60,9 @@
60 60 * It returns a flat list of all blocks, including innerBlocks.
61 61 *
62 62 * @return array
63 63 */
64 - public function get_all_blocks_in_all_templates() : array {
64 + public function get_all_blocks_in_all_templates(): array {
65 65 /**
66 66 * Short-circuits the process of getting all blocks of a template.
67 67 *
68 68 * Returning a non-null value will effectively short-circuit the function.
@@ -113,9 +113,9 @@
113 113 * @param array $all_blocks All blocks analyzed so far
114 114 * @param array $block Block to be analyzed now
115 115 * @return array
116 116 */
117 - protected function recursively_get_inner_blocks( array $all_blocks, array $block ) : array {
117 + protected function recursively_get_inner_blocks( array $all_blocks, array $block ): array {
118 118 if ( empty( $block['innerBlocks'] ) ) {
119 119 return $all_blocks;
120 120 }
121 121