Code Duplication    Length = 11-11 lines in 2 locations

src/Vinelab/Cdn/CdnFacade.php 2 locations

@@ 95-105 (lines=11) @@
92
     *
93
     * @throws Exceptions\EmptyPathException, \InvalidArgumentException
94
     */
95
	public function elixir($path)
96
    {
97
        static $manifest = null;
98
        if (is_null($manifest)) {
99
            $manifest = json_decode(file_get_contents(public_path('build/rev-manifest.json')), true);
100
        }
101
        if (isset($manifest[$path])) {
102
            return $this->generateUrl('build/' . $manifest[$path], 'public/');
103
        }
104
        throw new \InvalidArgumentException("File {$path} not defined in asset manifest.");
105
    }
106
	
107
	/**
108
     * this function will be called from the 'views' using the
@@ 118-128 (lines=11) @@
115
     *
116
     * @throws Exceptions\EmptyPathException, \InvalidArgumentException
117
     */
118
	public function mix($path)
119
    {
120
        static $manifest = null;
121
        if (is_null($manifest)) {
122
            $manifest = json_decode(file_get_contents(public_path('mix-manifest.json')), true);
123
        }
124
        if (isset($manifest[$path])) {
125
            return $this->generateUrl($manifest[$path], 'public/');
126
        }
127
        throw new \InvalidArgumentException("File {$path} not defined in asset manifest.");
128
    }
129
130
    /**
131
     * this function will be called from the 'views' using the