Code Duplication    Length = 5-5 lines in 2 locations

class/utilities.php 2 locations

@@ 105-109 (lines=5) @@
102
        // auto crate folders
103
        //        $thePath = publisherGetUploadDir();
104
105
        if (publisherGetPathStatus('root', true) < 0) {
106
            $thePath = publisherGetUploadDir();
107
            $res     = publisherMkdir($thePath);
108
            $msg     = $res ? _AM_PUBLISHER_DIRCREATED : _AM_PUBLISHER_DIRNOTCREATED;
109
        }
110
111
        if (publisherGetPathStatus('images', true) < 0) {
112
            $thePath = publisherGetImageDir();
@@ 147-151 (lines=5) @@
144
            $msg = $res ? _AM_PUBLISHER_DIRCREATED : _AM_PUBLISHER_DIRNOTCREATED;
145
        }
146
147
        if (publisherGetPathStatus('content', true) < 0) {
148
            $thePath = publisherGetUploadDir(true, 'content');
149
            $res     = publisherMkdir($thePath);
150
            $msg     = $res ? _AM_PUBLISHER_DIRCREATED : _AM_PUBLISHER_DIRNOTCREATED;
151
        }
152
    }
153
154
    public static function buildTableItemTitleRow()