Code Duplication    Length = 7-7 lines in 2 locations

app/Providers/BladeServiceProvider.php 2 locations

@@ 95-101 (lines=7) @@
92
     *
93
     * @return string
94
     */
95
    protected function macroDirective($expression)
96
    {
97
        $name = $args = '';
98
        extract($this->extractArgumentsAndName($expression));
99
100
        return sprintf("<?php \$___tiny['%s']=function(%s)use(\$__env){ ob_start(); ?>\n", $name, $args);
101
    }
102
103
    /**
104
     * Callback method for usemacro directive.
@@ 110-116 (lines=7) @@
107
     *
108
     * @return string
109
     */
110
    protected function usemacroDirective($expression)
111
    {
112
        $name = $args = '';
113
        extract($this->extractArgumentsAndName($expression));
114
115
        return sprintf("<?php echo \$___tiny['%s'](%s); ?>\n", $name, $args);
116
    }
117
118
    /**
119
     * Return arguments and name from blade expression.