@@ -349,7 +349,7 @@  | 
                                                    ||
| 349 | 349 | |
| 350 | 350 | ++$textIndex;  | 
                                                        
| 351 | 351 | $parameterValue  | 
                                                        
| 352 | - = self::readQuotedParameterValue($parameterName, $text, $textIndex);  | 
                                                        |
| 352 | + = self::readQuotedParameterValue($parameterName, $text, $textIndex);  | 
                                                        |
| 353 | 353 | $parameters[] = [$parameterName => $parameterValue];  | 
                                                        
| 354 | 354 | }  | 
                                                        
| 355 | 355 | |
@@ -253,9 +253,9 @@  | 
                                                    ||
| 253 | 253 | $keyPredicate[strlen($keyPredicate) - 2] = ' ';  | 
                                                        
| 254 | 254 |          } else { | 
                                                        
| 255 | 255 |              $idBits       = explode('/', $id); | 
                                                        
| 256 | - $keyRaw = $idBits[count($idBits)-1];  | 
                                                        |
| 256 | + $keyRaw = $idBits[count($idBits) - 1];  | 
                                                        |
| 257 | 257 |              $rawBits      = explode('(', $keyRaw, 2); | 
                                                        
| 258 | -            $rawBits      = explode(')', $rawBits[count($rawBits)-1]); | 
                                                        |
| 258 | +            $rawBits      = explode(')', $rawBits[count($rawBits) - 1]); | 
                                                        |
| 259 | 259 | $keyPredicate = $rawBits[0];  | 
                                                        
| 260 | 260 | }  | 
                                                        
| 261 | 261 | $keyPredicate = trim($keyPredicate);  | 
                                                        
@@ -42,7 +42,7 @@  | 
                                                    ||
| 42 | 42 | |
| 43 | 43 | $payloadType = $payload->type->term;  | 
                                                        
| 44 | 44 |          $pay         = explode('.', $payloadType); | 
                                                        
| 45 | - $payloadType = $pay[count($pay)-1];  | 
                                                        |
| 45 | + $payloadType = $pay[count($pay) - 1];  | 
                                                        |
| 46 | 46 | $actualType = $entityType->getName();  | 
                                                        
| 47 | 47 | |
| 48 | 48 |          if ($payloadType !== $actualType) { | 
                                                        
@@ -1113,6 +1113,6 @@  | 
                                                    ||
| 1113 | 1113 | return false;  | 
                                                        
| 1114 | 1114 | }  | 
                                                        
| 1115 | 1115 | |
| 1116 | - return 0 == ($resourceKind % 4);  | 
                                                        |
| 1116 | + return 0 == ($resourceKind%4);  | 
                                                        |
| 1117 | 1117 | }  | 
                                                        
| 1118 | 1118 | }  | 
                                                        
@@ -180,7 +180,7 @@  | 
                                                    ||
| 180 | 180 |          if (null !== $type) { | 
                                                        
| 181 | 181 | $rawTerm = $type->term;  | 
                                                        
| 182 | 182 |              $termArray             = explode('.', $rawTerm); | 
                                                        
| 183 | - $final = $termArray[count($termArray)-1];  | 
                                                        |
| 183 | + $final = $termArray[count($termArray) - 1];  | 
                                                        |
| 184 | 184 | $this->resourceSetName = MetadataManager::getResourceSetNameFromResourceType($final);  | 
                                                        
| 185 | 185 | }  | 
                                                        
| 186 | 186 | }  | 
                                                        
@@ -140,7 +140,7 @@  | 
                                                    ||
| 140 | 140 | }  | 
                                                        
| 141 | 141 | |
| 142 | 142 | $segmentCount = count($segments);  | 
                                                        
| 143 | - $identifier = $keyPredicate = null;  | 
                                                        |
| 143 | + $identifier = $keyPredicate = null;  | 
                                                        |
| 144 | 144 | $this->extractSegmentIdentifierAndKeyPredicate($segments[0], $identifier, $keyPredicate);  | 
                                                        
