Code Duplication    Length = 11-11 lines in 3 locations

class/utility.php 3 locations

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