Skip to content

Commit f9f75a3

Browse files
committed
REPO-70: [EQP][Sniffs Consolidation] Assign severity to each sniff
- fix code style
1 parent a5a05a6 commit f9f75a3

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Magento/Sniffs/Legacy/MageEntitySniff.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
*/
1414
class MageEntitySniff implements Sniff
1515
{
16-
/**
17-
* String representation of error.
18-
*
19-
* @var string
20-
*/
16+
/**
17+
* String representation of error.
18+
*
19+
* @var string
20+
*/
2121
protected $errorMessage = 'Possible Magento 2 design violation. Detected typical Magento 1.x construction "%s".';
2222

2323
/**

Magento/Sniffs/PHP/DiscouragedFunctionSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff
235235
*
236236
* @return void
237237
*/
238-
protected function addError($phpcsFile, $stackPtr, $function, $pattern = null)
238+
protected function addError($phpcsFile, $stackPtr, $function, $pattern=null)
239239
{
240240
$data = [$function];
241241
$warningMessage = 'The use of function %s() is discouraged';

Magento/Sniffs/Security/IncludeFileSniff.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
*/
1515
class IncludeFileSniff implements Sniff
1616
{
17-
/**
18-
* Warning violation code.
19-
*
20-
* @var string
21-
*/
17+
/**
18+
* Warning violation code.
19+
*
20+
* @var string
21+
*/
2222
protected $warningCode = 'FoundIncludeFile';
2323

2424
/**

Magento/Sniffs/Security/XssTemplateSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ private function findNextInScope($types, $start, $end)
307307
* @param int|bool $last
308308
* @return int|bool
309309
*/
310-
private function findLastInScope($types, $start, $end, $last = false)
310+
private function findLastInScope($types, $start, $end, $last=false)
311311
{
312312
$types = (array)$types;
313313
$nextInScope = $this->findNextInScope($types, $start, $end);

0 commit comments

Comments
 (0)