|
@@ 30-33 (lines=4) @@
|
| 27 |
|
$directions = array(constant($directionConstant)); |
| 28 |
|
} |
| 29 |
|
|
| 30 |
|
foreach ($directions as $direction) { |
| 31 |
|
$method = isset($attrs['method']) ? $attrs['method'] : HandlerRegistry::getDefaultMethod($direction, $attrs['type'], $attrs['format']); |
| 32 |
|
$handlers[$direction][$attrs['type']][$attrs['format']] = array($id, $method); |
| 33 |
|
} |
| 34 |
|
} |
| 35 |
|
} |
| 36 |
|
|
|
@@ 54-57 (lines=4) @@
|
| 51 |
|
$directions = array($methodData['direction']); |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
foreach ($directions as $direction) { |
| 55 |
|
$method = isset($methodData['method']) ? $methodData['method'] : HandlerRegistry::getDefaultMethod($direction, $methodData['type'], $methodData['format']); |
| 56 |
|
$handlers[$direction][$methodData['type']][$methodData['format']] = array($id, $method); |
| 57 |
|
} |
| 58 |
|
} |
| 59 |
|
} |
| 60 |
|
|