| 145 | 145 | $previous = $this->createFirstSegmentDescriptor(  | 
                                                        
| 146 | 146 | $identifier,  | 
                                                        
@@ -73,7 +73,7 @@  | 
                                                    ||
| 73 | 73 | public function getResponse()  | 
                                                        
| 74 | 74 |      { | 
                                                        
| 75 | 75 | $response = '';  | 
                                                        
| 76 | - $splitter = '--' . $this->batchBoundary . "\r\n";  | 
                                                        |
| 76 | + $splitter = '--' . $this->batchBoundary . "\r\n";  | 
                                                        |
| 77 | 77 | $raw = $this->changeSetProcessors;  | 
                                                        
| 78 | 78 |          foreach ($raw as $contentID => &$workingObject) { | 
                                                        
| 79 | 79 | $response .= $splitter;  | 
                                                        
@@ -19,7 +19,7 @@ discard block  | 
                                                    ||
| 19 | 19 | protected $changeSetBoundary;  | 
                                                        
| 20 | 20 | protected $rawRequests = [];  | 
                                                        
| 21 | 21 | protected $service;  | 
                                                        
| 22 | - protected $contentIDToLocationLookup =[];  | 
                                                        |
| 22 | + protected $contentIDToLocationLookup = [];  | 
                                                        |
| 23 | 23 | |
| 24 | 24 | /**  | 
                                                        
| 25 | 25 | * ChangeSetParser constructor.  | 
                                                        
@@ -108,8 +108,7 @@ discard block  | 
                                                    ||
| 108 | 108 | $response .= false === $this->changeSetBoundary ? "\r\n" : "--\r\n";  | 
                                                        
| 109 | 109 | $response = 'Content-Length: ' . strlen($response) . "\r\n\r\n" . $response;  | 
                                                        
| 110 | 110 | $response = false === $this->changeSetBoundary ?  | 
                                                        
| 111 | - $response :  | 
                                                        |
| 112 | - 'Content-Type: multipart/mixed; boundary=' . $this->changeSetBoundary . "\r\n" . $response;  | 
                                                        |
| 111 | + $response : 'Content-Type: multipart/mixed; boundary=' . $this->changeSetBoundary . "\r\n" . $response;  | 
                                                        |
| 113 | 112 | return $response;  | 
                                                        
| 114 | 113 | }  | 
                                                        
| 115 | 114 | |
@@ -193,7 +192,7 @@ discard block  | 
                                                    ||
| 193 | 192 |              if ($contentIDinit == $contentID) { | 
                                                        
| 194 | 193 | $contentIDinit--;  | 
                                                        
| 195 | 194 | }  | 
                                                        
| 196 | - $this->rawRequests[$contentID] = (object)[  | 
                                                        |
| 195 | + $this->rawRequests[$contentID] = (object) [  | 
                                                        |
| 197 | 196 | 'RequestVerb' => $requestPathParts[0],  | 
                                                        
| 198 | 197 | 'RequestURL' => $requestPathParts[1],  | 
                                                        
| 199 | 198 | 'ServerParams' => $serverParts,  | 
                                                        
@@ -693,7 +693,7 @@  | 
                                                    ||
| 693 | 693 | ResourceEntityType $concreteType = null  | 
                                                        
| 694 | 694 |      ) { | 
                                                        
| 695 | 695 | $allowedMult = ['*', '1', '0..1'];  | 
                                                        
| 696 | - $backMultArray = [ '*' => '*', '1' => '0..1', '0..1' => '1'];  | 
                                                        |
| 696 | + $backMultArray = ['*' => '*', '1' => '0..1', '0..1' => '1'];  | 
                                                        |
| 697 | 697 | $this->checkInstanceProperty($name, $sourceResourceType);  | 
                                                        
| 698 | 698 | |
| 699 | 699 | // check that property and resource name don't up and collide - would violate OData spec  |