Code Duplication    Length = 9-9 lines in 2 locations

dist/jate/modules/ExternalModules/pug-php/pug/src/Jade/Compiler/CompilerFacade.php 2 locations

@@ 33-41 (lines=9) @@
30
     * @param string  mixin name
31
     * @param string  mixin block treatment
32
     */
33
    public static function callMixinBlock($name, $attributes = array())
34
    {
35
        if (isset(static::$mixinBlocks[$name]) && is_array($mixinBlocks = static::$mixinBlocks[$name])) {
36
            $func = end($mixinBlocks);
37
            if (is_callable($func)) {
38
                $func($attributes);
39
            }
40
        }
41
    }
42
43
    /**
44
     * Record a closure as a mixin block during execution jade template time
@@ 51-59 (lines=9) @@
48
     * @param &array  variables handler propagated from parent scope
49
     * @param string  mixin block treatment
50
     */
51
    public static function callMixinBlockWithVars($name, &$varHandler, $attributes = array())
52
    {
53
        if (isset(static::$mixinBlocks[$name]) && is_array($mixinBlocks = static::$mixinBlocks[$name])) {
54
            $func = end($mixinBlocks);
55
            if (is_callable($func)) {
56
                $func($varHandler, $attributes);
57
            }
58
        }
59
    }
60
61
    /**
62
     * End of the record of the mixin block.