@@ -136,8 +136,8 @@ public function resolveOperationDataArray($entityObject, $operationMetadata, $op
136
136
} else {
137
137
138
138
$ operationElementProperty = null ;
139
- if (strpos ($ operationElementType , '. ' ) !== false ){
140
- $ operationElementComponents = explode ('. ' ,$ operationElementType );
139
+ if (strpos ($ operationElementType , '. ' ) !== false ) {
140
+ $ operationElementComponents = explode ('. ' , $ operationElementType );
141
141
$ operationElementType = $ operationElementComponents [0 ];
142
142
$ operationElementProperty = $ operationElementComponents [1 ];
143
143
}
@@ -155,21 +155,22 @@ public function resolveOperationDataArray($entityObject, $operationMetadata, $op
155
155
}
156
156
foreach ($ entityNamesOfType as $ entityName ) {
157
157
158
- if ($ operationElementProperty === null ) {
158
+ if ($ operationElementProperty === null ) {
159
159
$ operationDataSubArray = $ this ->resolveNonPrimitiveElement (
160
160
$ entityName ,
161
161
$ operationElement ,
162
162
$ operation ,
163
163
$ fromArray
164
164
);
165
- }else {
165
+ } else {
166
166
$ linkedEntityObj = $ this ->resolveLinkedEntityObject ($ entityName );
167
- $ operationDataSubArray = $ linkedEntityObj ->getDataByName ($ operationElementProperty ,0 );
167
+ $ operationDataSubArray = $ linkedEntityObj ->getDataByName ($ operationElementProperty , 0 );
168
168
169
- if ($ operationDataSubArray === null )
169
+ if ($ operationDataSubArray === null ) {
170
170
throw new \Exception (
171
171
sprintf ('Property %s not found in entity %s \n ' , $ operationElementProperty , $ entityName )
172
172
);
173
+ }
173
174
}
174
175
175
176
if ($ operationElement ->getType () == OperationDefinitionObjectHandler::ENTITY_OPERATION_ARRAY ) {
0 commit comments