Code Duplication    Length = 6-6 lines in 3 locations

engine/classes/Elgg/ClassLoader.php 3 locations

@@ 207-212 (lines=6) @@
204
					continue;
205
				}
206
207
				foreach ($dirs as $dir) {
208
					$file = $dir . DIRECTORY_SEPARATOR . $normalizedClass;
209
					if (is_file($file)) {
210
						return $file;
211
					}
212
				}
213
			}
214
215
		} else {
@@ 223-228 (lines=6) @@
220
					continue;
221
				}
222
223
				foreach ($dirs as $dir) {
224
					$file = $dir . DIRECTORY_SEPARATOR . $normalizedClass;
225
					if (is_file($file)) {
226
						return $file;
227
					}
228
				}
229
			}
230
		}
231
@@ 232-237 (lines=6) @@
229
			}
230
		}
231
232
		foreach ($this->fallbacks as $dir) {
233
			$file = $dir . DIRECTORY_SEPARATOR . $normalizedClass;
234
			if (is_file($file)) {
235
				return $file;
236
			}
237
		}
238
	}
239
}
240