Code Duplication    Length = 3-3 lines in 2 locations

lib/elFinderVolumeBox.class.php 1 location

@@ 147-149 (lines=3) @@
144
        }
145
146
        try {
147
            if (empty($options['client_id']) || empty($options['client_secret'])) {
148
                return ['exit' => true, 'body' => '{msg:errNetMountNoDriver}'];
149
            }
150
151
            if (isset($_GET['code'])) {
152
                try {

lib/elFinderVolumeOneDrive.class.php 1 location

@@ 144-146 (lines=3) @@
141
        }
142
143
        try {
144
            if (empty($options['client_id']) || empty($options['client_secret'])) {
145
                return ['exit' => true, 'body' => '{msg:errNetMountNoDriver}'];
146
            }
147
148
            if (isset($_GET['code'])) {
149
                try {