@@ 56-60 (lines=5) @@ | ||
53 | $result = $match[0]; |
|
54 | if (isset($params[$key])) { |
|
55 | if (is_object($params[$key])) { |
|
56 | if (isset($match[2])) { |
|
57 | $result = $this->returnMethodCall($params[$key], $match[2]); |
|
58 | } else { |
|
59 | throw new BadMethodCallException("No method supplied in syntax to call for object: {$key}"); |
|
60 | } |
|
61 | } elseif (is_array($params[$key])) { |
|
62 | if (isset($match[2])) { |
|
63 | $result = $this->returnArrayKey($params[$key], $match[2]); |
|
@@ 61-67 (lines=7) @@ | ||
58 | } else { |
|
59 | throw new BadMethodCallException("No method supplied in syntax to call for object: {$key}"); |
|
60 | } |
|
61 | } elseif (is_array($params[$key])) { |
|
62 | if (isset($match[2])) { |
|
63 | $result = $this->returnArrayKey($params[$key], $match[2]); |
|
64 | } else { |
|
65 | throw new InvalidArgumentException("No key supplied in syntax to call for array: {$key}"); |
|
66 | } |
|
67 | } elseif (is_scalar($params[$key])) { |
|
68 | $result = $params[$key]; |
|
69 | } |
|
70 | } |