Code Duplication    Length = 9-9 lines in 2 locations

htdocs/class/xoopseditor/tinymce4/external_plugins/filemanager/include/classPhpPsdReader.php 1 location

@@ 320-328 (lines=9) @@
317
 * @return image identifier
318
 */
319
320
function imagecreatefrompsd($fileName)
321
{
322
    $psdReader = new PhpPsdReader($fileName);
323
    if (isset($psdReader->infoArray['error'])) {
324
        return '';
325
    } else {
326
        return $psdReader->getImage();
327
    }
328
}
329

htdocs/class/xoopseditor/tinymce4bootstrap/external_plugins/filemanager/include/classPhpPsdReader.php 1 location

@@ 320-328 (lines=9) @@
317
 * @return image identifier
318
 */
319
320
function imagecreatefrompsd($fileName)
321
{
322
    $psdReader = new PhpPsdReader($fileName);
323
    if (isset($psdReader->infoArray['error'])) {
324
        return '';
325
    } else {
326
        return $psdReader->getImage();
327
    }
328
}
329