Code Duplication    Length = 7-7 lines in 2 locations

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

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