Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit c3676a8

Browse files
committed
CS Fix
1 parent d1c31d0 commit c3676a8

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

src/Configuration/Configuration.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ public function logHtml()
150150
/**
151151
* @return bool
152152
*/
153-
public function isSimpleOutput() {
153+
public function isSimpleOutput()
154+
{
154155
return $this->output === 'simple';
155156
}
156157
}

src/FileInfo/PhpFileInfo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public function hasClassDeprecation($className)
280280
*/
281281
public function getClassDeprecation($className)
282282
{
283-
return ($this->hasClassDeprecation($className) ? $this->classDeprecations[$className] : null);
283+
return $this->hasClassDeprecation($className) ? $this->classDeprecations[$className] : null;
284284
}
285285

286286
/**
@@ -324,7 +324,7 @@ public function hasInterfaceDeprecation($interfaceName)
324324
*/
325325
public function getInterfaceDeprecation($interfaceName)
326326
{
327-
return ($this->hasInterfaceDeprecation($interfaceName) ? $this->interfaceDeprecations[$interfaceName] : null);
327+
return $this->hasInterfaceDeprecation($interfaceName) ? $this->interfaceDeprecations[$interfaceName] : null;
328328
}
329329

330330
/**

src/TypeGuessing/SymbolTable/Resolver/SymfonyResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,6 @@ protected function getType($context, $methodName, Node $node = null)
121121
*/
122122
protected function isController($type)
123123
{
124-
return (substr($type, -10) === 'Controller');
124+
return substr($type, -10) === 'Controller';
125125
}
126126
}

src/Violation/Renderer/Console/BaseRenderer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function renderViolations(array $violations, array $errors)
4343
/**
4444
* @param Violation[] $violations
4545
*/
46-
protected abstract function printViolations(array $violations);
46+
abstract protected function printViolations(array $violations);
4747

4848
/**
4949
* @param Error[] $errors
@@ -54,7 +54,7 @@ protected function printErrors(array $errors)
5454
return;
5555
}
5656

57-
$this->output->writeln("");
57+
$this->output->writeln('');
5858
$this->output->writeln('<error>Your project contains invalid code:</error>');
5959
foreach ($errors as $error) {
6060
$this->output->writeln(
@@ -65,4 +65,4 @@ protected function printErrors(array $errors)
6565
);
6666
}
6767
}
68-
}
68+
}

src/Violation/Renderer/Console/DefaultRenderer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace SensioLabs\DeprecationDetector\Violation\Renderer\Console;
44

5-
use PhpParser\Error;
65
use SensioLabs\DeprecationDetector\FileInfo\PhpFileInfo;
76
use SensioLabs\DeprecationDetector\Violation\Renderer\MessageHelper\MessageHelper;
87
use SensioLabs\DeprecationDetector\Violation\Violation;

src/Violation/Renderer/Console/SimpleRenderer.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace SensioLabs\DeprecationDetector\Violation\Renderer\Console;
44

5-
use PhpParser\Error;
65
use SensioLabs\DeprecationDetector\Violation\Renderer\MessageHelper\MessageHelper;
76
use SensioLabs\DeprecationDetector\Violation\Violation;
87
use Symfony\Component\Console\Output\OutputInterface;
@@ -32,13 +31,13 @@ protected function printViolations(array $violations)
3231
if ($tmpFile !== $violation->getFile()) {
3332
$tmpFile = $violation->getFile();
3433
if (0 !== $i) {
35-
$this->output->writeln("");
34+
$this->output->writeln('');
3635
}
3736
$this->output->writeln($tmpFile->getRelativePathname());
3837
}
3938

4039
$this->output->writeln(sprintf(
41-
"Nr. %d line %d: %s",
40+
'Nr. %d line %d: %s',
4241
++$i,
4342
$violation->getLine(),
4443
$this->messageHelper->getViolationMessage($violation)

0 commit comments

Comments
 (0)