@@ -76,7 +76,7 @@ |
||
76 | 76 | return false; |
77 | 77 | } |
78 | 78 | if (null != $this->baseType && !$this->isTQualifiedNameValid($this->baseType)) { |
79 | - $msg = 'Base type must be a valid TQualifiedName: ' . get_class($this); |
|
79 | + $msg = 'Base type must be a valid TQualifiedName: '.get_class($this); |
|
80 | 80 | return false; |
81 | 81 | } |
82 | 82 | return true; |
@@ -261,31 +261,31 @@ |
||
261 | 261 | public function isTFunctionImportParameterAttributesValid(&$msg = null) |
262 | 262 | { |
263 | 263 | if (!$this->isTSimpleIdentifierValid($this->name)) { |
264 | - $msg = 'Name must be a valid TSimpleIdentifier: ' . get_class($this); |
|
264 | + $msg = 'Name must be a valid TSimpleIdentifier: '.get_class($this); |
|
265 | 265 | return false; |
266 | 266 | } |
267 | 267 | if (!$this->isTFunctionImportParameterAndReturnTypeValid($this->type)) { |
268 | - $msg = 'Type must be a valid TFunctionImportParameterAndReturnType: ' . get_class($this); |
|
268 | + $msg = 'Type must be a valid TFunctionImportParameterAndReturnType: '.get_class($this); |
|
269 | 269 | return false; |
270 | 270 | } |
271 | 271 | if (null != $this->mode && !$this->isTParameterModeValid($this->mode)) { |
272 | - $msg = 'Mode must be a valid TParameterMode: ' . get_class($this); |
|
272 | + $msg = 'Mode must be a valid TParameterMode: '.get_class($this); |
|
273 | 273 | return false; |
274 | 274 | } |
275 | 275 | if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) { |
276 | - $msg = 'Max length must be a valid TMaxLengthFacet: ' . get_class($this); |
|
276 | + $msg = 'Max length must be a valid TMaxLengthFacet: '.get_class($this); |
|
277 | 277 | return false; |
278 | 278 | } |
279 | 279 | if (null != $this->precision && !$this->isTPrecisionFacetValid($this->precision)) { |
280 | - $msg = 'Precision must be a valid TPrecisionFacet: ' . get_class($this); |
|
280 | + $msg = 'Precision must be a valid TPrecisionFacet: '.get_class($this); |
|
281 | 281 | return false; |
282 | 282 | } |
283 | 283 | if (null != $this->scale && !$this->isTScaleFacetValid($this->scale)) { |
284 | - $msg = 'Scale must be a valid TScaleFacet: ' . get_class($this); |
|
284 | + $msg = 'Scale must be a valid TScaleFacet: '.get_class($this); |
|
285 | 285 | return false; |
286 | 286 | } |
287 | 287 | if (null != $this->sRID && !$this->isTSridFacetValid($this->sRID)) { |
288 | - $msg = 'SRID must be a valid TSRIDFacet: ' . get_class($this); |
|
288 | + $msg = 'SRID must be a valid TSRIDFacet: '.get_class($this); |
|
289 | 289 | return false; |
290 | 290 | } |
291 | 291 |
@@ -478,59 +478,59 @@ |
||
478 | 478 | public function isTCommonPropertyAttributesValid(&$msg = null) |
479 | 479 | { |
480 | 480 | if (!$this->isTSimpleIdentifierValid($this->name)) { |
481 | - $msg = 'Name must be a valid TSimpleIdentifier: ' . get_class($this); |
|
481 | + $msg = 'Name must be a valid TSimpleIdentifier: '.get_class($this); |
|
482 | 482 | return false; |
483 | 483 | } |
484 | 484 | if (!$this->isTPropertyTypeValid($this->type)) { |
485 | - $msg = 'Type must be a valid TPropertyType: ' . get_class($this); |
|
485 | + $msg = 'Type must be a valid TPropertyType: '.get_class($this); |
|
486 | 486 | return false; |
487 | 487 | } |
488 | 488 | if (null != $this->nullable && $this->nullable !== boolval($this->nullable)) { |
489 | - $msg = 'Nullable must be boolean: ' . get_class($this); |
|
489 | + $msg = 'Nullable must be boolean: '.get_class($this); |
|
490 | 490 | return false; |
491 | 491 | } |
492 | 492 | if (null != $this->defaultValue && !is_string($this->defaultValue)) { |
493 | - $msg = 'Default value must be a string: ' . get_class($this); |
|
493 | + $msg = 'Default value must be a string: '.get_class($this); |
|
494 | 494 | return false; |
495 | 495 | } |
496 | 496 | if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) { |
497 | - $msg = 'Max length must be a valid TMaxLengthFacet: ' . get_class($this); |
|
497 | + $msg = 'Max length must be a valid TMaxLengthFacet: '.get_class($this); |
|
498 | 498 | return false; |
499 | 499 | } |
500 | 500 | if (null != $this->fixedLength && !$this->isTIsFixedLengthFacetTraitValid($this->fixedLength)) { |
501 | - $msg = 'Max length must be a valid TFixedLengthFacet: ' . get_class($this); |
|
501 | + $msg = 'Max length must be a valid TFixedLengthFacet: '.get_class($this); |
|
502 | 502 | return false; |
503 | 503 | } |
504 | 504 | if (null != $this->precision && !$this->isTPrecisionFacetValid($this->precision)) { |
505 | - $msg = 'Precision must be a valid TPrecisionFacet: ' . get_class($this); |
|
505 | + $msg = 'Precision must be a valid TPrecisionFacet: '.get_class($this); |
|
506 | 506 | return false; |
507 | 507 | } |
508 | 508 | if (null != $this->scale && !$this->isTScaleFacetValid($this->scale)) { |
509 | - $msg = 'Scale must be a valid TScaleFacet: ' . get_class($this); |
|
509 | + $msg = 'Scale must be a valid TScaleFacet: '.get_class($this); |
|
510 | 510 | return false; |
511 | 511 | } |
512 | 512 | if (null != $this->unicode && !$this->isTIsUnicodeFacetTraitValid($this->unicode)) { |
513 | - $msg = 'Unicode must be a valid TUnicodeFacet: ' . get_class($this); |
|
513 | + $msg = 'Unicode must be a valid TUnicodeFacet: '.get_class($this); |
|
514 | 514 | return false; |
515 | 515 | } |
516 | 516 | if (null != $this->collation && !$this->isTCollationFacetValid($this->collation)) { |
517 | - $msg = 'Collation must be a valid TCollationFacet: ' . get_class($this); |
|
517 | + $msg = 'Collation must be a valid TCollationFacet: '.get_class($this); |
|
518 | 518 | return false; |
519 | 519 | } |
520 | 520 | if (null != $this->sRID && !$this->isTSridFacetValid($this->sRID)) { |
521 | - $msg = 'SRID must be a valid TSridFacet: ' . get_class($this); |
|
521 | + $msg = 'SRID must be a valid TSridFacet: '.get_class($this); |
|
522 | 522 | return false; |
523 | 523 | } |
524 | 524 | if (null != $this->concurrencyMode && !$this->isTConcurrencyModeValid($this->concurrencyMode)) { |
525 | - $msg = 'ConcurrencyMode must be a valid TConcurrencyMode: ' . get_class($this); |
|
525 | + $msg = 'ConcurrencyMode must be a valid TConcurrencyMode: '.get_class($this); |
|
526 | 526 | return false; |
527 | 527 | } |
528 | 528 | if (null != $this->setterAccess && !$this->isTAccessOk($this->setterAccess)) { |
529 | - $msg = 'Setter access must be a valid TAccess: ' . get_class($this); |
|
529 | + $msg = 'Setter access must be a valid TAccess: '.get_class($this); |
|
530 | 530 | return false; |
531 | 531 | } |
532 | 532 | if (null != $this->getterAccess && !$this->isTAccessOk($this->getterAccess)) { |
533 | - $msg = 'Getter access must be a valid TAccess: ' . get_class($this); |
|
533 | + $msg = 'Getter access must be a valid TAccess: '.get_class($this); |
|
534 | 534 | return false; |
535 | 535 | } |
536 | 536 |
@@ -687,29 +687,29 @@ discard block |
||
687 | 687 | $counter += isset($this->$name) ? 1 : 0; |
688 | 688 | } |
689 | 689 | if (-1 < $this->gExpressionMinimum && $counter < $this->gExpressionMinimum) { |
690 | - $msg = $counter . ' fields not null. Need minimum of '.$this->gExpressionMinimum. ': ' |
|
690 | + $msg = $counter.' fields not null. Need minimum of '.$this->gExpressionMinimum.': ' |
|
691 | 691 | . get_class($this); |
692 | 692 | return false; |
693 | 693 | } |
694 | 694 | if (-1 < $this->gExpressionMaximum && $counter > $this->gExpressionMaximum) { |
695 | - $msg = $counter . ' fields not null. Need maximum of '.$this->gExpressionMaximum. ': ' |
|
695 | + $msg = $counter.' fields not null. Need maximum of '.$this->gExpressionMaximum.': ' |
|
696 | 696 | . get_class($this); |
697 | 697 | return false; |
698 | 698 | } |
699 | 699 | } |
700 | 700 | |
701 | 701 | if (null != $this->guid && !$this->isTGuidLiteralValid($this->guid)) { |
702 | - $msg = 'Guid must be a valid TGuidLiteral: ' . get_class($this); |
|
702 | + $msg = 'Guid must be a valid TGuidLiteral: '.get_class($this); |
|
703 | 703 | return false; |
704 | 704 | } |
705 | 705 | |
706 | 706 | if (null != $this->enum && !$this->isTQualifiedNameValid($this->enum)) { |
707 | - $msg = 'Enum must be a valid TQualifiedName: ' . get_class($this); |
|
707 | + $msg = 'Enum must be a valid TQualifiedName: '.get_class($this); |
|
708 | 708 | return false; |
709 | 709 | } |
710 | 710 | |
711 | 711 | if (null != $this->path && !$this->isTQualifiedNameValid($this->path)) { |
712 | - $msg = 'Path must be a valid TQualifiedName: ' . get_class($this); |
|
712 | + $msg = 'Path must be a valid TQualifiedName: '.get_class($this); |
|
713 | 713 | return false; |
714 | 714 | } |
715 | 715 | |
@@ -725,7 +725,7 @@ discard block |
||
725 | 725 | return false; |
726 | 726 | } |
727 | 727 | if (!$this->isObjectNullOrType($type, $this->$key)) { |
728 | - $msg = 'Type mismatch - should be ' . $type . ', is ' . get_class($this->$key) . ': ' . get_class($this); |
|
728 | + $msg = 'Type mismatch - should be '.$type.', is '.get_class($this->$key).': '.get_class($this); |
|
729 | 729 | return false; |
730 | 730 | } |
731 | 731 | } |
@@ -114,15 +114,15 @@ |
||
114 | 114 | public function isTEntitySetAttributesOK(&$msg = null) |
115 | 115 | { |
116 | 116 | if (null != $this->name && !$this->isTSimpleIdentifierValid($this->name)) { |
117 | - $msg = 'Name must be a valid TSimpleIdentifier: ' . get_class($this); |
|
117 | + $msg = 'Name must be a valid TSimpleIdentifier: '.get_class($this); |
|
118 | 118 | return false; |
119 | 119 | } |
120 | 120 | if (null != $this->entityType && !$this->isTQualifiedNameValid($this->entityType)) { |
121 | - $msg = 'Entity type must be a valid TQualifiedName: ' . get_class($this); |
|
121 | + $msg = 'Entity type must be a valid TQualifiedName: '.get_class($this); |
|
122 | 122 | return false; |
123 | 123 | } |
124 | 124 | if (null != $this->getterAccess && !$this->isTAccessOk($this->getterAccess)) { |
125 | - $msg = 'Getter access must be a valid TAccess: ' . get_class($this); |
|
125 | + $msg = 'Getter access must be a valid TAccess: '.get_class($this); |
|
126 | 126 | return false; |
127 | 127 | } |
128 | 128 |
@@ -46,11 +46,11 @@ |
||
46 | 46 | public function isTTypeAttributesValid(&$msg = null) |
47 | 47 | { |
48 | 48 | if (null == $this->name) { |
49 | - $msg = 'Name cannot be null: ' . get_class($this); |
|
49 | + $msg = 'Name cannot be null: '.get_class($this); |
|
50 | 50 | return false; |
51 | 51 | } |
52 | 52 | if (!$this->isTSimpleIdentifierValid($this->name)) { |
53 | - $msg = 'Name must be a valid TSimpleIdentifier: ' . get_class($this); |
|
53 | + $msg = 'Name must be a valid TSimpleIdentifier: '.get_class($this); |
|
54 | 54 | return false; |
55 | 55 | } |
56 | 56 |
@@ -314,47 +314,47 @@ |
||
314 | 314 | public function isGInlineExpressionsValid(&$msg = null) |
315 | 315 | { |
316 | 316 | if (null != $this->string && !is_string($this->string)) { |
317 | - $msg = 'String must be a string: ' . get_class($this); |
|
317 | + $msg = 'String must be a string: '.get_class($this); |
|
318 | 318 | return false; |
319 | 319 | } |
320 | 320 | if (null != $this->binary && !$this->hexBinary($this->binary)) { |
321 | - $msg = 'Binary must be hexadecimal: ' . get_class($this); |
|
321 | + $msg = 'Binary must be hexadecimal: '.get_class($this); |
|
322 | 322 | return false; |
323 | 323 | } |
324 | 324 | if (null != $this->int && $this->int !== intval($this->int)) { |
325 | - $msg = 'Integer must be integral: ' . get_class($this); |
|
325 | + $msg = 'Integer must be integral: '.get_class($this); |
|
326 | 326 | return false; |
327 | 327 | } |
328 | 328 | if (null != $this->float && $this->float !== floatval($this->float)) { |
329 | - $msg = 'Float must be floating-point: ' . get_class($this); |
|
329 | + $msg = 'Float must be floating-point: '.get_class($this); |
|
330 | 330 | return false; |
331 | 331 | } |
332 | 332 | if (null != $this->guid && !$this->isTGuidLiteralValid($this->guid)) { |
333 | - $msg = 'Guid must be valid GUID: ' . get_class($this); |
|
333 | + $msg = 'Guid must be valid GUID: '.get_class($this); |
|
334 | 334 | return false; |
335 | 335 | } |
336 | 336 | if (null != $this->bool && $this->bool !== boolval($this->bool)) { |
337 | - $msg = 'Bool must be boolean: ' . get_class($this); |
|
337 | + $msg = 'Bool must be boolean: '.get_class($this); |
|
338 | 338 | return false; |
339 | 339 | } |
340 | 340 | if (null != $this->decimal && $this->decimal !== floatval($this->decimal)) { |
341 | - $msg = 'Decimal must be decimal: ' . get_class($this); |
|
341 | + $msg = 'Decimal must be decimal: '.get_class($this); |
|
342 | 342 | return false; |
343 | 343 | } |
344 | 344 | if (null != $this->enum && !$this->isTQualifiedNameValid($this->enum)) { |
345 | - $msg = 'Enum must be a valid TQualifiedName: ' . get_class($this); |
|
345 | + $msg = 'Enum must be a valid TQualifiedName: '.get_class($this); |
|
346 | 346 | return false; |
347 | 347 | } |
348 | 348 | if (null != $this->path && !$this->isTQualifiedNameValid($this->path)) { |
349 | - $msg = 'Path must be a valid TQualifiedName: ' . get_class($this); |
|
349 | + $msg = 'Path must be a valid TQualifiedName: '.get_class($this); |
|
350 | 350 | return false; |
351 | 351 | } |
352 | 352 | if (null != $this->dateTime && $this->dateTime !== $this->dateTime($this->dateTime)) { |
353 | - $msg = 'DateTime must be a valid date/time: ' . get_class($this); |
|
353 | + $msg = 'DateTime must be a valid date/time: '.get_class($this); |
|
354 | 354 | return false; |
355 | 355 | } |
356 | 356 | if (null != $this->dateTimeOffset && $this->dateTimeOffset !== $this->dateTime($this->dateTimeOffset)) { |
357 | - $msg = 'DateTimeOffset must be a valid date/time: ' . get_class($this); |
|
357 | + $msg = 'DateTimeOffset must be a valid date/time: '.get_class($this); |
|
358 | 358 | return false; |
359 | 359 | } |
360 | 360 |
@@ -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 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | private function checkEdmxSerialiseDeserialiseRoundTrip($ds, $edmx, $msg) |
68 | 68 | { |
69 | - $ymlDir = dirname(__DIR__) . $ds . 'src' . $ds . 'MetadataV3' . $ds . 'JMSmetadata'; |
|
69 | + $ymlDir = dirname(__DIR__).$ds.'src'.$ds.'MetadataV3'.$ds.'JMSmetadata'; |
|
70 | 70 | $serializer = |
71 | 71 | \JMS\Serializer\SerializerBuilder::create() |
72 | 72 | ->addMetadataDir($ymlDir) |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $this->assertNull($msg); |
114 | 114 | |
115 | 115 | |
116 | - $ymlDir = dirname(__DIR__) . $ds . 'src' . $ds . 'MetadataV3' . $ds . 'JMSmetadata'; |
|
116 | + $ymlDir = dirname(__DIR__).$ds.'src'.$ds.'MetadataV3'.$ds.'JMSmetadata'; |
|
117 | 117 | $serializer = |
118 | 118 | \JMS\Serializer\SerializerBuilder::create() |
119 | 119 | ->addMetadataDir($ymlDir) |
@@ -145,10 +145,10 @@ discard block |
||
145 | 145 | $ds = DIRECTORY_SEPARATOR; |
146 | 146 | $msg = null; |
147 | 147 | |
148 | - $docLocation = dirname(__DIR__) . $ds . 'tests' . $ds . 'exampleV3ServiceDocument.xml'; |
|
148 | + $docLocation = dirname(__DIR__).$ds.'tests'.$ds.'exampleV3ServiceDocument.xml'; |
|
149 | 149 | $document = file_get_contents($docLocation); |
150 | 150 | $type = 'AlgoWeb\ODataMetadata\MetadataV3\edmx\TDataServicesType'; |
151 | - $ymlDir = dirname(__DIR__) . $ds . 'src' . $ds . 'MetadataV3' . $ds . 'JMSmetadata'; |
|
151 | + $ymlDir = dirname(__DIR__).$ds.'src'.$ds.'MetadataV3'.$ds.'JMSmetadata'; |
|
152 | 152 | |
153 | 153 | $serializer = |
154 | 154 | \JMS\Serializer\SerializerBuilder::create() |
@@ -165,10 +165,10 @@ discard block |
||
165 | 165 | $ds = DIRECTORY_SEPARATOR; |
166 | 166 | $msg = null; |
167 | 167 | |
168 | - $docLocation = dirname(__DIR__) . $ds . 'tests' . $ds . 'exampleV3ServiceMetadata.xml'; |
|
168 | + $docLocation = dirname(__DIR__).$ds.'tests'.$ds.'exampleV3ServiceMetadata.xml'; |
|
169 | 169 | $document = file_get_contents($docLocation); |
170 | 170 | $type = 'AlgoWeb\ODataMetadata\MetadataV3\edmx\Edmx'; |
171 | - $ymlDir = dirname(__DIR__) . $ds . 'src' . $ds . 'MetadataV3' . $ds . 'JMSmetadata'; |
|
171 | + $ymlDir = dirname(__DIR__).$ds.'src'.$ds.'MetadataV3'.$ds.'JMSmetadata'; |
|
172 | 172 | |
173 | 173 | $serializer = |
174 | 174 | \JMS\Serializer\SerializerBuilder::create() |
@@ -186,11 +186,11 @@ discard block |
||
186 | 186 | $ds = DIRECTORY_SEPARATOR; |
187 | 187 | $msg = null; |
188 | 188 | |
189 | - $docLocation = dirname(__DIR__) . $ds . 'tests' . $ds . 'exampleV3ServiceMetadata.xml'; |
|
189 | + $docLocation = dirname(__DIR__).$ds.'tests'.$ds.'exampleV3ServiceMetadata.xml'; |
|
190 | 190 | $document = file_get_contents($docLocation); |
191 | 191 | $this->v3MetadataAgainstXSD($document); |
192 | 192 | $type = 'AlgoWeb\ODataMetadata\MetadataV3\edmx\Edmx'; |
193 | - $ymlDir = dirname(__DIR__) . $ds . 'src' . $ds . 'MetadataV3' . $ds . 'JMSmetadata'; |
|
193 | + $ymlDir = dirname(__DIR__).$ds.'src'.$ds.'MetadataV3'.$ds.'JMSmetadata'; |
|
194 | 194 | |
195 | 195 | $serializer = |
196 | 196 | \JMS\Serializer\SerializerBuilder::create() |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | $this->assertNull($msg); |
232 | 232 | |
233 | 233 | |
234 | - $ymlDir = dirname(__DIR__) . $ds . 'src' . $ds . 'MetadataV3' . $ds . 'JMSmetadata'; |
|
234 | + $ymlDir = dirname(__DIR__).$ds.'src'.$ds.'MetadataV3'.$ds.'JMSmetadata'; |
|
235 | 235 | $serializer = |
236 | 236 | \JMS\Serializer\SerializerBuilder::create() |
237 | 237 | ->addMetadataDir($ymlDir) |
@@ -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 |