Completed
Push — master ( fe64a3...a6b02d )
by Andrey
08:59
created

functions.php ➔ multi_menu()   A

Complexity

Conditions 4
Paths 8

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 4
nc 8
nop 1
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @param array $options
5
 * @return string
6
 */
7
function multi_menu(array $options)
8
{
9
    $widgetConfig = !empty($options['config']) ? $options['config'] : config('multimenu');
10
    $widgetData = !empty($options['data']) ? $options['data'] : [];
11
    $widgetAdditionData = !empty($options['additionData']) ? $options['additionData'] : [];
12
13
    return (new Itstructure\MultiMenu\MultiMenuWidget($widgetConfig))->run($widgetData, $widgetAdditionData);
14
}
15