Browse Source

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

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

10
docs/code_style.md

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

Loading…
Cancel
Save