Completed
Branch master (aa8164)
by Tomáš
04:04
created
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/Ruleset/RulesetBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
                         foreach (explode(',', $value) as $val) {
130 130
                             $v = '';
131 131
 
132
-                            list($k,$v) = explode('=>', $val.'=>');
132
+                            list($k, $v) = explode('=>', $val.'=>');
133 133
                             if ($v !== '') {
134 134
                                 $values[$k] = $v;
135 135
                             } else {
Please login to merge, or discard this patch.
src/File/File.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * {@inheritdoc}
79 79
      */
80
-    public function addFixableError($error, $stackPtr, $code, $data=[], $severity=0)
80
+    public function addFixableError($error, $stackPtr, $code, $data = [], $severity = 0)
81 81
     {
82 82
         $this->addError($error, $stackPtr, $code, $data, $severity, true);
83 83
         return $this->isFixer;
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $code,
95 95
         $data,
96 96
         $severity,
97
-        $isFixable=false
97
+        $isFixable = false
98 98
     ) : bool {
99 99
         if (!$error) { // skip warnings
100 100
             return false;
Please login to merge, or discard this patch.
src/Fixer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
         return true;
162 162
     }
163 163
 
164
-    public function substrToken(int $stackPtr, int $start, int $length=null) : bool
164
+    public function substrToken(int $stackPtr, int $start, int $length = null) : bool
165 165
     {
166 166
         $current = $this->getTokenContent($stackPtr);
167 167
 
Please login to merge, or discard this patch.
src/EventDispatcher/SniffDispatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     {
57 57
         $this->addListener(
58 58
             $token,
59
-            function (CheckFileTokenEvent $checkFileToken) use ($sniffObject) {
59
+            function(CheckFileTokenEvent $checkFileToken) use ($sniffObject) {
60 60
                 $sniffObject->process(
61 61
                     $checkFileToken->getFile(),
62 62
                     $checkFileToken->getStackPointer()
Please login to merge, or discard this patch.
src/Sniff/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/Report/ErrorMessageSorter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
                 continue;
19 19
             }
20 20
 
21
-            usort($errorMessagesForFile, function ($first, $second) {
21
+            usort($errorMessagesForFile, function($first, $second) {
22 22
                 return ($first['line'] > $second['line']);
23 23
             });
24 24
 
Please login to merge, or discard this patch.