7.2 use spaces in the following cases:-a keyword followed by parentheses should be separated by spaces, for example: while (true ){...} note: spaces should not be placed between the method name and the left parenthesis. This will help distinguish between keywords and method calls. -The blank space should be placed behind the comma in the parameter list-all binary SyntaxHighlighter. all ();
7.2 spaces
Spaces should be used in the following cases:
-A keyword followed by parentheses should be separated by spaces, for example:
While (true ){
...
}
Note: spaces should not be placed between the method name and the left parenthesis. This will help distinguish between keywords and method calls.
-The blank space should be placed behind the comma in the parameter list
-All binary operators except "." should be separated by spaces from the operands. There is no space between the unary operator and the operand, for example, minus sign ("-"), auto-increment ("++"), and auto-subtraction ("--"). For example:
$ A + = $ c + $ d;
$ A = ($ a + $ B)/($ c * $ d );
While ($ d ++ = $ s ++ ){
$ N ++;
}
PrintSize ("size is" + $ foo + "");
-The expressions in the for statement should be separated by spaces, for example:
For (expr1; expr2; expr3)
-A space should be followed after forced transformation, for example:
MyMethod (byte) $ aNum, (int) $ x );
MyMethod (int) ($ cp + 5), (int) ($ I + 3) + 1 );