Completed
Branch master (100d82)
by Tomáš
20:05
created
src/EventDispatcher/CurrentListenerSniffCodeProvider.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 
8 8
 namespace Symplify\PHP7_CodeSniffer\EventDispatcher;
9 9
 
10
-use Closure;
11 10
 use ReflectionFunction;
12 11
 use SplObjectStorage;
13 12
 use Symplify\PHP7_CodeSniffer\SniffFinder\Naming\SniffNaming;
Please login to merge, or discard this patch.
src/File/SourceFilesProvider.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 use SplFileInfo;
11 11
 use Symplify\PHP7_CodeSniffer\Configuration\Configuration;
12 12
 use Symplify\PHP7_CodeSniffer\Finder\SourceFinder;
13
-use Symplify\PHP7_CodeSniffer\Ruleset;
14 13
 
15 14
 final class SourceFilesProvider
16 15
 {
Please login to merge, or discard this patch.
src/SniffFinder/SniffProvider.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,6 @@
 block discarded – undo
10 10
 use Symplify\PHP7_CodeSniffer\Configuration\Configuration;
11 11
 use Symplify\PHP7_CodeSniffer\Ruleset\Routing\Router;
12 12
 use Symplify\PHP7_CodeSniffer\Ruleset\RulesetBuilder;
13
-use Symplify\PHP7_CodeSniffer\SniffFinder\Composer\VendorDirProvider;
14
-use Symplify\PHP7_CodeSniffer\SniffFinder\Contract\SniffFinderInterface;
15 13
 
16 14
 final class SniffProvider
17 15
 {
Please login to merge, or discard this patch.
src/Console/Style/CodeSnifferStyle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     public function writeErrorReports(array $errorReports)
55 55
     {
56 56
         foreach ($errorReports as $file => $errors) {
57
-            $this->symfonyStyle->section('FILE: ' . $file);
57
+            $this->symfonyStyle->section('FILE: '.$file);
58 58
 
59 59
             $tableRows = $this->formatErrorsToTableRows($errors);
60 60
             $this->symfonyStyle->table(['Line', 'Error', 'Sniff Code', 'Fixable'], $tableRows);
Please login to merge, or discard this patch.
src/DI/Php7CodeSnifferExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
     private function loadServicesFromConfig()
38 38
     {
39
-        $config = $this->loadFromFile(__DIR__ . '/../config/services.neon');
39
+        $config = $this->loadFromFile(__DIR__.'/../config/services.neon');
40 40
         $this->compiler->parseServices($this->getContainerBuilder(), $config);
41 41
     }
42 42
 
Please login to merge, or discard this patch.
src/DI/ContainerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@
 block discarded – undo
19 19
         $configurator = new Configurator();
20 20
         $configurator->setDebugMode(false);
21 21
         $configurator->setTempDirectory($this->createAndReturnTempDir());
22
-        $configurator->addConfig(__DIR__ . '/../config/config.neon');
22
+        $configurator->addConfig(__DIR__.'/../config/config.neon');
23 23
 
24 24
         return $configurator->createContainer();
25 25
     }
26 26
 
27 27
     private function createAndReturnTempDir() : string
28 28
     {
29
-        $tempDir = sys_get_temp_dir() . '/php7_codesniffer';
29
+        $tempDir = sys_get_temp_dir().'/php7_codesniffer';
30 30
         FileSystem::delete($tempDir);
31 31
         FileSystem::createDir($tempDir);
32 32
 
Please login to merge, or discard this patch.
src/SniffFinder/Naming/SniffNaming.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,14 +35,14 @@
 block discarded – undo
35 35
 
36 36
         self::ensureSniffClassNameIsValid($sniffClass, $parts);
37 37
 
38
-        $standardName = $parts[count($parts)-4];
38
+        $standardName = $parts[count($parts) - 4];
39 39
         if (Strings::endsWith($standardName, 'CodingStandard')) {
40 40
             $standardName = substr($standardName, 0, -strlen('CodingStandard'));
41 41
         }
42 42
 
43
-        $categoryName = $parts[count($parts)-2];
43
+        $categoryName = $parts[count($parts) - 2];
44 44
 
45
-        $sniffName = $parts[count($parts)-1];
45
+        $sniffName = $parts[count($parts) - 1];
46 46
         $sniffName = substr($sniffName, 0, -strlen('Sniff'));
47 47
 
48 48
         return $standardName.'.'.$categoryName.'.'.$sniffName;
Please login to merge, or discard this patch.
src/Ruleset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
 
84 84
             $tokens = $this->sniffs[$sniffCode]->register();
85 85
             foreach ($tokens as $token) {
86
-                $this->eventDispatcher->addListener($token, function (CheckFileTokenEvent $checkFileToken) use ($sniffObject) {
86
+                $this->eventDispatcher->addListener($token, function(CheckFileTokenEvent $checkFileToken) use ($sniffObject) {
87 87
                     $sniffObject->process($checkFileToken->getFile(), $checkFileToken->getStackPointer());
88 88
                 });
89 89
             }
Please login to merge, or discard this patch.
src/Configuration/ConfigurationResolver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     private function setAllowedValues()
63 63
     {
64
-        $this->optionsResolver->setAllowedValues('standards', function (array $standards) {
64
+        $this->optionsResolver->setAllowedValues('standards', function(array $standards) {
65 65
             $standards = $this->normalizeCommaSeparatedValues($standards);
66 66
 
67 67
             $availableStandards = $this->standardFinder->getStandards();
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             return true;
79 79
         });
80 80
 
81
-        $this->optionsResolver->setAllowedValues('sniffs', function (array $sniffs) {
81
+        $this->optionsResolver->setAllowedValues('sniffs', function(array $sniffs) {
82 82
             $sniffs = $this->normalizeCommaSeparatedValues($sniffs);
83 83
 
84 84
             foreach ($sniffs as $sniff) {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             return true;
98 98
         });
99 99
 
100
-        $this->optionsResolver->setAllowedValues('source', function (array $source) {
100
+        $this->optionsResolver->setAllowedValues('source', function(array $source) {
101 101
             foreach ($source as $singleSource) {
102 102
                 if (!file_exists($singleSource)) {
103 103
                     throw new Exception(
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
     private function setNormalizers()
114 114
     {
115
-        $this->optionsResolver->setNormalizer('standards', function (OptionsResolver $optionsResolver, array $standardNames) {
115
+        $this->optionsResolver->setNormalizer('standards', function(OptionsResolver $optionsResolver, array $standardNames) {
116 116
             $standardNames = $this->normalizeCommaSeparatedValues($standardNames);
117 117
 
118 118
             return $this->standardFinder->getRulesetPathsForStandardNames($standardNames);
Please login to merge, or discard this patch.