Code Duplication    Length = 7-7 lines in 2 locations

src/Charcoal/View/Mustache/AssetsHelpers.php 2 locations

@@ 104-110 (lines=7) @@
101
     * @param LambdaHelper $helper For rendering strings in the current context.
102
     * @return void
103
     */
104
    public function addJs($js, LambdaHelper $helper = null)
105
    {
106
        if ($helper !== null) {
107
            $js = $helper->render($js);
108
        }
109
        self::$js .= $js;
110
    }
111
112
    /**
113
     * Get the saved inline JavaScript content and purge the store.
@@ 179-185 (lines=7) @@
176
     * @param LambdaHelper $helper For rendering strings in the current context.
177
     * @return void
178
     */
179
    public function addCss($css, LambdaHelper $helper = null)
180
    {
181
        if ($helper !== null) {
182
            $css = $helper->render($css);
183
        }
184
        self::$css .= $css;
185
    }
186
187
    /**
188
     * Get the saved inline CSS content and purge the store.