Code Duplication    Length = 7-7 lines in 2 locations

lib/elFinderVolumeBox.class.php 1 location

@@ 823-829 (lines=7) @@
820
            return $this->setError($e->getMessage());
821
        }
822
823
        if (empty($options['netkey'])) {
824
            // make net mount key
825
            $_tokenKey = isset($this->token->data->refresh_token) ? $this->token->data->refresh_token : $this->token->data->access_token;
826
            $this->netMountKey = md5(implode('-', ['box', $this->options['path'], $_tokenKey]));
827
        } else {
828
            $this->netMountKey = $options['netkey'];
829
        }
830
831
        // normalize root path
832
        if ($this->options['path'] == 'root') {

lib/elFinderVolumeOneDrive.class.php 1 location

@@ 783-789 (lines=7) @@
780
            return $this->setError($e->getMessage());
781
        }
782
783
        if (empty($options['netkey'])) {
784
            // make net mount key
785
            $_tokenKey = isset($this->token->data->refresh_token) ? $this->token->data->refresh_token : $this->token->data->access_token;
786
            $this->netMountKey = md5(implode('-', ['box', $this->options['path'], $_tokenKey]));
787
        } else {
788
            $this->netMountKey = $options['netkey'];
789
        }
790
791
        // normalize root path
792
        if ($this->options['path'] == 'root') {