Skip to content

Commit b0a441f

Browse files
committed
Mixed both snippets in just one.
1 parent ef30569 commit b0a441f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

contributing/code/standards.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,19 +174,15 @@ Comparisons
174174

175175
Always use `identical comparison`_ unless you need type juggling:
176176

177-
instead of:
178-
179177
.. code-block:: php
180178
181-
if (1 == $integerExpected) {
179+
// use
180+
if (1 === $integerExpected) {
182181
// ...
183182
}
184183
185-
it should be:
186-
187-
.. code-block:: php
188-
189-
if (1 === $integerExpected) {
184+
// instead of
185+
if (1 == $integerExpected) {
190186
// ...
191187
}
192188

0 commit comments

Comments
 (0)