@@ -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 |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use AlgoWeb\ODataMetadata\MetadataV3\edm\TComplexTypeType; |
7 | 7 | use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityTypeType; |
8 | 8 | use POData\Common\InvalidOperationException; |
9 | -use POData\Common\NotImplementedException; |
|
10 | 9 | use POData\Providers\Metadata\Type\IType; |
11 | 10 | use POData\Providers\Metadata\Type\TypeCode; |
12 | 11 |
@@ -276,7 +276,7 @@ |
||
276 | 276 | $type = null; |
277 | 277 | if ($typeKind == ResourceTypeKind::ENTITY) { |
278 | 278 | $oet = $this->metadataManager->addEntityType($name); |
279 | - assert($oet instanceof TEntityTypeType, "Entity type ".$name. " not successfully added"); |
|
279 | + assert($oet instanceof TEntityTypeType, "Entity type " . $name . " not successfully added"); |
|
280 | 280 | $type = new ResourceEntityType($refClass, $oet, $this); |
281 | 281 | $this->OdataEntityMap[$type->getFullName()] = $oet; |
282 | 282 | } elseif ($typeKind == ResourceTypeKind::COMPLEX) { |
@@ -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( |