| @@ -3,7 +3,7 @@ | ||
| 3 | 3 | use ACFComposer\ACFComposer; | 
| 4 | 4 | use Flynt\Components; | 
| 5 | 5 | |
| 6 | -add_action('Flynt/afterRegisterComponents', function () { | |
| 6 | +add_action('Flynt/afterRegisterComponents', function() { | |
| 7 | 7 | ACFComposer::registerFieldGroup([ | 
| 8 | 8 | 'name' => 'reusableComponents', | 
| 9 | 9 | 'title' => 'Reusable Components', | 
| @@ -4,7 +4,7 @@ discard block | ||
| 4 | 4 | |
| 5 | 5 | use Timber\Timber; | 
| 6 | 6 | |
| 7 | -add_filter('Flynt/addComponentData?name=ReusableComponent', function ($data) { | |
| 7 | +add_filter('Flynt/addComponentData?name=ReusableComponent', function($data) { | |
| 8 | 8 |      if (!empty($data['reusableId'])) { | 
| 9 | 9 | $data['post'] = Timber::get_post($data['reusableId']); | 
| 10 | 10 | } | 
| @@ -35,7 +35,7 @@ discard block | ||
| 35 | 35 | ]; | 
| 36 | 36 | } | 
| 37 | 37 | |
| 38 | -add_filter('acf/prepare_field/name=reusableId', function ($field) { | |
| 38 | +add_filter('acf/prepare_field/name=reusableId', function($field) { | |
| 39 | 39 | // Set initial instructions and update with selected post link | 
| 40 | 40 |      $reusableAdminLink = admin_url('edit.php?post_type=reusable-component'); | 
| 41 | 41 | $postEditLink = get_edit_post_link($field['value']); |