Skip to content

Commit 2875d1c

Browse files
author
Vincent Langlet
committed
💄 Fix lint
1 parent 66101b5 commit 2875d1c

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

Symfony3Custom/Sniffs/Commenting/FunctionCommentSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ public function process(File $phpcsFile, $stackPtr)
6060
$phpcsFile->addError('Missing function doc comment', $stackPtr, 'Missing');
6161

6262
return;
63-
} else {
64-
// The comment may not be required, we'll see in next checks
6563
}
6664
} else {
6765
$hasComment = true;

Symfony3Custom/Sniffs/Formatting/ConditionalReturnOrThrowSniff.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class ConditionalReturnOrThrowSniff implements Sniff
2929

3030
/**
3131
* Registers the tokens that this sniff wants to listen for.
32+
*
33+
* @return array
3234
*/
3335
public function register()
3436
{
@@ -42,7 +44,7 @@ public function register()
4244
* Called when one of the token types that this sniff is listening for is found.
4345
*
4446
* @param File $phpcsFile The PHP_CodeSniffer file where the token was found.
45-
* @param int $stackPtr The position in the PHP_CodeSniffer file's token stack
47+
* @param int $stackPtr The position in the PHP_CodeSniffer file's token stack
4648
* where the token was found.
4749
*
4850
* @return void|int Optionally returns a stack pointer. The sniff will not be

Symfony3Custom/Sniffs/Namespaces/AlphabeticallySortedUseSniff.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ private function compareNamespaces($namespace1, $namespace2)
138138

139139
if (true === $this->caseSensitive && strcmp($array1[$i], $array2[$i]) !== 0) {
140140
return strcmp($array1[$i], $array2[$i]);
141-
} elseif (false === $this->caseSensitive && strcasecmp($array1[$i], $array2[$i]) !== 0) {
141+
}
142+
143+
if (false === $this->caseSensitive && strcasecmp($array1[$i], $array2[$i]) !== 0) {
142144
return strcasecmp($array1[$i], $array2[$i]);
143145
}
144146
}

Symfony3Custom/Sniffs/NamingConventions/ValidFileNameSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function register()
2424
* Process.
2525
*
2626
* @param File $phpcsFile
27-
* @param int $stackPtr
27+
* @param int $stackPtr
2828
*
2929
* @return void
3030
*/

0 commit comments

Comments
 (0)