Code Duplication    Length = 6-6 lines in 2 locations

lib/elFinderFlysystemGoogleDriveNetmount.php 1 location

@@ 64-69 (lines=6) @@
61
            $client->setClientId($options['client_id']);
62
            $client->setClientSecret($options['client_secret']);
63
64
            if ($options['pass'] === 'reauth') {
65
                $options['pass'] = '';
66
                $this->session->set('GoogleDriveAuthParams', [])->set('GoogleDriveTokens', []);
67
            } elseif ($options['pass'] === 'googledrive') {
68
                $options['pass'] = '';
69
            }
70
71
            $options = array_merge($this->session->get('GoogleDriveAuthParams', []), $options);
72

lib/elFinderVolumeGoogleDrive.class.php 1 location

@@ 170-175 (lines=6) @@
167
            $client->setClientId($options['client_id']);
168
            $client->setClientSecret($options['client_secret']);
169
170
            if ($options['pass'] === 'reauth') {
171
                $options['pass'] = '';
172
                $this->session->set('GoogleDriveAuthParams', [])->set('GoogleDriveTokens', []);
173
            } elseif ($options['pass'] === 'googledrive') {
174
                $options['pass'] = '';
175
            }
176
177
            $options = array_merge($this->session->get('GoogleDriveAuthParams', []), $options);
178