@@ -467,20 +467,20 @@ |
||
467 | 467 | $pArray = []; |
468 | 468 | foreach ($this->getProperty() as $prop) { |
469 | 469 | if (in_array($prop->getName(), $pArray)) { |
470 | - $msg = "Property Names, and Navigation Property Must Be Unique " . __CLASS__; |
|
470 | + $msg = "Property Names, and Navigation Property Must Be Unique ".__CLASS__; |
|
471 | 471 | return false; |
472 | 472 | } |
473 | 473 | $pArray[] = $prop->getName(); |
474 | 474 | } |
475 | 475 | foreach ($this->getNavigationProperty() as $prop) { |
476 | 476 | if (in_array($prop->getName(), $pArray)) { |
477 | - $msg = "Property Names, and Navigation Property Must Be Unique " . __CLASS__; |
|
477 | + $msg = "Property Names, and Navigation Property Must Be Unique ".__CLASS__; |
|
478 | 478 | return false; |
479 | 479 | } |
480 | 480 | $pArray[] = $prop->getName(); |
481 | 481 | } |
482 | 482 | if (in_array($this->getName(), $pArray)) { |
483 | - $msg = "entity types can not contain a property with the same name " . __CLASS__; |
|
483 | + $msg = "entity types can not contain a property with the same name ".__CLASS__; |
|
484 | 484 | return false; |
485 | 485 | } |
486 | 486 | return true; |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | public function setName($name) |
83 | 83 | { |
84 | 84 | if (!$this->isTSimpleIdentifierValid($name)) { |
85 | - $msg = "Name(" . $name . ") must be a valid TSimpleIdentifier"; |
|
85 | + $msg = "Name(".$name.") must be a valid TSimpleIdentifier"; |
|
86 | 86 | throw new \InvalidArgumentException($msg); |
87 | 87 | } |
88 | 88 | $this->name = $name; |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | public function isOK(&$msg = null) |
398 | 398 | { |
399 | 399 | if (!$this->isTSimpleIdentifierValid($this->name)) { |
400 | - $msg = "Name(" . $this->name . ") must be a valid TSimpleIdentifier " . __FILE__ . ":" . __LINE__; |
|
400 | + $msg = "Name(".$this->name.") must be a valid TSimpleIdentifier ".__FILE__.":".__LINE__; |
|
401 | 401 | return false; |
402 | 402 | } |
403 | 403 | |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | } |
451 | 451 | foreach ($this->associationSet as $assocationSet) { |
452 | 452 | if (!in_array($assocationSet->getEnd()[0]->getEntitySet(), $entityNames)) { |
453 | - $msg = "The entitysets for assocations must have a valid entity set. " . $assocationSet->getName() . " Does not"; |
|
453 | + $msg = "The entitysets for assocations must have a valid entity set. ".$assocationSet->getName()." Does not"; |
|
454 | 454 | return false; |
455 | 455 | } |
456 | 456 | } |
@@ -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); |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | for ($i = 0; $i < 100; $i++) { |
32 | 32 | $actualMax = max($type->getRand(), $actualMax); |
33 | 33 | } |
34 | - $this->assertTrue($expectedMax >= $actualMax, $actualMax . " must be less than ".$expectedMax); |
|
34 | + $this->assertTrue($expectedMax >= $actualMax, $actualMax." must be less than ".$expectedMax); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | public function testGetRandMinimum() |
@@ -42,6 +42,6 @@ discard block |
||
42 | 42 | for ($i = 0; $i < 100; $i++) { |
43 | 43 | $actualMin = min($type->getRand(), $actualMin); |
44 | 44 | } |
45 | - $this->assertTrue($expectedMin <= $actualMin, $actualMin . " must be less than ".$expectedMin); |
|
45 | + $this->assertTrue($expectedMin <= $actualMin, $actualMin." must be less than ".$expectedMin); |
|
46 | 46 | } |
47 | 47 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | $edmx = new Edmx(); |
27 | 27 | $this->assertTrue($edmx->isOK($msg), $msg); |
28 | 28 | $this->assertNull($msg); |
29 | - $ymlDir = dirname(__DIR__) . $ds . "src" . $ds . "MetadataV3" . $ds . "JMSmetadata"; |
|
29 | + $ymlDir = dirname(__DIR__).$ds."src".$ds."MetadataV3".$ds."JMSmetadata"; |
|
30 | 30 | $serializer = |
31 | 31 | \JMS\Serializer\SerializerBuilder::create() |
32 | 32 | ->addMetadataDir($ymlDir) |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | { |
40 | 40 | $ds = DIRECTORY_SEPARATOR; |
41 | 41 | |
42 | - $goodxsd = dirname(__DIR__) . $ds . "xsd" . $ds . "Microsoft.Data.Entity.Design.Edmx_3.Fixed.xsd"; |
|
42 | + $goodxsd = dirname(__DIR__).$ds."xsd".$ds."Microsoft.Data.Entity.Design.Edmx_3.Fixed.xsd"; |
|
43 | 43 | if (!file_exists($goodxsd)) { |
44 | 44 | return true; |
45 | 45 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | private function checkEdmxSerialiseDeserialiseRoundTrip($ds, $edmx, $msg) |
67 | 67 | { |
68 | - $ymlDir = dirname(__DIR__) . $ds . "src" . $ds . "MetadataV3" . $ds . "JMSmetadata"; |
|
68 | + $ymlDir = dirname(__DIR__).$ds."src".$ds."MetadataV3".$ds."JMSmetadata"; |
|
69 | 69 | $serializer = |
70 | 70 | \JMS\Serializer\SerializerBuilder::create() |
71 | 71 | ->addMetadataDir($ymlDir) |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $this->assertNull($msg); |
113 | 113 | |
114 | 114 | |
115 | - $ymlDir = dirname(__DIR__) . $ds . "src" . $ds . "MetadataV3" . $ds . "JMSmetadata"; |
|
115 | + $ymlDir = dirname(__DIR__).$ds."src".$ds."MetadataV3".$ds."JMSmetadata"; |
|
116 | 116 | $serializer = |
117 | 117 | \JMS\Serializer\SerializerBuilder::create() |
118 | 118 | ->addMetadataDir($ymlDir) |
@@ -144,10 +144,10 @@ discard block |
||
144 | 144 | $ds = DIRECTORY_SEPARATOR; |
145 | 145 | $msg = null; |
146 | 146 | |
147 | - $docLocation = dirname(__DIR__) . $ds . "tests" . $ds . "exampleV3ServiceDocument.xml"; |
|
147 | + $docLocation = dirname(__DIR__).$ds."tests".$ds."exampleV3ServiceDocument.xml"; |
|
148 | 148 | $document = file_get_contents($docLocation); |
149 | 149 | $type = 'AlgoWeb\ODataMetadata\MetadataV3\edmx\TDataServicesType'; |
150 | - $ymlDir = dirname(__DIR__) . $ds . "src" . $ds . "MetadataV3" . $ds . "JMSmetadata"; |
|
150 | + $ymlDir = dirname(__DIR__).$ds."src".$ds."MetadataV3".$ds."JMSmetadata"; |
|
151 | 151 | |
152 | 152 | $serializer = |
153 | 153 | \JMS\Serializer\SerializerBuilder::create() |
@@ -164,10 +164,10 @@ discard block |
||
164 | 164 | $ds = DIRECTORY_SEPARATOR; |
165 | 165 | $msg = null; |
166 | 166 | |
167 | - $docLocation = dirname(__DIR__) . $ds . "tests" . $ds . "exampleV3ServiceMetadata.xml"; |
|
167 | + $docLocation = dirname(__DIR__).$ds."tests".$ds."exampleV3ServiceMetadata.xml"; |
|
168 | 168 | $document = file_get_contents($docLocation); |
169 | 169 | $type = 'AlgoWeb\ODataMetadata\MetadataV3\edmx\Edmx'; |
170 | - $ymlDir = dirname(__DIR__) . $ds . "src" . $ds . "MetadataV3" . $ds . "JMSmetadata"; |
|
170 | + $ymlDir = dirname(__DIR__).$ds."src".$ds."MetadataV3".$ds."JMSmetadata"; |
|
171 | 171 | |
172 | 172 | $serializer = |
173 | 173 | \JMS\Serializer\SerializerBuilder::create() |
@@ -185,11 +185,11 @@ discard block |
||
185 | 185 | $ds = DIRECTORY_SEPARATOR; |
186 | 186 | $msg = null; |
187 | 187 | |
188 | - $docLocation = dirname(__DIR__) . $ds . "tests" . $ds . "exampleV3ServiceMetadata.xml"; |
|
188 | + $docLocation = dirname(__DIR__).$ds."tests".$ds."exampleV3ServiceMetadata.xml"; |
|
189 | 189 | $document = file_get_contents($docLocation); |
190 | 190 | $this->v3MetadataAgainstXSD($document); |
191 | 191 | $type = 'AlgoWeb\ODataMetadata\MetadataV3\edmx\Edmx'; |
192 | - $ymlDir = dirname(__DIR__) . $ds . "src" . $ds . "MetadataV3" . $ds . "JMSmetadata"; |
|
192 | + $ymlDir = dirname(__DIR__).$ds."src".$ds."MetadataV3".$ds."JMSmetadata"; |
|
193 | 193 | |
194 | 194 | $serializer = |
195 | 195 | \JMS\Serializer\SerializerBuilder::create() |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | $this->assertNull($msg); |
231 | 231 | |
232 | 232 | |
233 | - $ymlDir = dirname(__DIR__) . $ds . "src" . $ds . "MetadataV3" . $ds . "JMSmetadata"; |
|
233 | + $ymlDir = dirname(__DIR__).$ds."src".$ds."MetadataV3".$ds."JMSmetadata"; |
|
234 | 234 | $serializer = |
235 | 235 | \JMS\Serializer\SerializerBuilder::create() |
236 | 236 | ->addMetadataDir($ymlDir) |
@@ -308,7 +308,7 @@ |
||
308 | 308 | } |
309 | 309 | foreach ($this->returnType as $type) { |
310 | 310 | if (!is_string($type) || !$this->isTCommandTextValid($type)) { |
311 | - $msg = implode($type) . " must be a valid TCommandText"; |
|
311 | + $msg = implode($type)." must be a valid TCommandText"; |
|
312 | 312 | return false; |
313 | 313 | } |
314 | 314 | } |
@@ -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()); |
@@ -610,7 +610,7 @@ discard block |
||
610 | 610 | { |
611 | 611 | list(, $metadataManager, $CategoryType, $CustomerType) = $this->setUpMetadataForNavTests(); |
612 | 612 | |
613 | - $expected = "Invalid multiplicity combination - 1 1"; |
|
613 | + $expected = "Invalid multiplicity combination - 1 1"; |
|
614 | 614 | $actual = null; |
615 | 615 | |
616 | 616 | try { |
@@ -632,7 +632,7 @@ discard block |
||
632 | 632 | { |
633 | 633 | list(, $metadataManager, $CategoryType, $CustomerType) = $this->setUpMetadataForNavTests(); |
634 | 634 | |
635 | - $expected = "Invalid multiplicity combination - * 0..1"; |
|
635 | + $expected = "Invalid multiplicity combination - * 0..1"; |
|
636 | 636 | $actual = null; |
637 | 637 | |
638 | 638 | try { |
@@ -652,7 +652,7 @@ discard block |
||
652 | 652 | |
653 | 653 | public function testAddComplexType() |
654 | 654 | { |
655 | - list(, $metadataManager, , ) = $this->setUpMetadataForNavTests(); |
|
655 | + list(, $metadataManager,,) = $this->setUpMetadataForNavTests(); |
|
656 | 656 | |
657 | 657 | $name = "Name"; |
658 | 658 | $accessType = "Public"; |
@@ -664,7 +664,7 @@ discard block |
||
664 | 664 | $result = $metadataManager->addComplexType($name, $accessType, $summary, $longDescription); |
665 | 665 | |
666 | 666 | $newCount = count($metadataManager->getEdmx()->getDataServiceType()->getSchema()[0]->getComplexType()); |
667 | - $this->assertEquals($oldCount+1, $newCount); |
|
667 | + $this->assertEquals($oldCount + 1, $newCount); |
|
668 | 668 | $this->assertNotNull($result); |
669 | 669 | $this->assertTrue($result instanceof TComplexTypeType, get_class($result)); |
670 | 670 | $this->assertNotNull($result->getDocumentation()); |
@@ -672,7 +672,7 @@ discard block |
||
672 | 672 | |
673 | 673 | public function testAddComplexTypeWithOnlySummary() |
674 | 674 | { |
675 | - list(, $metadataManager, , ) = $this->setUpMetadataForNavTests(); |
|
675 | + list(, $metadataManager,,) = $this->setUpMetadataForNavTests(); |
|
676 | 676 | |
677 | 677 | $name = "Name"; |
678 | 678 | $accessType = "Public"; |
@@ -684,7 +684,7 @@ discard block |
||
684 | 684 | $result = $metadataManager->addComplexType($name, $accessType, $summary, $longDescription); |
685 | 685 | |
686 | 686 | $newCount = count($metadataManager->getEdmx()->getDataServiceType()->getSchema()[0]->getComplexType()); |
687 | - $this->assertEquals($oldCount+1, $newCount); |
|
687 | + $this->assertEquals($oldCount + 1, $newCount); |
|
688 | 688 | $this->assertNotNull($result); |
689 | 689 | $this->assertTrue($result instanceof TComplexTypeType, get_class($result)); |
690 | 690 | $this->assertNull($result->getDocumentation()); |
@@ -692,7 +692,7 @@ discard block |
||
692 | 692 | |
693 | 693 | public function testAddComplexTypeWithOnlyDescription() |
694 | 694 | { |
695 | - list(, $metadataManager, , ) = $this->setUpMetadataForNavTests(); |
|
695 | + list(, $metadataManager,,) = $this->setUpMetadataForNavTests(); |
|
696 | 696 | |
697 | 697 | $name = "Name"; |
698 | 698 | $accessType = "Public"; |
@@ -704,7 +704,7 @@ discard block |
||
704 | 704 | $result = $metadataManager->addComplexType($name, $accessType, $summary, $longDescription); |
705 | 705 | |
706 | 706 | $newCount = count($metadataManager->getEdmx()->getDataServiceType()->getSchema()[0]->getComplexType()); |
707 | - $this->assertEquals($oldCount+1, $newCount); |
|
707 | + $this->assertEquals($oldCount + 1, $newCount); |
|
708 | 708 | $this->assertNotNull($result); |
709 | 709 | $this->assertTrue($result instanceof TComplexTypeType, get_class($result)); |
710 | 710 | $this->assertNull($result->getDocumentation()); |
@@ -715,7 +715,7 @@ discard block |
||
715 | 715 | $expected = "Default value cannot be object or array"; |
716 | 716 | $actual = null; |
717 | 717 | |
718 | - list(, $metadataManager, , ) = $this->setUpMetadataForNavTests(); |
|
718 | + list(, $metadataManager,,) = $this->setUpMetadataForNavTests(); |
|
719 | 719 | $complex = m::mock(TComplexTypeType::class); |
720 | 720 | $name = "name"; |
721 | 721 | $type = "type"; |
@@ -734,7 +734,7 @@ discard block |
||
734 | 734 | $expected = "Default value cannot be object or array"; |
735 | 735 | $actual = null; |
736 | 736 | |
737 | - list(, $metadataManager, , ) = $this->setUpMetadataForNavTests(); |
|
737 | + list(, $metadataManager,,) = $this->setUpMetadataForNavTests(); |
|
738 | 738 | $complex = m::mock(TComplexTypeType::class); |
739 | 739 | $name = "name"; |
740 | 740 | $type = "type"; |
@@ -750,7 +750,7 @@ discard block |
||
750 | 750 | |
751 | 751 | public function testAddPropertyToComplexTypeDefaultValueBoolean() |
752 | 752 | { |
753 | - list(, $metadataManager, , ) = $this->setUpMetadataForNavTests(); |
|
753 | + list(, $metadataManager,,) = $this->setUpMetadataForNavTests(); |
|
754 | 754 | $complex = m::mock(TComplexTypeType::class); |
755 | 755 | $complex->shouldReceive('addToProperty') |
756 | 756 | ->with(m::type(TComplexTypePropertyType::class))->andReturnNull()->once(); |
@@ -776,7 +776,7 @@ discard block |
||
776 | 776 | |
777 | 777 | public function testAddPropertyToComplexTypeDefaultValueBooleanOnlySummary() |
778 | 778 | { |
779 | - list(, $metadataManager, , ) = $this->setUpMetadataForNavTests(); |
|
779 | + list(, $metadataManager,,) = $this->setUpMetadataForNavTests(); |
|
780 | 780 | $complex = m::mock(TComplexTypeType::class); |
781 | 781 | $complex->shouldReceive('addToProperty') |
782 | 782 | ->with(m::type(TComplexTypePropertyType::class))->andReturnNull()->once(); |
@@ -803,7 +803,7 @@ discard block |
||
803 | 803 | |
804 | 804 | public function testAddPropertyToComplexTypeDefaultValueBooleanOnlyDescription() |
805 | 805 | { |
806 | - list(, $metadataManager, , ) = $this->setUpMetadataForNavTests(); |
|
806 | + list(, $metadataManager,,) = $this->setUpMetadataForNavTests(); |
|
807 | 807 | $complex = m::mock(TComplexTypeType::class); |
808 | 808 | $complex->shouldReceive('addToProperty') |
809 | 809 | ->with(m::type(TComplexTypePropertyType::class))->andReturnNull()->once(); |
@@ -922,7 +922,7 @@ discard block |
||
922 | 922 | $longDescription = new TTextType(); |
923 | 923 | |
924 | 924 | $metadataManager = new MetadataManager(); |
925 | - list($result, ) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
|
925 | + list($result,) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
|
926 | 926 | $this->assertNotNull($result->getDocumentation()); |
927 | 927 | } |
928 | 928 | |
@@ -934,7 +934,7 @@ discard block |
||
934 | 934 | $longDescription = null; |
935 | 935 | |
936 | 936 | $metadataManager = new MetadataManager(); |
937 | - list($result, ) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
|
937 | + list($result,) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
|
938 | 938 | $this->assertNull($result->getDocumentation()); |
939 | 939 | } |
940 | 940 | |
@@ -946,7 +946,7 @@ discard block |
||
946 | 946 | $longDescription = new TTextType(); |
947 | 947 | |
948 | 948 | $metadataManager = new MetadataManager(); |
949 | - list($result, ) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
|
949 | + list($result,) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
|
950 | 950 | $this->assertNull($result->getDocumentation()); |
951 | 951 | } |
952 | 952 |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | public function isTFunctionImportAttributesValid(&$msg) |
266 | 266 | { |
267 | 267 | if (!$this->isTSimpleIdentifierValid($this->name)) { |
268 | - $msg = "Name must be a valid TSimpleIdentifier: " . get_class($this); |
|
268 | + $msg = "Name must be a valid TSimpleIdentifier: ".get_class($this); |
|
269 | 269 | return false; |
270 | 270 | } |
271 | 271 | if ($this->isComposable && $this->isSideEffecting) { |
@@ -278,11 +278,11 @@ discard block |
||
278 | 278 | return false; |
279 | 279 | }*/ |
280 | 280 | if (!$this->isObjectNullOrType('\AlgoWeb\ODataMetadata\MetadataV3\edm\TOperandType', $this->entitySet)) { |
281 | - $msg = "Entity set must be either null or an instance of TOperandType: " . get_class($this); |
|
281 | + $msg = "Entity set must be either null or an instance of TOperandType: ".get_class($this); |
|
282 | 282 | return false; |
283 | 283 | } |
284 | 284 | if (null != $this->methodAccess && !$this->isTAccessOk($this->methodAccess)) { |
285 | - $msg = "Method access must be a valid TAccess: " . get_class($this); |
|
285 | + $msg = "Method access must be a valid TAccess: ".get_class($this); |
|
286 | 286 | return false; |
287 | 287 | } |
288 | 288 | if (!$this->isValidArrayOK( |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | /** |
94 | 94 | * isset returnType |
95 | 95 | * |
96 | - * @param scalar $index |
|
96 | + * @param integer $index |
|
97 | 97 | * @return boolean |
98 | 98 | */ |
99 | 99 | public function issetReturnType($index) |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | /** |
105 | 105 | * unset returnType |
106 | 106 | * |
107 | - * @param scalar $index |
|
107 | + * @param integer $index |
|
108 | 108 | * @return void |
109 | 109 | */ |
110 | 110 | public function unsetReturnType($index) |
@@ -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 | { |