Passed
Push — main ( a115e2...ed9b12 )
by Marc
04:17 queued 13s
created

get_admin_content_object()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php declare(strict_types=1);
2
3
function get_admin_content_object(string $template, string ...$params): ?\stdClass {
4
    $content = get_model_factory()->createAdminContentObject($params);
5
    $content->template = $template;
6
    return $content;
7
}