Completed
Push — Component-MapsGoogle ( 509fba...a9d8a3 )
by
unknown
02:35
created
Components/MapGoogle/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 use Flynt\Features\Acf\OptionPages;
7 7
 use Flynt\Utils\Asset;
8 8
 
9
-add_action('wp_enqueue_scripts', function () {
9
+add_action('wp_enqueue_scripts', function() {
10 10
     Component::enqueueAssets('MapGoogle', [
11 11
         [
12 12
             'type' => 'script',
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     ]);
18 18
 });
19 19
 
20
-add_filter('Flynt/addComponentData?name=MapGoogle', function ($data) {
20
+add_filter('Flynt/addComponentData?name=MapGoogle', function($data) {
21 21
     $data['infoContent'] = htmlspecialchars(json_encode($data['infoContent']));
22 22
     $data['markerIcon'] = Asset::requireUrl('Components/MapGoogle/assets/marker.svg');
23 23
     $data['apiKey'] = OptionPages::get('globalOptions', 'feature', 'acf', 'googleMapsApiKey');
Please login to merge, or discard this patch.