@@ -114,7 +114,7 @@ |
||
114 | 114 | preg_match('/\\\{[a-zA-Z0-9\_\-]+\\\}/', preg_quote($operation->path), $pathVariables); |
115 | 115 | |
116 | 116 | // remove the surrounding braces |
117 | - array_walk($pathVariables, function (&$pathVariable) { |
|
117 | + array_walk($pathVariables, function(&$pathVariable) { |
|
118 | 118 | $pathVariable = stripslashes(str_replace(array('{', '}'), null, $pathVariable)); |
119 | 119 | }); |
120 | 120 |
@@ -117,7 +117,7 @@ |
||
117 | 117 | $objectManager = $this->getApplication()->search(ObjectManagerInterface::IDENTIFIER); |
118 | 118 | |
119 | 119 | // extract the lookup name from the ref definition |
120 | - list ($lookupName, ) = sscanf($parameter->getSchema()->getRef(), '#/definitions/%s'); |
|
120 | + list ($lookupName,) = sscanf($parameter->getSchema()->getRef(), '#/definitions/%s'); |
|
121 | 121 | |
122 | 122 | // load the object descriptor |
123 | 123 | $objectDescriptor = $objectManager->getObjectDescriptor($lookupName); |
@@ -79,7 +79,7 @@ |
||
79 | 79 | $responseWrapper = $operationWrapper->getResponse($e->getCode() ? $e->getCode() : 500); |
80 | 80 | |
81 | 81 | // extract the lookup name from the ref definition |
82 | - list ($lookupName, ) = sscanf($responseWrapper->getSchema()->getRef(), '#/definitions/%s'); |
|
82 | + list ($lookupName,) = sscanf($responseWrapper->getSchema()->getRef(), '#/definitions/%s'); |
|
83 | 83 | |
84 | 84 | // load the response instance for the API that matches the passed request handler |
85 | 85 | $response = $this->getApplication()->search(sprintf('%s/%s', $requestHandler->getApi(), $lookupName)); |