@@ -188,14 +188,14 @@ discard block |
||
| 188 | 188 | { |
| 189 | 189 | $bar = m::mock(testType::class); |
| 190 | 190 | // closure needs to return true to match the matcher and thus trip the andReturn(false) bit |
| 191 | - $bar->shouldReceive('isOK')->with(m::on(function (&$msg) { |
|
| 191 | + $bar->shouldReceive('isOK')->with(m::on(function(&$msg) { |
|
| 192 | 192 | $msg = 'OH NOES!'; |
| 193 | 193 | return true; |
| 194 | 194 | }))->andReturn(false); |
| 195 | 195 | |
| 196 | 196 | $msg = null; |
| 197 | 197 | $expected = "OH NOES!"; |
| 198 | - $arr = [ $bar ]; |
|
| 198 | + $arr = [$bar]; |
|
| 199 | 199 | |
| 200 | 200 | $foo = new testType(); |
| 201 | 201 | $this->assertFalse($foo->isChildArrayOK($arr, $msg), $msg); |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | $msg = null; |
| 248 | 248 | $obj = m::mock(testType::class); |
| 249 | 249 | // closure needs to return true to match the matcher and thus trip the andReturn(false) bit |
| 250 | - $obj->shouldReceive('isOK')->with(m::on(function (&$msg) { |
|
| 250 | + $obj->shouldReceive('isOK')->with(m::on(function(&$msg) { |
|
| 251 | 251 | $msg = null; |
| 252 | 252 | return true; |
| 253 | 253 | }))->andReturn(true); |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | $msg = null; |
| 261 | 261 | $obj = m::mock(testType::class); |
| 262 | 262 | // closure needs to return true to match the matcher and thus trip the andReturn(false) bit |
| 263 | - $obj->shouldReceive('isOK')->with(m::on(function (&$msg) { |
|
| 263 | + $obj->shouldReceive('isOK')->with(m::on(function(&$msg) { |
|
| 264 | 264 | $msg = 'OH NOES!'; |
| 265 | 265 | return true; |
| 266 | 266 | }))->andReturn(false); |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | { |
| 286 | 286 | $foo = m::mock(testType::class)->makePartial(); |
| 287 | 287 | $foo->shouldReceive('isValidArray')->withAnyArgs()->andReturn(true); |
| 288 | - $foo->shouldReceive('isChildArrayOK')->with(m::any(), m::on(function (&$msg) { |
|
| 288 | + $foo->shouldReceive('isChildArrayOK')->with(m::any(), m::on(function(&$msg) { |
|
| 289 | 289 | $msg = 'OH NOES!'; |
| 290 | 290 | return true; |
| 291 | 291 | }))->andReturn(false); |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | { |
| 300 | 300 | $foo = m::mock(testType::class)->makePartial(); |
| 301 | 301 | $foo->shouldReceive('isValidArray')->withAnyArgs()->andReturn(true); |
| 302 | - $foo->shouldReceive('isChildArrayOK')->with(m::any(), m::on(function (&$msg) { |
|
| 302 | + $foo->shouldReceive('isChildArrayOK')->with(m::any(), m::on(function(&$msg) { |
|
| 303 | 303 | $msg = null; |
| 304 | 304 | return true; |
| 305 | 305 | }))->andReturn(true); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | public function isTGenerationPatternValid($string) |
| 12 | 12 | { |
| 13 | 13 | if (!is_string($string)) { |
| 14 | - $msg = "Input must be a string: " . get_class($this); |
|
| 14 | + $msg = "Input must be a string: ".get_class($this); |
|
| 15 | 15 | throw new \InvalidArgumentException($msg); |
| 16 | 16 | } |
| 17 | 17 | return 'None' == $string || 'Identity' == $string || 'Computed' == $string; |
@@ -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 | |
@@ -365,47 +365,47 @@ |
||
| 365 | 365 | public function isGInlineExpressionsValid(&$msg = null) |
| 366 | 366 | { |
| 367 | 367 | if (null != $this->string && !is_string($this->string)) { |
| 368 | - $msg = "String must be a string: " . get_class($this); |
|
| 368 | + $msg = "String must be a string: ".get_class($this); |
|
| 369 | 369 | return false; |
| 370 | 370 | } |
| 371 | 371 | if (null != $this->binary && !$this->hexBinary($this->binary)) { |
| 372 | - $msg = "Binary must be hexadecimal: " . get_class($this); |
|
| 372 | + $msg = "Binary must be hexadecimal: ".get_class($this); |
|
| 373 | 373 | return false; |
| 374 | 374 | } |
| 375 | 375 | if (null != $this->int && $this->int !== intval($this->int)) { |
| 376 | - $msg = "Integer must be integral: " . get_class($this); |
|
| 376 | + $msg = "Integer must be integral: ".get_class($this); |
|
| 377 | 377 | return false; |
| 378 | 378 | } |
| 379 | 379 | if (null != $this->float && $this->float !== floatval($this->float)) { |
| 380 | - $msg = "Float must be floating-point: " . get_class($this); |
|
| 380 | + $msg = "Float must be floating-point: ".get_class($this); |
|
| 381 | 381 | return false; |
| 382 | 382 | } |
| 383 | 383 | if (null != $this->guid && !$this->isTGuidLiteralValid($this->guid)) { |
| 384 | - $msg = "Guid must be valid GUID: " . get_class($this); |
|
| 384 | + $msg = "Guid must be valid GUID: ".get_class($this); |
|
| 385 | 385 | return false; |
| 386 | 386 | } |
| 387 | 387 | if (null != $this->bool && $this->bool !== boolval($this->bool)) { |
| 388 | - $msg = "Bool must be boolean: " . get_class($this); |
|
| 388 | + $msg = "Bool must be boolean: ".get_class($this); |
|
| 389 | 389 | return false; |
| 390 | 390 | } |
| 391 | 391 | if (null != $this->decimal && $this->decimal !== floatval($this->decimal)) { |
| 392 | - $msg = "Decimal must be decimal: " . get_class($this); |
|
| 392 | + $msg = "Decimal must be decimal: ".get_class($this); |
|
| 393 | 393 | return false; |
| 394 | 394 | } |
| 395 | 395 | if (null != $this->enum && !$this->isTQualifiedNameValid($this->enum)) { |
| 396 | - $msg = "Enum must be a valid TQualifiedName: " . get_class($this); |
|
| 396 | + $msg = "Enum must be a valid TQualifiedName: ".get_class($this); |
|
| 397 | 397 | return false; |
| 398 | 398 | } |
| 399 | 399 | if (null != $this->path && !$this->isTQualifiedNameValid($this->path)) { |
| 400 | - $msg = "Path must be a valid TQualifiedName: " . get_class($this); |
|
| 400 | + $msg = "Path must be a valid TQualifiedName: ".get_class($this); |
|
| 401 | 401 | return false; |
| 402 | 402 | } |
| 403 | 403 | if (null != $this->dateTime && $this->dateTime !== $this->dateTime($this->dateTime)) { |
| 404 | - $msg = "DateTime must be a valid date/time: " . get_class($this); |
|
| 404 | + $msg = "DateTime must be a valid date/time: ".get_class($this); |
|
| 405 | 405 | return false; |
| 406 | 406 | } |
| 407 | 407 | if (null != $this->dateTimeOffset && $this->dateTimeOffset !== $this->dateTime($this->dateTimeOffset)) { |
| 408 | - $msg = "DateTimeOffset must be a valid date/time: " . get_class($this); |
|
| 408 | + $msg = "DateTimeOffset must be a valid date/time: ".get_class($this); |
|
| 409 | 409 | return false; |
| 410 | 410 | } |
| 411 | 411 | |
@@ -242,31 +242,31 @@ |
||
| 242 | 242 | public function isTFunctionImportParameterAttributesValid(&$msg = null) |
| 243 | 243 | { |
| 244 | 244 | if (!$this->isTSimpleIdentifierValid($this->name)) { |
| 245 | - $msg = "Name must be a valid TSimpleIdentifier: " . get_class($this); |
|
| 245 | + $msg = "Name must be a valid TSimpleIdentifier: ".get_class($this); |
|
| 246 | 246 | return false; |
| 247 | 247 | } |
| 248 | 248 | if (!$this->isTFunctionImportParameterAndReturnTypeValid($this->type)) { |
| 249 | - $msg = "Type must be a valid TFunctionImportParameterAndReturnType: " . get_class($this); |
|
| 249 | + $msg = "Type must be a valid TFunctionImportParameterAndReturnType: ".get_class($this); |
|
| 250 | 250 | return false; |
| 251 | 251 | } |
| 252 | 252 | if (null != $this->mode && !$this->isTParameterModeValid($this->mode)) { |
| 253 | - $msg = "Mode must be a valid TParameterMode: " . get_class($this); |
|
| 253 | + $msg = "Mode must be a valid TParameterMode: ".get_class($this); |
|
| 254 | 254 | return false; |
| 255 | 255 | } |
| 256 | 256 | if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) { |
| 257 | - $msg = "Max length must be a valid TMaxLengthFacet: " . get_class($this); |
|
| 257 | + $msg = "Max length must be a valid TMaxLengthFacet: ".get_class($this); |
|
| 258 | 258 | return false; |
| 259 | 259 | } |
| 260 | 260 | if (null != $this->precision && !$this->isTPrecisionFacetValid($this->precision)) { |
| 261 | - $msg = "Precision must be a valid TPrecisionFacet: " . get_class($this); |
|
| 261 | + $msg = "Precision must be a valid TPrecisionFacet: ".get_class($this); |
|
| 262 | 262 | return false; |
| 263 | 263 | } |
| 264 | 264 | if (null != $this->scale && !$this->isTScaleFacetValid($this->scale)) { |
| 265 | - $msg = "Scale must be a valid TScaleFacet: " . get_class($this); |
|
| 265 | + $msg = "Scale must be a valid TScaleFacet: ".get_class($this); |
|
| 266 | 266 | return false; |
| 267 | 267 | } |
| 268 | 268 | if (null != $this->sRID && !$this->isTSridFacetValid($this->sRID)) { |
| 269 | - $msg = "SRID must be a valid TSRIDFacet: " . get_class($this); |
|
| 269 | + $msg = "SRID must be a valid TSRIDFacet: ".get_class($this); |
|
| 270 | 270 | return false; |
| 271 | 271 | } |
| 272 | 272 | |
@@ -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; |
@@ -301,39 +301,39 @@ |
||
| 301 | 301 | public function isTFacetAttributesTraitValid(&$msg = null) |
| 302 | 302 | { |
| 303 | 303 | if ($this->nullable !== boolval($this->nullable)) { |
| 304 | - $msg = "Nullable must be boolean: " . get_class($this); |
|
| 304 | + $msg = "Nullable must be boolean: ".get_class($this); |
|
| 305 | 305 | return false; |
| 306 | 306 | } |
| 307 | 307 | if (null != $this->defaultValue && !is_string($this->defaultValue)) { |
| 308 | - $msg = "Default value must be a string: " . get_class($this); |
|
| 308 | + $msg = "Default value must be a string: ".get_class($this); |
|
| 309 | 309 | return false; |
| 310 | 310 | } |
| 311 | 311 | if (null != $this->collation && !$this->isTCollationFacetValid($this->collation)) { |
| 312 | - $msg = "Collation must be a valid TCollationFacet: " . get_class($this); |
|
| 312 | + $msg = "Collation must be a valid TCollationFacet: ".get_class($this); |
|
| 313 | 313 | return false; |
| 314 | 314 | } |
| 315 | 315 | if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) { |
| 316 | - $msg = "Max length must be a valid TMaxLengthFacet: " . get_class($this); |
|
| 316 | + $msg = "Max length must be a valid TMaxLengthFacet: ".get_class($this); |
|
| 317 | 317 | return false; |
| 318 | 318 | } |
| 319 | 319 | if (null != $this->fixedLength && !$this->isTIsFixedLengthFacetTraitValid($this->fixedLength)) { |
| 320 | - $msg = "Fixed length must be a valid TFixedLengthFacet: " . get_class($this); |
|
| 320 | + $msg = "Fixed length must be a valid TFixedLengthFacet: ".get_class($this); |
|
| 321 | 321 | return false; |
| 322 | 322 | } |
| 323 | 323 | if (null != $this->precision && !$this->isTPrecisionFacetValid($this->precision)) { |
| 324 | - $msg = "Precision must be a valid TPrecisionFacet: " . get_class($this); |
|
| 324 | + $msg = "Precision must be a valid TPrecisionFacet: ".get_class($this); |
|
| 325 | 325 | return false; |
| 326 | 326 | } |
| 327 | 327 | if (null != $this->scale && !$this->isTScaleFacetValid($this->scale)) { |
| 328 | - $msg = "Scale must be a valid TScaleFacet: " . get_class($this); |
|
| 328 | + $msg = "Scale must be a valid TScaleFacet: ".get_class($this); |
|
| 329 | 329 | return false; |
| 330 | 330 | } |
| 331 | 331 | if (null != $this->sRID && !$this->isTSridFacetValid($this->sRID)) { |
| 332 | - $msg = "SRID must be a valid TSridFacet: " . get_class($this); |
|
| 332 | + $msg = "SRID must be a valid TSridFacet: ".get_class($this); |
|
| 333 | 333 | return false; |
| 334 | 334 | } |
| 335 | 335 | if (null != $this->unicode && !$this->isTIsUnicodeFacetTraitValid($this->unicode)) { |
| 336 | - $msg = "Unicode must be a valid TUnicodeFacet: " . get_class($this); |
|
| 336 | + $msg = "Unicode must be a valid TUnicodeFacet: ".get_class($this); |
|
| 337 | 337 | return false; |
| 338 | 338 | } |
| 339 | 339 | |
@@ -476,59 +476,59 @@ |
||
| 476 | 476 | public function isTCommonPropertyAttributesValid(&$msg = null) |
| 477 | 477 | { |
| 478 | 478 | if (!$this->isTSimpleIdentifierValid($this->name)) { |
| 479 | - $msg = "Name must be a valid TSimpleIdentifier: " . get_class($this); |
|
| 479 | + $msg = "Name must be a valid TSimpleIdentifier: ".get_class($this); |
|
| 480 | 480 | return false; |
| 481 | 481 | } |
| 482 | 482 | if (!$this->isTPropertyTypeValid($this->type)) { |
| 483 | - $msg = "Type must be a valid TPropertyType: " . get_class($this); |
|
| 483 | + $msg = "Type must be a valid TPropertyType: ".get_class($this); |
|
| 484 | 484 | return false; |
| 485 | 485 | } |
| 486 | 486 | if (null != $this->nullable && $this->nullable !== boolval($this->nullable)) { |
| 487 | - $msg = "Nullable must be boolean: " . get_class($this); |
|
| 487 | + $msg = "Nullable must be boolean: ".get_class($this); |
|
| 488 | 488 | return false; |
| 489 | 489 | } |
| 490 | 490 | if (null != $this->defaultValue && !is_string($this->defaultValue)) { |
| 491 | - $msg = "Default value must be a string: " . get_class($this); |
|
| 491 | + $msg = "Default value must be a string: ".get_class($this); |
|
| 492 | 492 | return false; |
| 493 | 493 | } |
| 494 | 494 | if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) { |
| 495 | - $msg = "Max length must be a valid TMaxLengthFacet: " . get_class($this); |
|
| 495 | + $msg = "Max length must be a valid TMaxLengthFacet: ".get_class($this); |
|
| 496 | 496 | return false; |
| 497 | 497 | } |
| 498 | 498 | if (null != $this->fixedLength && !$this->isTIsFixedLengthFacetTraitValid($this->fixedLength)) { |
| 499 | - $msg = "Max length must be a valid TFixedLengthFacet: " . get_class($this); |
|
| 499 | + $msg = "Max length must be a valid TFixedLengthFacet: ".get_class($this); |
|
| 500 | 500 | return false; |
| 501 | 501 | } |
| 502 | 502 | if (null != $this->precision && !$this->isTPrecisionFacetValid($this->precision)) { |
| 503 | - $msg = "Precision must be a valid TPrecisionFacet: " . get_class($this); |
|
| 503 | + $msg = "Precision must be a valid TPrecisionFacet: ".get_class($this); |
|
| 504 | 504 | return false; |
| 505 | 505 | } |
| 506 | 506 | if (null != $this->scale && !$this->isTScaleFacetValid($this->scale)) { |
| 507 | - $msg = "Scale must be a valid TScaleFacet: " . get_class($this); |
|
| 507 | + $msg = "Scale must be a valid TScaleFacet: ".get_class($this); |
|
| 508 | 508 | return false; |
| 509 | 509 | } |
| 510 | 510 | if (null != $this->unicode && !$this->isTIsUnicodeFacetTraitValid($this->unicode)) { |
| 511 | - $msg = "Unicode must be a valid TUnicodeFacet: " . get_class($this); |
|
| 511 | + $msg = "Unicode must be a valid TUnicodeFacet: ".get_class($this); |
|
| 512 | 512 | return false; |
| 513 | 513 | } |
| 514 | 514 | if (null != $this->collation && !$this->isTCollationFacetValid($this->collation)) { |
| 515 | - $msg = "Collation must be a valid TCollationFacet: " . get_class($this); |
|
| 515 | + $msg = "Collation must be a valid TCollationFacet: ".get_class($this); |
|
| 516 | 516 | return false; |
| 517 | 517 | } |
| 518 | 518 | if (null != $this->sRID && !$this->isTSridFacetValid($this->sRID)) { |
| 519 | - $msg = "SRID must be a valid TSridFacet: " . get_class($this); |
|
| 519 | + $msg = "SRID must be a valid TSridFacet: ".get_class($this); |
|
| 520 | 520 | return false; |
| 521 | 521 | } |
| 522 | 522 | if (null != $this->concurrencyMode && !$this->isTConcurrencyModeValid($this->concurrencyMode)) { |
| 523 | - $msg = "ConcurrencyMode must be a valid TConcurrencyMode: " . get_class($this); |
|
| 523 | + $msg = "ConcurrencyMode must be a valid TConcurrencyMode: ".get_class($this); |
|
| 524 | 524 | return false; |
| 525 | 525 | } |
| 526 | 526 | if (null != $this->setterAccess && !$this->isTAccessOk($this->setterAccess)) { |
| 527 | - $msg = "Setter access must be a valid TAccess: " . get_class($this); |
|
| 527 | + $msg = "Setter access must be a valid TAccess: ".get_class($this); |
|
| 528 | 528 | return false; |
| 529 | 529 | } |
| 530 | 530 | if (null != $this->getterAccess && !$this->isTAccessOk($this->getterAccess)) { |
| 531 | - $msg = "Getter access must be a valid TAccess: " . get_class($this); |
|
| 531 | + $msg = "Getter access must be a valid TAccess: ".get_class($this); |
|
| 532 | 532 | return false; |
| 533 | 533 | } |
| 534 | 534 | |
@@ -109,15 +109,15 @@ |
||
| 109 | 109 | public function isTEntitySetAttributesOK(&$msg = null) |
| 110 | 110 | { |
| 111 | 111 | if (null != $this->name && !$this->isTSimpleIdentifierValid($this->name)) { |
| 112 | - $msg = "Name must be a valid TSimpleIdentifier: " . get_class($this); |
|
| 112 | + $msg = "Name must be a valid TSimpleIdentifier: ".get_class($this); |
|
| 113 | 113 | return false; |
| 114 | 114 | } |
| 115 | 115 | if (null != $this->entityType && !$this->isTQualifiedNameValid($this->entityType)) { |
| 116 | - $msg = "Entity type must be a valid TQualifiedName: " . get_class($this); |
|
| 116 | + $msg = "Entity type must be a valid TQualifiedName: ".get_class($this); |
|
| 117 | 117 | return false; |
| 118 | 118 | } |
| 119 | 119 | if (null != $this->getterAccess && !$this->isTAccessOk($this->getterAccess)) { |
| 120 | - $msg = "Getter access must be a valid TAccess: " . get_class($this); |
|
| 120 | + $msg = "Getter access must be a valid TAccess: ".get_class($this); |
|
| 121 | 121 | return false; |
| 122 | 122 | } |
| 123 | 123 | |