Code Duplication    Length = 6-9 lines in 2 locations

lib/Evaluator.php 2 locations

@@ 335-340 (lines=6) @@
332
					# if value is an object, we check if the object has the method
333
					#
334
335
					if (is_object($context) && method_exists($context, $method))
336
					{
337
						$context = call_user_func_array([ $context, $method ], $args);
338
339
						break;
340
					}
341
342
					#
343
					# well, the object didn't have the method,
@@ 392-400 (lines=9) @@
389
						}
390
					}
391
392
					if (!$callback)
393
					{
394
						if (is_object($context) && method_exists($context, '__call'))
395
						{
396
							$context = call_user_func_array([ $context, $method ], $args);
397
398
							break;
399
						}
400
					}
401
402
					#
403
					#