Code Duplication    Length = 7-7 lines in 4 locations

lib/elFinderVolumeBox.class.php 1 location

@@ 327-333 (lines=7) @@
324
     **/
325
    public function getContentUrl($hash, $options = [])
326
    {
327
        if (! empty($options['temporary'])) {
328
            // try make temporary file
329
            $url = parent::getContentUrl($hash, $options);
330
            if ($url) {
331
                return $url;
332
            }
333
        }
334
        if (($file = $this->file($hash)) == false || ! $file['url'] || $file['url'] == 1) {
335
            $path = $this->decode($hash);
336

lib/elFinderVolumeDropbox2.class.php 1 location

@@ 337-343 (lines=7) @@
334
     */
335
    public function getContentUrl($hash, $options = [])
336
    {
337
        if (! empty($options['temporary'])) {
338
            // try make temporary file
339
            $url = parent::getContentUrl($hash, $options);
340
            if ($url) {
341
                return $url;
342
            }
343
        }
344
        $file = $this->file($hash);
345
        if (($file = $this->file($hash)) !== false && (! $file['url'] || $file['url'] == 1)) {
346
            $path = $this->decode($hash);

lib/elFinderVolumeGoogleDrive.class.php 1 location

@@ 374-380 (lines=7) @@
371
     */
372
    public function getContentUrl($hash, $options = [])
373
    {
374
        if (! empty($options['temporary'])) {
375
            // try make temporary file
376
            $url = parent::getContentUrl($hash, $options);
377
            if ($url) {
378
                return $url;
379
            }
380
        }
381
        if (($file = $this->file($hash)) == false || ! $file['url'] || $file['url'] == 1) {
382
            $path = $this->decode($hash);
383

lib/elFinderVolumeOneDrive.class.php 1 location

@@ 337-343 (lines=7) @@
334
     **/
335
    public function getContentUrl($hash, $options = [])
336
    {
337
        if (! empty($options['temporary'])) {
338
            // try make temporary file
339
            $url = parent::getContentUrl($hash, $options);
340
            if ($url) {
341
                return $url;
342
            }
343
        }
344
        $res = '';
345
        if (($file = $this->file($hash)) == false || ! $file['url'] || $file['url'] == 1) {
346
            $path = $this->decode($hash);