Code Duplication    Length = 4-4 lines in 2 locations

lib/ar.php 2 locations

@@ 319-322 (lines=4) @@
316
				$realName = substr($name, 1);
317
				if (ar_pinp::isAllowed($this, $realName)) {
318
					return call_user_func_array(array($this, $realName), $arguments);
319
				} else {
320
					$trace = debug_backtrace(0,2);
321
					trigger_error("Method $realName not found in class ".get_class($this)." Called from line ".$trace[1]['line']." in ".$trace[1]['file'], E_USER_WARNING);
322
				}
323
			} else {
324
				$trace = debug_backtrace(0,2);
325
				trigger_error("Method $name not found in class ".get_class($this)." Called from line ".$trace[1]['line']." in ".$trace[1]['file'], E_USER_WARNING);
@@ 323-326 (lines=4) @@
320
					$trace = debug_backtrace(0,2);
321
					trigger_error("Method $realName not found in class ".get_class($this)." Called from line ".$trace[1]['line']." in ".$trace[1]['file'], E_USER_WARNING);
322
				}
323
			} else {
324
				$trace = debug_backtrace(0,2);
325
				trigger_error("Method $name not found in class ".get_class($this)." Called from line ".$trace[1]['line']." in ".$trace[1]['file'], E_USER_WARNING);
326
			}
327
		}
328
329
		public static function isError($ob) {