Code Duplication    Length = 7-7 lines in 2 locations

lib/elFinderVolumeBox.class.php 1 location

@@ 1536-1542 (lines=7) @@
1533
            //copy File in the Parent
1534
            $result = $this->_bd_curlExec($curl, $targetDir);
1535
1536
            if (isset($result->id)) {
1537
                if ($type === 'folders' && isset($this->sessionCache['subdirs'])) {
1538
                    $this->sessionCache['subdirs'][$targetDir] = true;
1539
                }
1540
1541
                return $this->_joinPath($targetDir, $result->id);
1542
            }
1543
1544
            return false;
1545
        } catch (Exception $e) {

lib/elFinderVolumeOneDrive.class.php 1 location

@@ 1476-1482 (lines=7) @@
1473
                }
1474
            }
1475
1476
            if ($res && isset($res->id)) {
1477
                if (isset($res->folder) && isset($this->sessionCache['subdirs'])) {
1478
                    $this->sessionCache['subdirs'][$targetDir] = true;
1479
                }
1480
1481
                return $this->_joinPath($targetDir, $res->id);
1482
            }
1483
1484
            return false;
1485
        } catch (Exception $e) {