Completed
Push — componentlibrary_asset-depende... ( 40999e )
by Doğa
02:10
created
Features/AdminComponentPreview/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 
6 6
 define(__NAMESPACE__ . '\NS', __NAMESPACE__ . '\\');
7 7
 
8
-add_action('admin_enqueue_scripts', function () {
8
+add_action('admin_enqueue_scripts', function() {
9 9
     $data = [
10 10
         'templateDirectoryUri' => get_template_directory_uri() . '/dist',
11 11
     ];
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 if (class_exists('acf')) {
16 16
     if (is_admin()) {
17 17
         // add image to the flexible content component name
18
-        add_filter('acf/fields/flexible_content/layout_title', function ($title, $field, $layout, $i) {
18
+        add_filter('acf/fields/flexible_content/layout_title', function($title, $field, $layout, $i) {
19 19
             $componentName = ucfirst($layout['name']);
20 20
             $componentPath = "Components/{$componentName}";
21 21
             $componentScreenshotPath = Asset::requirePath("{$componentPath}/screenshot.png");
Please login to merge, or discard this patch.
inc/assets.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 use Flynt\Utils\Asset;
4 4
 
5
-add_action('wp_enqueue_scripts', function () {
5
+add_action('wp_enqueue_scripts', function() {
6 6
     Asset::enqueue([
7 7
         'name' => 'Flynt/assets/vendor',
8 8
         'type' => 'script',
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     }
61 61
 });
62 62
 
63
-add_action('admin_enqueue_scripts', function () {
63
+add_action('admin_enqueue_scripts', function() {
64 64
     Asset::enqueue([
65 65
         'name' => 'Flynt/assets/vendorAdmin',
66 66
         'type' => 'script',
Please login to merge, or discard this patch.