| @@ 386-392 (lines=7) @@ | ||
| 383 | */ |
|
| 384 | private function normalizeDefault() |
|
| 385 | { |
|
| 386 | if ( |
|
| 387 | $this->defaultValue[0] == '(' |
|
| 388 | && $this->defaultValue[strlen($this->defaultValue) - 1] == ')' |
|
| 389 | ) { |
|
| 390 | //Cut braces |
|
| 391 | $this->defaultValue = substr($this->defaultValue, 1, -1); |
|
| 392 | } |
|
| 393 | ||
| 394 | if (preg_match('/^[\'""].*?[\'"]$/', $this->defaultValue)) { |
|
| 395 | $this->defaultValue = substr($this->defaultValue, 1, -1); |
|
| @@ 398-407 (lines=10) @@ | ||
| 395 | $this->defaultValue = substr($this->defaultValue, 1, -1); |
|
| 396 | } |
|
| 397 | ||
| 398 | if ( |
|
| 399 | $this->phpType() != 'string' |
|
| 400 | && ( |
|
| 401 | $this->defaultValue[0] == '(' |
|
| 402 | && $this->defaultValue[strlen($this->defaultValue) - 1] == ')' |
|
| 403 | ) |
|
| 404 | ) { |
|
| 405 | //Cut another braces |
|
| 406 | $this->defaultValue = substr($this->defaultValue, 1, -1); |
|
| 407 | } |
|
| 408 | } |
|
| 409 | ||
| 410 | /** |
|