From 9db9adcf8527475843e7ef88f85ab67159bbf881 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Mon, 7 May 2012 12:56:00 +0400 Subject: [PATCH] switch style update --- docs/code_style.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/code_style.md b/docs/code_style.md index 2db3ee5..a06eef7 100644 --- a/docs/code_style.md +++ b/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.