Code Duplication    Length = 10-11 lines in 2 locations

application/tests/_ci_phpunit_test/patcher/Patcher/FunctionPatcher/Proxy.php 1 location

@@ 149-159 (lines=11) @@
146
		self::logInvocation($function, $arguments);
147
		self::$invocations[$function][] = $arguments;
148
149
		if (isset(self::$patches_to_apply[$function]))
150
		{
151
			if (! self::checkCalledMethod($function))
152
			{
153
				MonkeyPatchManager::log(
154
					'invoke_func: ' . $function . '() not patched (out of scope)'
155
				);
156
				self::checkPassedByReference($function);
157
				return call_user_func_array($function, $arguments);
158
			}
159
		}
160
161
		if (array_key_exists($function, self::$patches))
162
		{

application/tests/_ci_phpunit_test/patcher/Patcher/ConstantPatcher/Proxy.php 1 location

@@ 109-118 (lines=10) @@
106
	{
107
		self::logInvocation($constant);
108
109
		if (isset(self::$patches_to_apply[$constant]))
110
		{
111
			if (! self::checkCalledMethod($constant))
112
			{
113
				MonkeyPatchManager::log(
114
					'invoke_const: ' . $constant . ' not patched (out of scope)'
115
				);
116
				return constant($constant);
117
			}
118
		}
119
120
		if (array_key_exists($constant, self::$patches))
121
		{