Code Duplication    Length = 5-7 lines in 2 locations

manager/includes/functions/nodes.php 1 location

@@ 213-217 (lines=5) @@
210
                        $icon = $_style['tree_page_info'];
211
                        break;
212
                    default:
213
                        if (isset($icons[$row['contentType']])) {
214
                            $icon = $icons[$row['contentType']];
215
                        } else {
216
                            $icon = $_style['tree_page'];
217
                        }
218
                }
219
                $ph['icon'] = $icon;
220

manager/actions/document_data.static.php 1 location

@@ 172-178 (lines=7) @@
169
			default:
170
				if($children['isfolder']) {
171
					$icon = $_style['tree_folder_new'];
172
				} else {
173
					if(isset($icons[$children['contentType']])) {
174
						$icon = $icons[$children['contentType']];
175
					} else {
176
						$icon = $_style['tree_page'];
177
					}
178
				}
179
		}
180
181
		$private = ($children['privateweb'] || $children['privatemgr'] ? ' private' : '');