FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

codestyle · infinityloop-dev/coding-standard@5a33541 · GitHub

Commit 5a33541

Browse files
committed
codestyle
1 parent 87ae4dc commit 5a33541

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎InfinityloopCodingStandard/Sniffs/ControlStructures/RequireMultiLineNullCoalesceSniff.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function process(File $phpcsFile, $coalescePointer) : void
5555
$phpcsFile->fixer->endChangeset();
5656
}
5757

58-
private function getEndOfLineBefore(\PHP_CodeSniffer\Files\File $phpcsFile, int $pointer) : int
58+
private function getEndOfLineBefore(File $phpcsFile, int $pointer) : int
5959
{
6060
$tokens = $phpcsFile->getTokens();
6161

@@ -103,7 +103,7 @@ private function getEndOfLineBefore(\PHP_CodeSniffer\Files\File $phpcsFile, int
103103
return $endOfLineBefore;
104104
}
105105

106-
private function getIndentation(\PHP_CodeSniffer\Files\File $phpcsFile, int $endOfLinePointer) : string
106+
private function getIndentation(File $phpcsFile, int $endOfLinePointer) : string
107107
{
108108
$pointerAfterWhitespace = TokenHelper::findNextExcluding($phpcsFile, \T_WHITESPACE, $endOfLinePointer + 1);
109109
$actualIndentation = TokenHelper::getContent($phpcsFile, $endOfLinePointer + 1, $pointerAfterWhitespace - 1);

‎InfinityloopCodingStandard/Sniffs/Namespaces/ReferenceUsedNamesAfterUsageSniff.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ static function (bool $carry, string $use) use ($canonicalName) : bool {
388388
$phpcsFile->fixer->endChangeset();
389389
}
390390

391-
private function getUseStatementPlacePointer(\PHP_CodeSniffer\Files\File $phpcsFile, int $openTagPointer, array $useStatements) : int
391+
private function getUseStatementPlacePointer(File $phpcsFile, int $openTagPointer, array $useStatements) : int
392392
{
393393
if (\count($useStatements) !== 0) {
394394
$lastUseStatement = \array_values($useStatements)[\count($useStatements) - 1];
@@ -436,7 +436,7 @@ private function getUseStatementPlacePointer(\PHP_CodeSniffer\Files\File $phpcsF
436436
return $useStatementPlacePointer;
437437
}
438438

439-
private function getReferences(\PHP_CodeSniffer\Files\File $phpcsFile, int $openTagPointer) : array
439+
private function getReferences(File $phpcsFile, int $openTagPointer) : array
440440
{
441441
$references = [];
442442

‎InfinityloopCodingStandard/Sniffs/TypeHints/UnionTypeHintFormatSniff.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ private function checkTypeHint(File $phpcsFile, TypeHint $typeHint) : void
224224

225225
private function getTypeHintContentWithoutNull(
226226
File $phpcsFile,
227-
\SlevomatCodingStandard\Helpers\TypeHint $typeHint,
227+
TypeHint $typeHint,
228228
) : string
229229
{
230230
$tokens = $phpcsFile->getTokens();
@@ -258,7 +258,7 @@ private function getTypeHintContentWithoutNull(
258258

259259
private function fixTypeHint(
260260
File $phpcsFile,
261-
\SlevomatCodingStandard\Helpers\TypeHint $typeHint,
261+
TypeHint $typeHint,
262262
string $fixedTypeHint,
263263
) : void
264264
{

‎InfinityloopCodingStandard/Sniffs/WhiteSpace/MemberVarSpacingSniff.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ protected function processMemberVar(File $phpcsFile, $stackPtr) : ?int
168168
}
169169

170170
//@phpcs:ignore Squiz.Commenting.FunctionComment.ScalarTypeHintMissing
171-
protected function processVariable(\PHP_CodeSniffer\Files\File $phpcsFile, $stackPtr) : void
171+
protected function processVariable(File $phpcsFile, $stackPtr) : void
172172
{
173173
}
174174

175175
//@phpcs:ignore Squiz.Commenting.FunctionComment.ScalarTypeHintMissing
176-
protected function processVariableInString(\PHP_CodeSniffer\Files\File $phpcsFile, $stackPtr) : void
176+
protected function processVariableInString(File $phpcsFile, $stackPtr) : void
177177
{
178178
}
179179
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL