Code Duplication    Length = 8-8 lines in 2 locations

src/Providers/AssetServiceProvider.php 2 locations

@@ 67-74 (lines=8) @@
64
     * @param string $siteAssets
65
     * @return string
66
     */
67
    protected function assetJs($siteAssets)
68
    {
69
        Blade::directive('assetJs', function ($asset) use ($siteAssets) {
70
            $setAsset = $this->strParser($asset . '.js');
71
72
            return '<?php echo "<script src=\"' . array_get($siteAssets, $setAsset) . '\"></script>"; ?>';
73
        });
74
    }
75
76
    /**
77
     * Generate CSS assets.
@@ 82-89 (lines=8) @@
79
     * @param string $siteAssets
80
     * @return string
81
     */
82
    protected function assetCss($siteAssets)
83
    {
84
        Blade::directive('assetCss', function ($asset) use ($siteAssets) {
85
            $setAsset = $this->strParser($asset . '.css');
86
87
            return '<link rel=\"stylesheet\" type=\"text/css\" href=\"' . array_get($siteAssets, $setAsset) . '\">';
88
        });
89
    }
90
91
    /**
92
     * @param string $asset