Code Duplication    Length = 5-5 lines in 2 locations

lib/elFinderVolumeBox.class.php 2 locations

@@ 1138-1142 (lines=5) @@
1135
                $url = 'https://app.box.com/representation/file_version_'.$raw->file_version->id.'/image_2048_'.$fExtension.'/1.'.$fExtension.'?shared_name='.basename($raw->shared_link->url);
1136
1137
                return $url;
1138
            } elseif ($fExtension !== 'jpg' && $fType == 'image') {
1139
                $url = 'https://app.box.com/representation/file_version_'.$raw->file_version->id.'/image_2048/1.'.$fExtension.'?shared_name='.basename($raw->shared_link->url);
1140
1141
                return $url;
1142
            } elseif ($fType == 'video') {
1143
                $url = 'https://app.box.com/representation/file_version_'.$raw->file_version->id.'/video_480.'.$fExtension.'?shared_name='.basename($raw->shared_link->url);
1144
1145
                return $url;
@@ 1146-1150 (lines=5) @@
1143
                $url = 'https://app.box.com/representation/file_version_'.$raw->file_version->id.'/video_480.'.$fExtension.'?shared_name='.basename($raw->shared_link->url);
1144
1145
                return $url;
1146
            } elseif ($fType == 'audio') {
1147
                $url = 'https://app.box.com/index.php?rm=preview_stream&amp&file_version_'.$raw->file_version->id.'/audio/mpeg:'.$raw->name.'&shared_name='.basename($raw->shared_link->url);
1148
1149
                return $url;
1150
            }
1151
        } elseif ($raw->shared_link->download_url) {
1152
            return $raw->shared_link->download_url;
1153
        }