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/frames/nodes.functions.inc.php 1 location

@@ 221-225 (lines=5) @@
218
					$icon = $_style['tree_page_info'];
219
					break;
220
				default:
221
					if(isset($icons[$row['contentType']])) {
222
						$icon = $icons[$row['contentType']];
223
					} else {
224
						$icon = $_style['tree_page'];
225
					}
226
			}
227
			$ph['icon'] = $icon;
228