| @@ 112-121 (lines=10) @@ | ||
| 109 | self::logInvocation($constant); |
|
| 110 | self::$invocations[$constant][] = null; |
|
| 111 | ||
| 112 | if (isset(self::$patches_to_apply[$constant])) |
|
| 113 | { |
|
| 114 | if (! self::checkCalledMethod($constant)) |
|
| 115 | { |
|
| 116 | MonkeyPatchManager::log( |
|
| 117 | 'invoke_const: ' . $constant . ' not patched (out of scope)' |
|
| 118 | ); |
|
| 119 | return constant($constant); |
|
| 120 | } |
|
| 121 | } |
|
| 122 | ||
| 123 | if (array_key_exists($constant, self::$patches)) |
|
| 124 | { |
|
| @@ 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 | { |
|