Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
e38b8660
Commit
e38b8660
authored
May 03, 2012
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed unclear statements, added notes about one-line comments
parent
6e95233d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
code_style.md
docs/code_style.md
+7
-2
No files found.
docs/code_style.md
View file @
e38b8660
...
...
@@ -54,10 +54,10 @@ $str3 = "Hello ${username}!";
### String concatenation
When concatenating strings format it like the following
:
Add spaces around dot when concatenating strings
:
~~~
$name = 'Yii' . '
' . '
Framework';
$name = 'Yii' . ' Framework';
~~~
When string is long format is the following:
...
...
@@ -302,6 +302,11 @@ public function getEventHandlers($name)
}
~~~
#### Comments
-
One-line comments should be started with
`//`
and not
`#`
.
-
One-line comment should be on its own line.
Yii application naming conventions
----------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment