Code Duplication    Length = 7-7 lines in 2 locations

lib/ar/content/html.php 1 location

@@ 341-347 (lines=7) @@
338
					// return from worker function
339
					return true;
340
			}
341
			if (is_array($node['children'])) {
342
				foreach ($node['children'] as $key => $child) {
343
					// single | makes the following line always run the compileworker
344
					// method, while any return true in that method makes $result true
345
					$result = $result | self::compileWorker($node['children'][$key]);
346
				}
347
			}
348
			return $result;
349
		}
350

lib/modules/mod_page.php 1 location

@@ 205-211 (lines=7) @@
202
				// return from worker function
203
				return true;
204
		}
205
		if (is_array($node['children'])) {
206
			foreach ($node['children'] as $key => $child) {
207
				// single | makes the following line always run the compileworker
208
				// method, while any return true in that method makes $result true
209
				$result = $result | page::compileWorker($node['children'][$key]);
210
			}
211
		}
212
		return $result;
213
	}
214