Code Duplication    Length = 5-7 lines in 2 locations

manager/actions/document_data.static.php 1 location

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

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