| @@ 1102-1115 (lines=14) @@ | ||
| 1099 | } |
|
| 1100 | $identifier = ''; |
|
| 1101 | $arguments = is_array($arguments) ? $arguments : array(); |
|
| 1102 | foreach ($arguments as $argument) { |
|
| 1103 | switch (true) { |
|
| 1104 | case is_object($argument) : |
|
| 1105 | case $argument instanceof Closure : |
|
| 1106 | $identifier .= spl_object_hash($argument); |
|
| 1107 | break; |
|
| 1108 | case is_array($argument) : |
|
| 1109 | $identifier .= $this->getIdentifierForArguments($argument); |
|
| 1110 | break; |
|
| 1111 | default : |
|
| 1112 | $identifier .= $argument; |
|
| 1113 | break; |
|
| 1114 | } |
|
| 1115 | } |
|
| 1116 | return $identifier; |
|
| 1117 | } |
|
| 1118 | ||
| @@ 202-215 (lines=14) @@ | ||
| 199 | return ''; |
|
| 200 | } |
|
| 201 | $identifier = ''; |
|
| 202 | foreach ($arguments as $argument) { |
|
| 203 | switch (true) { |
|
| 204 | case is_object($argument) : |
|
| 205 | case $argument instanceof Closure : |
|
| 206 | $identifier .= spl_object_hash($argument); |
|
| 207 | break; |
|
| 208 | case is_array($argument) : |
|
| 209 | $identifier .= $this->getIdentifierForArguments($argument); |
|
| 210 | break; |
|
| 211 | default : |
|
| 212 | $identifier .= $argument; |
|
| 213 | break; |
|
| 214 | } |
|
| 215 | } |
|
| 216 | return $identifier; |
|
| 217 | } |
|
| 218 | } |
|