| @@ -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 | |