Completed
Push — v4.0-dev ( b01e70 )
by
unknown
01:53
created

include.php ➔ phpInclude()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace League\Plates\Template;
4
5
function phpInclude() {
6
    /**
7
     * @param string    the template path
8
     * @param array     the template vars
9
     */
10
    return function() {
11
        ob_start();
12
        extract(func_get_arg(1));
13
        include func_get_arg(0);
14
        return ob_get_clean();
15
    };
16
}
17