Completed
Push — develop ( 1877e1...cf5c83 )
by Dominik
02:02
created

functions.php ➔ enqueueComponentScripts()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
1
<?php
2
namespace Flynt\Features\ExternalScriptLoader;
3
4
use Flynt\Utils\Asset;
5
6
define(__NAMESPACE__ . '\NS', __NAMESPACE__ . '\\');
7
8
function enqueueComponentScripts()
9
{
10
    Asset::enqueue([
11
        'type' => 'script',
12
        'name' => 'Flynt/Features/ExternalScriptLoader',
13
        'path' => 'Features/ExternalScriptLoader/script.js'
14
    ]);
15
}
16
17
add_action('wp_enqueue_scripts', NS . 'enqueueComponentScripts');
18