Conditions | 9 |
Paths | 9 |
Total Lines | 23 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
66 | private static function getFrameArgs($frameArgs) |
||
67 | { |
||
68 | $args = array(); |
||
69 | |||
70 | foreach ($frameArgs as $arg) { |
||
71 | if (is_string($arg)) { |
||
72 | $args[] = "'" . $arg . "'"; |
||
73 | } elseif (is_array($arg)) { |
||
74 | $args[] = "Array"; |
||
75 | } elseif (is_null($arg)) { |
||
76 | $args[] = 'NULL'; |
||
77 | } elseif (is_bool($arg)) { |
||
78 | $args[] = ($arg) ? "true" : "false"; |
||
79 | } elseif (is_object($arg)) { |
||
80 | $args[] = get_class($arg); |
||
81 | } elseif (is_resource($arg)) { |
||
82 | $args[] = get_resource_type($arg); |
||
83 | } else { |
||
84 | $args[] = $arg; |
||
85 | } |
||
86 | } |
||
87 | |||
88 | return join(", ", $args); |
||
89 | } |
||
91 |