GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 73e552...fd785d )
by Gytis
07:38
created
src/Sniffs/CodeElement/FqcnConstSniff.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
      */
27 27
     public function configure(array $config): void
28 28
     {
29
-        $this->reportType = (string)($config['reportType'] ?? 'warning');
30
-        $this->addViolationId = (bool)($config['addViolationId'] ?? false);
29
+        $this->reportType = (string) ($config['reportType'] ?? 'warning');
30
+        $this->addViolationId = (bool) ($config['addViolationId'] ?? false);
31 31
     }
32 32
 
33 33
     /**
Please login to merge, or discard this patch.
src/Sniffs/CodeElement/FqcnPropSniff.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function configure(array $config): void
29 29
     {
30
-        $this->reportType = (string)($config['reportType'] ?? 'warning');
31
-        $this->addViolationId = (bool)($config['addViolationId'] ?? false);
30
+        $this->reportType = (string) ($config['reportType'] ?? 'warning');
31
+        $this->addViolationId = (bool) ($config['addViolationId'] ?? false);
32 32
     }
33 33
 
34 34
     /**
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         $varTag = $subject->getDocBlock()->getTagsByName('var')[0] ?? null;
73 73
 
74 74
         if ($varTag && null !== $varTag->getParamName()) {
75
-            $subject->addDocTypeWarning('Remove property name $' . $varTag->getParamName() . ' from @var tag');
75
+            $subject->addDocTypeWarning('Remove property name $'.$varTag->getParamName().' from @var tag');
76 76
         }
77 77
     }
78 78
 
Please login to merge, or discard this patch.
src/Sniffs/CodeElement/FqcnDescriptionSniff.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     {
36 36
         $this->invalidPatterns = array_merge($this->invalidPatterns, $config['invalidPatterns'] ?? []);
37 37
         foreach ($this->invalidPatterns as &$invalidPattern) {
38
-            $invalidPattern = '#' . $invalidPattern . '#i';
38
+            $invalidPattern = '#'.$invalidPattern.'#i';
39 39
         }
40 40
 
41 41
         $this->invalidTags = array_merge($this->invalidTags, $config['invalidTags'] ?? []);
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
             $invalidTag = substr($invalidTag, 1);
44 44
         }
45 45
 
46
-        $this->reportType = (string)($config['reportType'] ?? 'warning');
47
-        $this->addViolationId = (bool)($config['addViolationId'] ?? false);
46
+        $this->reportType = (string) ($config['reportType'] ?? 'warning');
47
+        $this->addViolationId = (bool) ($config['addViolationId'] ?? false);
48 48
     }
49 49
 
50 50
     /**
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         foreach ($element->getDocBlock()->getDescriptionLines() as $lineNum => $descriptionLine) {
69 69
             foreach ($this->invalidPatterns as $invalidPattern) {
70 70
                 if (preg_match($invalidPattern, $descriptionLine)) {
71
-                    $originId = $this->addViolationId ? $element->getFqcn() . $descriptionLine : null;
71
+                    $originId = $this->addViolationId ? $element->getFqcn().$descriptionLine : null;
72 72
                     SniffHelper::addViolation($file, 'Useless description', $lineNum, static::CODE, $this->reportType, $originId);
73 73
                 }
74 74
             }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         foreach ($element->getDocBlock()->getTags() as $tag) {
78 78
             foreach ($this->invalidTags as $invalidTagName) {
79 79
                 if ($tag->getName() === $invalidTagName) {
80
-                    $originId = $this->addViolationId ? $element->getFqcn() . $invalidTagName : null;
80
+                    $originId = $this->addViolationId ? $element->getFqcn().$invalidTagName : null;
81 81
                     SniffHelper::addViolation($file, 'Useless tag', $tag->getLine(), static::CODE, $this->reportType, $originId);
82 82
                 }
83 83
             }
Please login to merge, or discard this patch.
src/Sniffs/CodeElement/FqcnMethodSniff.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
52 52
         $invalidTags = array_unique($invalidTags);
53 53
 
54 54
         $this->invalidTags = $invalidTags;
55
-        $this->reportMissingTags = (bool)($config['reportMissingTags'] ?? true);
56
-        $this->reportNullableBasicGetter = (bool)($config['reportNullableBasicGetter'] ?? true);
57
-        $this->reportType = (string)($config['reportType'] ?? 'warning');
58
-        $this->addViolationId = (bool)($config['addViolationId'] ?? false);
55
+        $this->reportMissingTags = (bool) ($config['reportMissingTags'] ?? true);
56
+        $this->reportNullableBasicGetter = (bool) ($config['reportNullableBasicGetter'] ?? true);
57
+        $this->reportType = (string) ($config['reportType'] ?? 'warning');
58
+        $this->addViolationId = (bool) ($config['addViolationId'] ?? false);
59 59
     }
60 60
 
61 61
     /**
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         // @param
112 112
         foreach ($fnSig->getParams() as $fnParam) {
113 113
             $paramTag = $docBlock->getParamTag($fnParam->getName());
114
-            $id = $method->getId() . $fnParam->getName();
114
+            $id = $method->getId().$fnParam->getName();
115 115
             $subject = ParamTypeSubject::fromParam($fnParam, $paramTag, $docBlock, $id);
116 116
             $this->processSigType($subject);
117 117
             $subject->writeViolationsTo($file, static::CODE, $this->reportType, $this->addViolationId);
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
         foreach ($method->getDocBlock()->getTags() as $tag) {
216 216
             foreach ($invalidTags as $invalidTagName) {
217 217
                 if ($tag->getName() === $invalidTagName) {
218
-                    $originId = $this->addViolationId ? $method->getId() . $invalidTagName : null;
218
+                    $originId = $this->addViolationId ? $method->getId().$invalidTagName : null;
219 219
                     SniffHelper::addViolation($file, 'Useless tag', $tag->getLine(), static::CODE, $this->reportType, $originId);
220 220
                 }
221 221
             }
Please login to merge, or discard this patch.
src/Sniffs/CompositeCodeElementSniff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         $globalAddViolationId = $config['addViolationId'] ?? false;
34 34
 
35 35
         // 1. CompositeCodeElementSniff configuration
36
-        $this->useReflection = (bool)($config['useReflection'] ?? false);
36
+        $this->useReflection = (bool) ($config['useReflection'] ?? false);
37 37
 
38 38
         // 2. CodeElementSniff(s) configuration
39 39
         // Default sniffs. They can be removed by specifying <property name="FqcnMethodSniff.enabled" value="false"/>
Please login to merge, or discard this patch.
src/Inspection/DocTypeInspector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
             $subject->addDocTypeWarning(sprintf(
95 95
                 'Replace nullable type "%s" with compound type with null "%s" for :subject:.',
96 96
                 $docType->toString(),
97
-                str_replace('?', '', $docType->toString()) . '|null' // @TODO Not ideal
97
+                str_replace('?', '', $docType->toString()).'|null' // @TODO Not ideal
98 98
             ));
99 99
         }
100 100
 
Please login to merge, or discard this patch.