Completed
Push — master ( 4a413b...ad9281 )
by Gytis
03:47
created
src/Sniffs/CodeElement/FqcnDescriptionSniff.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $this->invalidPatterns = array_merge($this->invalidPatterns, $config['invalidPatterns'] ?? []);
39 39
         foreach ($this->invalidPatterns as &$invalidPattern) {
40
-            $invalidPattern = '#' . $invalidPattern . '#i';
40
+            $invalidPattern = '#'.$invalidPattern.'#i';
41 41
         }
42 42
 
43 43
         $this->invalidTags = array_merge($this->invalidTags, $config['invalidTags'] ?? []);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         foreach ($element->getDocBlock()->getDescriptionLines() as $lineNum => $descriptionLine) {
71 71
             foreach ($this->invalidPatterns as $invalidPattern) {
72 72
                 if (preg_match($invalidPattern, $descriptionLine)) {
73
-                    $originId = $this->addViolationId ? $element->getFqcn() . $descriptionLine : null;
73
+                    $originId = $this->addViolationId ? $element->getFqcn().$descriptionLine : null;
74 74
                     SniffHelper::addViolation($file, 'Useless description', $lineNum, static::CODE, $this->reportType, $originId);
75 75
                 }
76 76
             }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         foreach ($element->getDocBlock()->getTags() as $tag) {
80 80
             foreach ($this->invalidTags as $invalidTagName) {
81 81
                 if ($tag->getName() === $invalidTagName) {
82
-                    $originId = $this->addViolationId ? $element->getFqcn() . $invalidTagName : null;
82
+                    $originId = $this->addViolationId ? $element->getFqcn().$invalidTagName : null;
83 83
                     SniffHelper::addViolation($file, 'Useless tag', $tag->getLine(), static::CODE, $this->reportType, $originId);
84 84
                 }
85 85
             }
Please login to merge, or discard this patch.
src/Sniffs/CodeElement/FqcnMethodSniff.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         // @param
116 116
         foreach ($fnSig->getParams() as $fnParam) {
117 117
             $paramTag = $docBlock->getParamTag($fnParam->getName());
118
-            $id = $method->getId() . $fnParam->getName();
118
+            $id = $method->getId().$fnParam->getName();
119 119
             $subject = ParamTypeSubject::fromParam($fnParam, $paramTag, $docBlock, $id);
120 120
             $this->processSigType($subject);
121 121
             $subject->writeViolationsTo($file, static::CODE, $this->reportType, $this->addViolationId);
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         foreach ($method->getDocBlock()->getTags() as $tag) {
221 221
             foreach ($invalidTags as $invalidTagName) {
222 222
                 if ($tag->getName() === $invalidTagName) {
223
-                    $originId = $this->addViolationId ? $method->getId() . $invalidTagName : null;
223
+                    $originId = $this->addViolationId ? $method->getId().$invalidTagName : null;
224 224
                     SniffHelper::addViolation($file, 'Useless tag', $tag->getLine(), static::CODE, $this->reportType, $originId);
225 225
                 }
226 226
             }
Please login to merge, or discard this patch.
src/Inspection/Subject/ConstTypeSubject.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,9 +48,9 @@
 block discarded – undo
48 48
             $const->getValueType(),
49 49
             $varTag ? $varTag->getLine() : null,
50 50
             $const->getLine(),
51
-            $const->getConstName() . ' constant',
51
+            $const->getConstName().' constant',
52 52
             $docBlock,
53
-            $const->getFqcn() . '::' . $const->getConstName()
53
+            $const->getFqcn().'::'.$const->getConstName()
54 54
         );
55 55
     }
56 56
 }
Please login to merge, or discard this patch.
src/Inspection/Subject/PropTypeSubject.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
26 26
             $prop->getDefaultValueType(),
27 27
             $varTag ? $varTag->getLine() : $prop->getLine(),
28 28
             $prop->getLine(),
29
-            'property $' . $prop->getPropName(),
29
+            'property $'.$prop->getPropName(),
30 30
             $docBlock,
31
-            $prop->getFqcn() . '::' . $prop->getPropName()
31
+            $prop->getFqcn().'::'.$prop->getPropName()
32 32
         );
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
src/Core/SniffHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
         ?string $originId
16 16
     ): void {
17 17
         if (null !== $originId) {
18
-            $violationId = substr(md5($message . $originId), 0, 16);
18
+            $violationId = substr(md5($message.$originId), 0, 16);
19 19
             $message = sprintf('%s [%s]', $message, $violationId);
20 20
         }
21 21
 
Please login to merge, or discard this patch.
phpcs_baseline.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 function getRealFilePath(string $filePath): string
61 61
 {
62 62
     if ('.' === $filePath[0]) {
63
-        $realFilePath = realpath(getcwd() . '/' . $filePath);
63
+        $realFilePath = realpath(getcwd().'/'.$filePath);
64 64
     } else {
65 65
         $realFilePath = $filePath;
66 66
     }
Please login to merge, or discard this patch.