Skip to content

Commit 3f68c53

Browse files
committed
Linting fixes
1 parent 6239f9a commit 3f68c53

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

VariableAnalysis/Lib/ScopeManager.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
use PHP_CodeSniffer\Files\File;
1212
use PHP_CodeSniffer\Util\Tokens;
1313

14-
class ScopeManager {
15-
14+
class ScopeManager
15+
{
1616
/**
1717
* An associative array of a list of token index pairs which start and end
1818
* scopes and will be used to check for unused variables.
@@ -48,7 +48,7 @@ public function recordScopeStartAndEnd($phpcsFile, $scopeStartIndex)
4848
/**
4949
* Return the scopes for a file.
5050
*
51-
* @param string $filename
51+
* @param string $filename
5252
*
5353
* @return ScopeInfo[]
5454
*/
@@ -63,8 +63,8 @@ public function getScopesForFilename($filename)
6363
/**
6464
* Return the scope for a scope start index.
6565
*
66-
* @param string $filename
67-
* @param int $scopeStartIndex
66+
* @param string $filename
67+
* @param int $scopeStartIndex
6868
*
6969
* @return ScopeInfo|null
7070
*/
@@ -79,8 +79,8 @@ public function getScopeForScopeStart($filename, $scopeStartIndex)
7979
/**
8080
* Find scopes closed by a scope close index.
8181
*
82-
* @param string $filename
83-
* @param int $scopeEndIndex
82+
* @param string $filename
83+
* @param int $scopeEndIndex
8484
*
8585
* @return ScopeInfo[]
8686
*/
@@ -110,5 +110,4 @@ function ($found, $scope) use ($scopeEndIndex) {
110110
);
111111
return $scopeIndicesThisCloses;
112112
}
113-
114113
}

VariableAnalysis/Sniffs/CodeAnalysis/VariableAnalysisSniff.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -463,12 +463,12 @@ protected function markVariableAssignmentWithoutInitialization($varName, $stackP
463463
/**
464464
* Record that a variable has been defined within a scope.
465465
*
466-
* @param string $varName
467-
* @param ScopeType::PARAM|ScopeType::BOUND|ScopeType::LOCAL|ScopeType::GLOBALSCOPE|ScopeType::STATICSCOPE $scopeType
468-
* @param ?string $typeHint
469-
* @param int $stackPtr
470-
* @param int $currScope
471-
* @param ?bool $permitMatchingRedeclaration
466+
* @param string $varName
467+
* @param ScopeType::PARAM|ScopeType::BOUND|ScopeType::LOCAL|ScopeType::GLOBALSCOPE|ScopeType::STATICSCOPE $scopeType
468+
* @param ?string $typeHint
469+
* @param int $stackPtr
470+
* @param int $currScope
471+
* @param ?bool $permitMatchingRedeclaration
472472
*
473473
* @return void
474474
*/

0 commit comments

Comments
 (0)