Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Tomáš Trávníček
doctrine-dbal
Commits
41d6a3fe
Commit
41d6a3fe
authored
Jan 09, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
05d96951
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
Coding standards - Naming Conventions - Variables.php
...ocs/Coding standards - Naming Conventions - Variables.php
+15
-0
No files found.
manual/docs/Coding standards - Naming Conventions - Variables.php
View file @
41d6a3fe
...
...
@@ -11,3 +11,18 @@ All variables must satisfy the following conditions:
<
ul
>
<
li
\
>
Verbosity
is
encouraged
.
Variables
should
always
be
as
verbose
as
practical
.
Terse
variable
names
such
as
"
$i
"
and
"
$n
"
are
discouraged
for
anything
other
than
the
smallest
loop
contexts
.
If
a
loop
contains
more
than
20
lines
of
code
,
the
variables
for
the
indices
need
to
have
more
descriptive
names
.
</
ul
>
<
ul
>
<
li
\
>
Within
the
framework
certain
generic
object
variables
should
always
use
the
following
names
:
<
ul
>
<
li
\
>
Doctrine_Connection
->
<
i
>
$conn
</
i
>
<
li
\
>
Doctrine_Collection
->
<
i
>
$coll
</
i
>
<
li
\
>
Doctrine_Manager
->
<
i
>
$manager
</
i
>
<
li
\
>
Doctrine_Query
->
<
i
>
$query
</
i
>
<
li
\
>
Doctrine_Db
->
<
i
>
$db
</
i
>
</
ul
>
There
are
cases
when
more
descriptive
names
are
more
appropriate
(
for
example
when
multiple
objects
of
the
same
class
are
used
in
same
context
),
in
that
case
it
is
allowed
to
use
different
names
than
the
ones
mentioned
.
</
ul
>
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