Skip to content

Commit 704f3d1

Browse files
committed
MAGETWO-84354: Copy EQP sniffs to Magento 2 Core repo
- fixed StringPosition sniff description
1 parent a0756f2 commit 704f3d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/tests/static/framework/Magento/Sniffs/Strings/StringPositionSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
use PHP_CodeSniffer\Files\File;
1010

1111
/**
12-
* Detects misusing of IS_IDENTICAL operators.
12+
* Detects misusing of IS_IDENTICAL operators when `strpos` and `stripos` functions are used in a condition.
1313
*
1414
* Examples:
1515
* if (!strpos($haystack, $needle)) {}
16-
* if (strpos($haystack, $needle) == false) {}
16+
* if (stripos($haystack, $needle) == false) {}
1717
*/
1818
class StringPositionSniff implements Sniff
1919
{

0 commit comments

Comments
 (0)