@@ -8,9 +8,9 @@ discard block |
||
8 | 8 | use Flynt\Utils\Asset; |
9 | 9 | use Parsedown; |
10 | 10 | |
11 | -add_filter('Flynt/addComponentData?name=ListComponents', function ($data) { |
|
11 | +add_filter('Flynt/addComponentData?name=ListComponents', function($data) { |
|
12 | 12 | if (!empty($data['componentBlocks'])) { |
13 | - $data['componentBlocks'] = array_map(function ($block) { |
|
13 | + $data['componentBlocks'] = array_map(function($block) { |
|
14 | 14 | $block['component'] = substr($block['component'], strpos($block['component'], 'Components/')); |
15 | 15 | |
16 | 16 | if (file_exists(Asset::requirePath($block['component'] . 'screenshot.png'))) { |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | return $data; |
41 | 41 | }); |
42 | 42 | |
43 | -add_filter('acf/load_field/name=component', function ($field) { |
|
43 | +add_filter('acf/load_field/name=component', function($field) { |
|
44 | 44 | $componentManager = ComponentManager::getInstance(); |
45 | 45 | $field['choices'] = array_flip($componentManager->getAll()); |
46 | 46 | return $field; |