Completed
Push — 1.1.x ( 31c8bb...95b09d )
by Tim
05:04
created
Category
src/AppserverIo/RestApi/Wrappers/OA2/OperationWrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/AppserverIo/RestApi/Parsers/OA2/RequestParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/AppserverIo/RestApi/Responses/ResponseFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
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));
Please login to merge, or discard this patch.