Browse Source

Merge branch 'master' of git.yiisoft.com:yii2

tags/2.0.0-beta
Qiang Xue 13 years ago
parent
commit
4f98bb84dc
  1. 4
      docs/code_style.md

4
docs/code_style.md

@ -227,6 +227,7 @@ switch ($this->phpType) {
$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':
@ -234,12 +235,9 @@ switch ($this->phpType) {
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.

Loading…
Cancel
Save