Code Duplication    Length = 8-8 lines in 2 locations

src/Providers/AssetServiceProvider.php 2 locations

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