@@ -410,7 +410,7 @@ |
||
410 | 410 | $this->topLevelComparisonFunction = $this->comparisonFunctions[0]; |
411 | 411 | } else { |
412 | 412 | $funcList = $this->comparisonFunctions; |
413 | - $this->topLevelComparisonFunction = function ($object1, $object2) use ($funcList) { |
|
413 | + $this->topLevelComparisonFunction = function($object1, $object2) use ($funcList) { |
|
414 | 414 | $ret = 0; |
415 | 415 | foreach ($funcList as $f) { |
416 | 416 | $ret = $f($object1, $object2); |
@@ -789,7 +789,7 @@ |
||
789 | 789 | { |
790 | 790 | $writer = $this->xmlWriter; |
791 | 791 | $writer->startElementNs(null, ODataConstants::ATOM_PUBLISHING_SERVICE_ELEMENT_NAME, ODataConstants::APP_NAMESPACE); |
792 | - $writer->writeAttributeNs(ODataConstants::XML_NAMESPACE_PREFIX, ODataConstants::XML_BASE_ATTRIBUTE_NAME, null, $this->baseUri. '/'); |
|
792 | + $writer->writeAttributeNs(ODataConstants::XML_NAMESPACE_PREFIX, ODataConstants::XML_BASE_ATTRIBUTE_NAME, null, $this->baseUri . '/'); |
|
793 | 793 | $writer->writeAttributeNs(ODataConstants::XMLNS_NAMESPACE_PREFIX, self::ATOM_NAMESPACE_PREFIX, null, ODataConstants::ATOM_NAMESPACE); |
794 | 794 | //$writer->writeAttributeNs(ODataConstants::XMLNS_NAMESPACE_PREFIX, self::APP_NAMESPACE_PREFIX, null, ODataConstants::APP_NAMESPACE); |
795 | 795 |
@@ -124,7 +124,7 @@ |
||
124 | 124 | * @param ResourceEntityType $resourceType Resource type for the source end |
125 | 125 | * @param ResourceProperty $resourceProperty Resource property for the source end |
126 | 126 | * |
127 | - * @return ResourceAssociationTypeEndRelated Association type end for the |
|
127 | + * @return ResourceAssociationTypeEnd|null Association type end for the |
|
128 | 128 | * given parameters |
129 | 129 | */ |
130 | 130 | public function getRelatedResourceAssociationSetEnd( |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityTypeType; |
8 | 8 | use Illuminate\Support\Str; |
9 | 9 | use POData\Common\InvalidOperationException; |
10 | -use POData\Common\NotImplementedException; |
|
11 | 10 | use POData\Providers\Metadata\Type\IType; |
12 | 11 | use POData\Providers\Metadata\Type\TypeCode; |
13 | 12 |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | $type = null; |
279 | 279 | if ($typeKind == ResourceTypeKind::ENTITY) { |
280 | 280 | list($oet, $entitySet) = $this->metadataManager->addEntityType($name); |
281 | - assert($oet instanceof TEntityTypeType, "Entity type ".$name. " not successfully added"); |
|
281 | + assert($oet instanceof TEntityTypeType, "Entity type " . $name . " not successfully added"); |
|
282 | 282 | $type = new ResourceEntityType($refClass, $oet, $this); |
283 | 283 | $typeName = $type->getFullName(); |
284 | 284 | $returnName = Str::plural($typeName); |
@@ -567,7 +567,7 @@ discard block |
||
567 | 567 | ); |
568 | 568 | } |
569 | 569 | if (!in_array($resourceMult, $allowedMult)) { |
570 | - throw new InvalidOperationException("Supplied multiplicity ".$resourceMult." not valid"); |
|
570 | + throw new InvalidOperationException("Supplied multiplicity " . $resourceMult . " not valid"); |
|
571 | 571 | } |
572 | 572 | |
573 | 573 | $resourcePropertyKind = ('*' == $resourceMult) |
@@ -304,9 +304,9 @@ |
||
304 | 304 | $clearData = $data['entry']['content']['m:properties']; |
305 | 305 | if (is_array($clearData)) { |
306 | 306 | foreach ($clearData as $key => $value) { |
307 | - if(is_array($value)){ |
|
307 | + if (is_array($value)) { |
|
308 | 308 | $__data[substr($key, 2)] = $value['@value']; |
309 | - } else{ |
|
309 | + } else { |
|
310 | 310 | $__data[substr($key, 2)] = $value; |
311 | 311 | } |
312 | 312 | } |