|
|
@ -225,21 +225,19 @@ Use the following formatting for switch: |
|
|
|
switch ($this->phpType) { |
|
|
|
switch ($this->phpType) { |
|
|
|
case 'string': |
|
|
|
case 'string': |
|
|
|
$a = (string)$value; |
|
|
|
$a = (string)$value; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'integer': |
|
|
|
case 'integer': |
|
|
|
|
|
|
|
case 'int': |
|
|
|
$a = (integer)$value; |
|
|
|
$a = (integer)$value; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'boolean': |
|
|
|
case 'boolean': |
|
|
|
$a = (boolean)$value; |
|
|
|
$a = (boolean)$value; |
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
$a = null; |
|
|
|
$a = null; |
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
~~~ |
|
|
|
~~~ |
|
|
|
|
|
|
|
|
|
|
|
Do not omit `break`. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Code documentation |
|
|
|
### Code documentation |
|
|
|
|
|
|
|
|
|
|
|
- Refer ot [phpDoc](http://phpdoc.org/) for documentation syntax. |
|
|
|
- Refer ot [phpDoc](http://phpdoc.org/) for documentation syntax. |
|
|
|