*/ public function makeBlocks(EditorData $data): array { return array_filter($data->blocks, fn ($block) => $this->filterBlock($block)); } /** * @param array $block */ public function filterBlock(array $block): bool { return $this->filterCondition(Condition::withoutMagicalCreationFrom([ 'mode' => data_get($block, 'tunes.condition.mode', 'any'), 'ifs' => data_get($block, 'tunes.condition.ifs', []), ])); } }