Code Duplication    Length = 16-16 lines in 2 locations

app/classy/classy-comment.php 1 location

@@ 292-307 (lines=16) @@
289
	 * 
290
	 * @return boolean
291
	 */
292
	protected function update_child_levels() {
293
294
		if (is_array($this->children)) {
295
		
296
			foreach( $this->children as $child ) {
297
				$child->level = $this->level + 1;
298
				$child->update_child_levels();
299
			}
300
		
301
			return true;
302
		
303
		}
304
305
		return false;
306
307
	}
308
309
310

app/classy/classy-menu-item.php 1 location

@@ 157-172 (lines=16) @@
154
	 * 
155
	 * @return boolean
156
	 */
157
	protected function update_child_levels() {
158
159
		if (is_array($this->children)) {
160
		
161
			foreach( $this->children as $child ) {
162
				$child->level = $this->level + 1;
163
				$child->update_child_levels();
164
			}
165
		
166
			return true;
167
		
168
		}
169
170
		return false;
171
172
	}
173
174
}