@@ -30,6 +30,9 @@ discard block |
||
30 | 30 | return parent::isNullInstanceOf($var, $instanceOf); |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $instanceOf |
|
35 | + */ |
|
33 | 36 | public function isValidArray(array $arr = null, $instanceOf, $minCount = -1, $maxCount = -1) |
34 | 37 | { |
35 | 38 | return parent::isValidArray($arr, $instanceOf, $minCount, $maxCount); |
@@ -40,6 +43,9 @@ discard block |
||
40 | 43 | return parent::isChildArrayOK($arr, $msg); |
41 | 44 | } |
42 | 45 | |
46 | + /** |
|
47 | + * @param null|string $url |
|
48 | + */ |
|
43 | 49 | public function isURLValid($url) |
44 | 50 | { |
45 | 51 | return parent::isURLValid($url); |
@@ -50,6 +56,9 @@ discard block |
||
50 | 56 | return true; |
51 | 57 | } |
52 | 58 | |
59 | + /** |
|
60 | + * @return boolean |
|
61 | + */ |
|
53 | 62 | public function isObjectNullOrOK(IsOK $object = null, &$msg = null) |
54 | 63 | { |
55 | 64 | return parent::isObjectNullOrOK($object, $msg); |
@@ -11,8 +11,6 @@ |
||
11 | 11 | use AlgoWeb\ODataMetadata\MetadataV3\edm\TComplexTypeType; |
12 | 12 | use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityPropertyType; |
13 | 13 | use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityTypeType; |
14 | -use AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionReturnTypeType; |
|
15 | -use AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionType; |
|
16 | 14 | use AlgoWeb\ODataMetadata\MetadataV3\edm\TNavigationPropertyType; |
17 | 15 | use AlgoWeb\ODataMetadata\MetadataV3\edm\TTextType; |
18 | 16 | use AlgoWeb\ODataMetadata\MetadataV3\edmx\Edmx; |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | { |
38 | 38 | $ds = DIRECTORY_SEPARATOR; |
39 | 39 | |
40 | - $goodxsd = dirname(__DIR__) . $ds . 'xsd' . $ds . 'Microsoft.Data.Entity.Design.Edmx_3.Fixed.xsd'; |
|
40 | + $goodxsd = dirname(__DIR__).$ds.'xsd'.$ds.'Microsoft.Data.Entity.Design.Edmx_3.Fixed.xsd'; |
|
41 | 41 | if (!file_exists($goodxsd)) { |
42 | 42 | return true; |
43 | 43 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $result = null; |
53 | 53 | |
54 | 54 | list($eType, $result) = $metadataManager->addEntityType('Category'); |
55 | - $this->assertNotFalse($eType, 'Etype is false not type ' . $metadataManager->getLastError()); |
|
55 | + $this->assertNotFalse($eType, 'Etype is false not type '.$metadataManager->getLastError()); |
|
56 | 56 | $metadataManager->addPropertyToEntityType($eType, 'CategoryID', 'Int32', null, false, true, 'Identity'); |
57 | 57 | $metadataManager->addPropertyToEntityType($eType, 'CategoryName', 'String'); |
58 | 58 | $metadataManager->addPropertyToEntityType($eType, 'Description', 'String'); |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | $result = null; |
80 | 80 | |
81 | 81 | list($CategoryType, $result) = $metadataManager->addEntityType('Category'); |
82 | - $this->assertNotFalse($CategoryType, 'Etype is false not type ' . $metadataManager->getLastError()); |
|
82 | + $this->assertNotFalse($CategoryType, 'Etype is false not type '.$metadataManager->getLastError()); |
|
83 | 83 | $metadataManager->addPropertyToEntityType($CategoryType, 'CategoryID', 'Int32', null, false, true, 'Identity'); |
84 | 84 | $metadataManager->addPropertyToEntityType($CategoryType, 'CategoryName', 'String'); |
85 | 85 | $metadataManager->addPropertyToEntityType($CategoryType, 'Description', 'String'); |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | $this->assertTrue($metadataManager->getEdmx()->isOK($msg), $msg); |
166 | 166 | |
167 | 167 | $expectedRelation = 'Data.Category_Products_Product_Category'; |
168 | - list($principalNav, ) = $metadataManager->addNavigationPropertyToEntityType( |
|
168 | + list($principalNav,) = $metadataManager->addNavigationPropertyToEntityType( |
|
169 | 169 | $CategoryType, '*', 'Products', $ProductType, '1', 'Category', ['CategoryID'], ['CategoryID'] |
170 | 170 | ); |
171 | 171 | $this->assertEquals($expectedRelation, $principalNav->getRelationship()); |
@@ -550,7 +550,7 @@ discard block |
||
550 | 550 | { |
551 | 551 | list(, $metadataManager, $CategoryType, $CustomerType) = $this->setUpMetadataForNavTests(); |
552 | 552 | |
553 | - $expected = 'Invalid multiplicity combination - 1 1'; |
|
553 | + $expected = 'Invalid multiplicity combination - 1 1'; |
|
554 | 554 | $actual = null; |
555 | 555 | |
556 | 556 | try { |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | { |
573 | 573 | list(, $metadataManager, $CategoryType, $CustomerType) = $this->setUpMetadataForNavTests(); |
574 | 574 | |
575 | - $expected = 'Invalid multiplicity combination - * 0..1'; |
|
575 | + $expected = 'Invalid multiplicity combination - * 0..1'; |
|
576 | 576 | $actual = null; |
577 | 577 | |
578 | 578 | try { |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | |
593 | 593 | public function testAddComplexType() |
594 | 594 | { |
595 | - list(, $metadataManager, , ) = $this->setUpMetadataForNavTests(); |
|
595 | + list(, $metadataManager,,) = $this->setUpMetadataForNavTests(); |
|
596 | 596 | |
597 | 597 | $name = 'Name'; |
598 | 598 | $accessType = 'Public'; |
@@ -604,7 +604,7 @@ discard block |
||
604 | 604 | $result = $metadataManager->addComplexType($name, $accessType, $summary, $longDescription); |
605 | 605 | |
606 | 606 | $newCount = count($metadataManager->getEdmx()->getDataServiceType()->getSchema()[0]->getComplexType()); |
607 | - $this->assertEquals($oldCount+1, $newCount); |
|
607 | + $this->assertEquals($oldCount + 1, $newCount); |
|
608 | 608 | $this->assertNotNull($result); |
609 | 609 | $this->assertTrue($result instanceof TComplexTypeType, get_class($result)); |
610 | 610 | $this->assertNotNull($result->getDocumentation()); |
@@ -612,7 +612,7 @@ discard block |
||
612 | 612 | |
613 | 613 | public function testAddComplexTypeWithOnlySummary() |
614 | 614 | { |
615 | - list(, $metadataManager, , ) = $this->setUpMetadataForNavTests(); |
|
615 | + list(, $metadataManager,,) = $this->setUpMetadataForNavTests(); |
|
616 | 616 | |
617 | 617 | $name = 'Name'; |
618 | 618 | $accessType = 'Public'; |
@@ -624,7 +624,7 @@ discard block |
||
624 | 624 | $result = $metadataManager->addComplexType($name, $accessType, $summary, $longDescription); |
625 | 625 | |
626 | 626 | $newCount = count($metadataManager->getEdmx()->getDataServiceType()->getSchema()[0]->getComplexType()); |
627 | - $this->assertEquals($oldCount+1, $newCount); |
|
627 | + $this->assertEquals($oldCount + 1, $newCount); |
|
628 | 628 | $this->assertNotNull($result); |
629 | 629 | $this->assertTrue($result instanceof TComplexTypeType, get_class($result)); |
630 | 630 | $this->assertNull($result->getDocumentation()); |
@@ -632,7 +632,7 @@ discard block |
||
632 | 632 | |
633 | 633 | public function testAddComplexTypeWithOnlyDescription() |
634 | 634 | { |
635 | - list(, $metadataManager, , ) = $this->setUpMetadataForNavTests(); |
|
635 | + list(, $metadataManager,,) = $this->setUpMetadataForNavTests(); |
|
636 | 636 | |
637 | 637 | $name = 'Name'; |
638 | 638 | $accessType = 'Public'; |
@@ -644,7 +644,7 @@ discard block |
||
644 | 644 | $result = $metadataManager->addComplexType($name, $accessType, $summary, $longDescription); |
645 | 645 | |
646 | 646 | $newCount = count($metadataManager->getEdmx()->getDataServiceType()->getSchema()[0]->getComplexType()); |
647 | - $this->assertEquals($oldCount+1, $newCount); |
|
647 | + $this->assertEquals($oldCount + 1, $newCount); |
|
648 | 648 | $this->assertNotNull($result); |
649 | 649 | $this->assertTrue($result instanceof TComplexTypeType, get_class($result)); |
650 | 650 | $this->assertNull($result->getDocumentation()); |
@@ -655,7 +655,7 @@ discard block |
||
655 | 655 | $expected = 'Default value cannot be object or array'; |
656 | 656 | $actual = null; |
657 | 657 | |
658 | - list(, $metadataManager, , ) = $this->setUpMetadataForNavTests(); |
|
658 | + list(, $metadataManager,,) = $this->setUpMetadataForNavTests(); |
|
659 | 659 | $complex = m::mock(TComplexTypeType::class); |
660 | 660 | $name = 'name'; |
661 | 661 | $type = 'type'; |
@@ -674,7 +674,7 @@ discard block |
||
674 | 674 | $expected = 'Default value cannot be object or array'; |
675 | 675 | $actual = null; |
676 | 676 | |
677 | - list(, $metadataManager, , ) = $this->setUpMetadataForNavTests(); |
|
677 | + list(, $metadataManager,,) = $this->setUpMetadataForNavTests(); |
|
678 | 678 | $complex = m::mock(TComplexTypeType::class); |
679 | 679 | $name = 'name'; |
680 | 680 | $type = 'type'; |
@@ -690,7 +690,7 @@ discard block |
||
690 | 690 | |
691 | 691 | public function testAddPropertyToComplexTypeDefaultValueBoolean() |
692 | 692 | { |
693 | - list(, $metadataManager, , ) = $this->setUpMetadataForNavTests(); |
|
693 | + list(, $metadataManager,,) = $this->setUpMetadataForNavTests(); |
|
694 | 694 | $complex = m::mock(TComplexTypeType::class); |
695 | 695 | $complex->shouldReceive('addToProperty') |
696 | 696 | ->with(m::type(TComplexTypePropertyType::class))->andReturnNull()->once(); |
@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | |
717 | 717 | public function testAddPropertyToComplexTypeDefaultValueBooleanOnlySummary() |
718 | 718 | { |
719 | - list(, $metadataManager, , ) = $this->setUpMetadataForNavTests(); |
|
719 | + list(, $metadataManager,,) = $this->setUpMetadataForNavTests(); |
|
720 | 720 | $complex = m::mock(TComplexTypeType::class); |
721 | 721 | $complex->shouldReceive('addToProperty') |
722 | 722 | ->with(m::type(TComplexTypePropertyType::class))->andReturnNull()->once(); |
@@ -743,7 +743,7 @@ discard block |
||
743 | 743 | |
744 | 744 | public function testAddPropertyToComplexTypeDefaultValueBooleanOnlyDescription() |
745 | 745 | { |
746 | - list(, $metadataManager, , ) = $this->setUpMetadataForNavTests(); |
|
746 | + list(, $metadataManager,,) = $this->setUpMetadataForNavTests(); |
|
747 | 747 | $complex = m::mock(TComplexTypeType::class); |
748 | 748 | $complex->shouldReceive('addToProperty') |
749 | 749 | ->with(m::type(TComplexTypePropertyType::class))->andReturnNull()->once(); |
@@ -862,7 +862,7 @@ discard block |
||
862 | 862 | $longDescription = new TTextType(); |
863 | 863 | |
864 | 864 | $metadataManager = new MetadataManager(); |
865 | - list($result, ) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
|
865 | + list($result,) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
|
866 | 866 | $this->assertNotNull($result->getDocumentation()); |
867 | 867 | } |
868 | 868 | |
@@ -874,7 +874,7 @@ discard block |
||
874 | 874 | $longDescription = null; |
875 | 875 | |
876 | 876 | $metadataManager = new MetadataManager(); |
877 | - list($result, ) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
|
877 | + list($result,) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
|
878 | 878 | $this->assertNull($result->getDocumentation()); |
879 | 879 | } |
880 | 880 | |
@@ -886,7 +886,7 @@ discard block |
||
886 | 886 | $longDescription = new TTextType(); |
887 | 887 | |
888 | 888 | $metadataManager = new MetadataManager(); |
889 | - list($result, ) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
|
889 | + list($result,) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
|
890 | 890 | $this->assertNull($result->getDocumentation()); |
891 | 891 | } |
892 | 892 |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityPropertyType; |
6 | 6 | use AlgoWeb\ODataMetadata\Tests\TestCase; |
7 | -use Mockery as m; |
|
8 | 7 | |
9 | 8 | class TEntityPropertyTypeTest extends TestCase |
10 | 9 | { |
@@ -6,7 +6,6 @@ |
||
6 | 6 | |
7 | 7 | use AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TEntityPropertyType; |
8 | 8 | use AlgoWeb\ODataMetadata\Tests\TestCase; |
9 | -use Mockery as m; |
|
10 | 9 | |
11 | 10 | class TEntityPropertyTypeTest extends TestCase |
12 | 11 | { |
@@ -82,7 +82,7 @@ |
||
82 | 82 | $rawDate = $input; |
83 | 83 | } |
84 | 84 | |
85 | - return $rawDate->format('Y-m-d') . 'T' . $rawDate->format('H:i:s'); |
|
85 | + return $rawDate->format('Y-m-d').'T'.$rawDate->format('H:i:s'); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | public function hexBinary($input) |
@@ -146,7 +146,7 @@ |
||
146 | 146 | for ($j = $i + 1; $j < $numParms; $j++) { |
147 | 147 | assert( |
148 | 148 | $this->parameter[$j] instanceof TFunctionImportParameterType, |
149 | - get_class($this->parameter[$j]). ' ' . $j |
|
149 | + get_class($this->parameter[$j]).' '.$j |
|
150 | 150 | ); |
151 | 151 | $inName = $this->parameter[$j]->getName(); |
152 | 152 | if ($outName == $inName) { |
@@ -9,6 +9,9 @@ |
||
9 | 9 | { |
10 | 10 | use xsdRestrictions; |
11 | 11 | |
12 | + /** |
|
13 | + * @return boolean |
|
14 | + */ |
|
12 | 15 | public function isTQualifiedNameValid($string) |
13 | 16 | { |
14 | 17 | assert($this instanceof IsOK); |
@@ -2,21 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace AlgoWeb\ODataMetadata\Tests; |
4 | 4 | |
5 | -use AlgoWeb\ODataMetadata\IsOK; |
|
6 | 5 | use AlgoWeb\ODataMetadata\MetadataManager; |
7 | -use AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer; |
|
8 | -use AlgoWeb\ODataMetadata\MetadataV3\edm\Schema; |
|
9 | -use AlgoWeb\ODataMetadata\MetadataV3\edm\TAssociationType; |
|
10 | -use AlgoWeb\ODataMetadata\MetadataV3\edm\TComplexTypePropertyType; |
|
11 | -use AlgoWeb\ODataMetadata\MetadataV3\edm\TComplexTypeType; |
|
12 | -use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityPropertyType; |
|
13 | -use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityTypeType; |
|
14 | -use AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionReturnTypeType; |
|
15 | -use AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionType; |
|
16 | -use AlgoWeb\ODataMetadata\MetadataV3\edm\TNavigationPropertyType; |
|
17 | -use AlgoWeb\ODataMetadata\MetadataV3\edm\TTextType; |
|
18 | -use AlgoWeb\ODataMetadata\MetadataV3\edmx\Edmx; |
|
19 | -use Mockery as m; |
|
20 | 6 | |
21 | 7 | class MetadataManagerNavigationTest extends \PHPUnit_Framework_TestCase |
22 | 8 | { |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $result = null; |
28 | 28 | |
29 | 29 | list($CategoryType, $result) = $metadataManager->addEntityType('Category'); |
30 | - $this->assertNotFalse($CategoryType, 'Etype is false not type ' . $metadataManager->getLastError()); |
|
30 | + $this->assertNotFalse($CategoryType, 'Etype is false not type '.$metadataManager->getLastError()); |
|
31 | 31 | $metadataManager->addPropertyToEntityType($CategoryType, 'CategoryID', 'Int32', null, false, true, 'Identity'); |
32 | 32 | $metadataManager->addPropertyToEntityType($CategoryType, 'CategoryName', 'String'); |
33 | 33 | $metadataManager->addPropertyToEntityType($CategoryType, 'Description', 'String'); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $this->assertTrue($metadataManager->getEdmx()->isOK($msg), $msg); |
114 | 114 | |
115 | 115 | $expectedRelation = 'Data.Category_Products_Product_Category'; |
116 | - list($principalNav, ) = $metadataManager->addNavigationPropertyToEntityType( |
|
116 | + list($principalNav,) = $metadataManager->addNavigationPropertyToEntityType( |
|
117 | 117 | $CategoryType, '*', 'Products', $ProductType, '1', 'Category', ['CategoryID'], ['CategoryID'] |
118 | 118 | ); |
119 | 119 | $this->assertEquals($expectedRelation, $principalNav->getRelationship()); |
@@ -52,6 +52,11 @@ discard block |
||
52 | 52 | return $cereal->serialize($this->getEdmx(), 'xml'); |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param string $name |
|
57 | + * @param TTextType $summary |
|
58 | + * @param TTextType $longDescription |
|
59 | + */ |
|
55 | 60 | public function addEntityType($name, $accessType = 'Public', $summary = null, $longDescription = null) |
56 | 61 | { |
57 | 62 | $NewEntity = new TEntityTypeType(); |
@@ -116,6 +121,14 @@ discard block |
||
116 | 121 | return $NewProperty; |
117 | 122 | } |
118 | 123 | |
124 | + /** |
|
125 | + * @param string $name |
|
126 | + * @param string $type |
|
127 | + * @param string $defaultValue |
|
128 | + * @param string $storeGeneratedPattern |
|
129 | + * @param TTextType $summary |
|
130 | + * @param TTextType $longDescription |
|
131 | + */ |
|
119 | 132 | public function addPropertyToEntityType( |
120 | 133 | TEntityTypeType $entityType, |
121 | 134 | $name, |
@@ -145,6 +158,11 @@ discard block |
||
145 | 158 | return $NewProperty; |
146 | 159 | } |
147 | 160 | |
161 | + /** |
|
162 | + * @param string $principalMultiplicity |
|
163 | + * @param string $principalProperty |
|
164 | + * @param string $dependentMultiplicity |
|
165 | + */ |
|
148 | 166 | public function addNavigationPropertyToEntityType( |
149 | 167 | TEntityTypeType $principalType, |
150 | 168 | $principalMultiplicity, |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $entitySet = new EntitySetAnonymousType(); |
62 | 62 | $entitySet->setName(Str::plural($NewEntity->getName())); |
63 | 63 | $namespace = $this->getNamespace(); |
64 | - $entityTypeName = $namespace . $NewEntity->getName(); |
|
64 | + $entityTypeName = $namespace.$NewEntity->getName(); |
|
65 | 65 | $entitySet->setEntityType($entityTypeName); |
66 | 66 | $entitySet->setGetterAccess($accessType); |
67 | 67 | |
@@ -165,17 +165,17 @@ discard block |
||
165 | 165 | ) { |
166 | 166 | $principalEntitySetName = Str::plural($principalType->getName()); |
167 | 167 | $dependentEntitySetName = Str::plural($dependentType->getName()); |
168 | - $relationName = $principalType->getName() . '_' . $principalProperty . '_' |
|
169 | - . $dependentType->getName() . '_' . $dependentProperty; |
|
168 | + $relationName = $principalType->getName().'_'.$principalProperty.'_' |
|
169 | + . $dependentType->getName().'_'.$dependentProperty; |
|
170 | 170 | $relationName = trim($relationName, '_'); |
171 | 171 | |
172 | 172 | $namespace = $this->getNamespace(); |
173 | - $relationFQName = $namespace . $relationName; |
|
173 | + $relationFQName = $namespace.$relationName; |
|
174 | 174 | |
175 | 175 | $principalNavigationProperty = new TNavigationPropertyType(); |
176 | 176 | $principalNavigationProperty->setName($principalProperty); |
177 | - $principalNavigationProperty->setToRole(trim($dependentEntitySetName . '_' . $dependentProperty, '_')); |
|
178 | - $principalNavigationProperty->setFromRole($principalEntitySetName . '_' . $principalProperty); |
|
177 | + $principalNavigationProperty->setToRole(trim($dependentEntitySetName.'_'.$dependentProperty, '_')); |
|
178 | + $principalNavigationProperty->setFromRole($principalEntitySetName.'_'.$principalProperty); |
|
179 | 179 | $principalNavigationProperty->setRelationship($relationFQName); |
180 | 180 | $principalNavigationProperty->setGetterAccess($principalGetterAccess); |
181 | 181 | $principalNavigationProperty->setSetterAccess($principalSetterAccess); |
@@ -185,8 +185,8 @@ discard block |
||
185 | 185 | if (!empty($dependentProperty)) { |
186 | 186 | $dependentNavigationProperty = new TNavigationPropertyType(); |
187 | 187 | $dependentNavigationProperty->setName($dependentProperty); |
188 | - $dependentNavigationProperty->setToRole($principalEntitySetName . '_' . $principalProperty); |
|
189 | - $dependentNavigationProperty->setFromRole($dependentEntitySetName . '_' . $dependentProperty); |
|
188 | + $dependentNavigationProperty->setToRole($principalEntitySetName.'_'.$principalProperty); |
|
189 | + $dependentNavigationProperty->setFromRole($dependentEntitySetName.'_'.$dependentProperty); |
|
190 | 190 | $dependentNavigationProperty->setRelationship($relationFQName); |
191 | 191 | $dependentNavigationProperty->setGetterAccess($dependentGetterAccess); |
192 | 192 | $dependentNavigationProperty->setSetterAccess($dependentSetterAccess); |
@@ -251,13 +251,13 @@ discard block |
||
251 | 251 | } |
252 | 252 | if (!in_array($dependentMultiplicity, $multCombo[$principalMultiplicity])) { |
253 | 253 | throw new \InvalidArgumentException( |
254 | - 'Invalid multiplicity combination - ' . $principalMultiplicity . ' ' . $dependentMultiplicity |
|
254 | + 'Invalid multiplicity combination - '.$principalMultiplicity.' '.$dependentMultiplicity |
|
255 | 255 | ); |
256 | 256 | } |
257 | 257 | |
258 | 258 | $namespace = $this->getNamespace(); |
259 | - $principalTypeFQName = $namespace . $principalType->getName(); |
|
260 | - $dependentTypeFQName = $namespace . $dependentType->getName(); |
|
259 | + $principalTypeFQName = $namespace.$principalType->getName(); |
|
260 | + $dependentTypeFQName = $namespace.$dependentType->getName(); |
|
261 | 261 | $association = new TAssociationType(); |
262 | 262 | $relationship = $principalNavigationProperty->getRelationship(); |
263 | 263 | if (false !== strpos($relationship, '.')) { |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | $name = $association->getName(); |
313 | 313 | $as->setName($name); |
314 | 314 | $namespace = $this->getNamespace(); |
315 | - $associationSetName = $namespace . $association->getName(); |
|
315 | + $associationSetName = $namespace.$association->getName(); |
|
316 | 316 | $as->setAssociation($associationSetName); |
317 | 317 | $end1 = new EndAnonymousType(); |
318 | 318 | $end1->setRole($association->getEnd()[0]->getRole()); |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | |
373 | 373 | private function initSerialiser() |
374 | 374 | { |
375 | - $ymlDir = __DIR__ . DIRECTORY_SEPARATOR . 'MetadataV3' . DIRECTORY_SEPARATOR . 'JMSmetadata'; |
|
375 | + $ymlDir = __DIR__.DIRECTORY_SEPARATOR.'MetadataV3'.DIRECTORY_SEPARATOR.'JMSmetadata'; |
|
376 | 376 | $this->serializer = |
377 | 377 | SerializerBuilder::create() |
378 | 378 | ->addMetadataDir($ymlDir) |