Code Duplication    Length = 11-11 lines in 3 locations

class/utilities.php 3 locations

@@ 111-121 (lines=11) @@
108
            $msg     = $res ? _AM_PUBLISHER_DIRCREATED : _AM_PUBLISHER_DIRNOTCREATED;
109
        }
110
111
        if (publisherGetPathStatus('images', true) < 0) {
112
            $thePath = publisherGetImageDir();
113
            $res     = publisherMkdir($thePath);
114
115
            if ($res) {
116
                $source = PUBLISHER_ROOT_PATH . '/assets/images/blank.png';
117
                $dest   = $thePath . 'blank.png';
118
                publisherCopyr($source, $dest);
119
            }
120
            $msg = $res ? _AM_PUBLISHER_DIRCREATED : _AM_PUBLISHER_DIRNOTCREATED;
121
        }
122
123
        if (publisherGetPathStatus('images/category', true) < 0) {
124
            $thePath = publisherGetImageDir('category');
@@ 123-133 (lines=11) @@
120
            $msg = $res ? _AM_PUBLISHER_DIRCREATED : _AM_PUBLISHER_DIRNOTCREATED;
121
        }
122
123
        if (publisherGetPathStatus('images/category', true) < 0) {
124
            $thePath = publisherGetImageDir('category');
125
            $res     = publisherMkdir($thePath);
126
127
            if ($res) {
128
                $source = PUBLISHER_ROOT_PATH . '/assets/images/blank.png';
129
                $dest   = $thePath . 'blank.png';
130
                publisherCopyr($source, $dest);
131
            }
132
            $msg = $res ? _AM_PUBLISHER_DIRCREATED : _AM_PUBLISHER_DIRNOTCREATED;
133
        }
134
135
        if (publisherGetPathStatus('images/item', true) < 0) {
136
            $thePath = publisherGetImageDir('item');
@@ 135-145 (lines=11) @@
132
            $msg = $res ? _AM_PUBLISHER_DIRCREATED : _AM_PUBLISHER_DIRNOTCREATED;
133
        }
134
135
        if (publisherGetPathStatus('images/item', true) < 0) {
136
            $thePath = publisherGetImageDir('item');
137
            $res     = publisherMkdir($thePath);
138
139
            if ($res) {
140
                $source = PUBLISHER_ROOT_PATH . '/assets/images/blank.png';
141
                $dest   = $thePath . 'blank.png';
142
                publisherCopyr($source, $dest);
143
            }
144
            $msg = $res ? _AM_PUBLISHER_DIRCREATED : _AM_PUBLISHER_DIRNOTCREATED;
145
        }
146
147
        if (publisherGetPathStatus('content', true) < 0) {
148
            $thePath = publisherGetUploadDir(true, 'content');