How to sort after removing'goto'statements, making it easier for people to understand? : How to sort after removing'goto'statements, making it easier for people to understand
[how to format your messy code in the left side to be like the right side in the picture][1]

    //**this code
    defined('IN_IA') or exit('Access Denied');
    class Md_daojiaModuleSite extends WeModuleSite
    {
        public function doPageUploadmap3()
        {
            goto A25dm;
            ADcuT:
            ZLMND:
            goto wJ44l;
            z_M2Z:
            if (empty($_FILES["file"]["tmp_name"])) {
                goto ZLMND;
            }
            goto RnW8Z;
            M61ng:
            $tempfile = ATTACHMENT_ROOT . "/audios/" . $name;
            goto ReGaV;
            A25dm:
            global $_GPC, $_W;
            goto z_M2Z;
            RnW8Z:
            $exname = strtolower(substr($_FILES["file"]["name"], strrpos($_FILES["file"]["name"], ".") + 1));
            goto BO3TT;
            wJ44l:
            return $this->result(0, '', "attachment/audios/" . $name);
            goto Qx8PP;
            BO3TT:
            $name = md5(time()) . "." . $exname;
            goto M61ng;
            ReGaV:
            move_uploaded_file($_FILES["file"]["tmp_name"], $tempfile);
            goto ADcuT;
            Qx8PP:
        }
    }
[1]: https://i.stack.imgur.com/9Sxot.png

  