Skip to content

Commit 268d1a5

Browse files
committed
Implement code review changes related to commit 3 (332c959)
1 parent a0cc62f commit 268d1a5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.1.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ if ($error === ERROR_ONE): ?>
9191
if ($value):
9292
if ($anotherValue):
9393
foreach ($array as $element):
94-
echo $element;
94+
echo !is_null($element) ? $element : 'default';
9595
endforeach;
9696
endif;
9797
else:

src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.1.inc.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ if ($error === ERROR_ONE): ?>
103103
if ($value):
104104
if ($anotherValue):
105105
foreach ($array as $element):
106-
echo $element;
106+
echo !is_null($element) ? $element : 'default';
107107
endforeach;
108108
endif;
109109
else:

tests/Core/Tokenizers/Tokenizer/RecurseScopeMapIfKeywordConditionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @author Juliette Reinders Folmer <[email protected]>
66
* @author Rodrigo Primo <[email protected]>
7-
* @copyright 2021 Squiz Pty Ltd (ABN 77 084 670 600)
7+
* @copyright 2024 PHPCSStandards and contributors
88
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
99
*/
1010

0 commit comments

Comments
 (0)