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.
Completed
Push — master ( 63d4cb...bbe943 )
by joseph
13s queued 11s
created
configDefaults/magento2/phpstan-magento2-bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 /* Find bootstrap path */
4 4
 $rootPath = realpath(dirname(__FILE__));
5
-while (!file_exists($rootPath . '/app/bootstrap.php') && $rootPath !== '/') {
5
+while (!file_exists($rootPath.'/app/bootstrap.php') && $rootPath !== '/') {
6 6
     $rootPath = realpath(dirname($rootPath));
7 7
 }
8 8
 
9 9
 /* Include Magento bootstrap file */
10
-require_once $rootPath . '/app/bootstrap.php';
10
+require_once $rootPath.'/app/bootstrap.php';
11 11
 
12 12
 /* Create git hook class autoloader */
13 13
 $_git_hook_loaded_class = [];
Please login to merge, or discard this patch.
src/Markdown/LinksChecker.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -175,14 +175,14 @@
 block discarded – undo
175 175
         #$start          = microtime(true);
176 176
         #fwrite(STDERR, "\n".'Validating link: '.$href);
177 177
         $context = stream_context_create([
178
-                                             'http' => [
179
-                                                 'method'           => 'HEAD',
180
-                                                 'protocol_version' => 1.1,
181
-                                                 'header'           => [
182
-                                                     'Connection: close',
183
-                                                 ],
184
-                                             ],
185
-                                         ]);
178
+                                                'http' => [
179
+                                                    'method'           => 'HEAD',
180
+                                                    'protocol_version' => 1.1,
181
+                                                    'header'           => [
182
+                                                        'Connection: close',
183
+                                                    ],
184
+                                                ],
185
+                                            ]);
186 186
         $result  = null;
187 187
         try {
188 188
             $headers = get_headers($href, 0, $context);
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     private static function getMainReadme(string $projectRootDirectory): string
30 30
     {
31
-        $path = $projectRootDirectory . '/README.md';
31
+        $path = $projectRootDirectory.'/README.md';
32 32
         if (!is_file($path)) {
33 33
             throw new \RuntimeException(
34 34
                 "\n\nYou have no README.md file in your project"
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     private static function getDocsFiles(string $projectRootDirectory): array
49 49
     {
50 50
         $files = [];
51
-        $dir   = $projectRootDirectory . '/docs';
51
+        $dir   = $projectRootDirectory.'/docs';
52 52
         if (!is_dir($dir)) {
53 53
             return $files;
54 54
         }
@@ -120,15 +120,15 @@  discard block
 block discarded – undo
120 120
         $start = \rtrim($projectRootDirectory, '/');
121 121
         if ($path[0] !== '/' || 0 === \strpos($path, './')) {
122 122
             $relativeSubdirs = \preg_replace(
123
-                '%^' . $projectRootDirectory . '%',
123
+                '%^'.$projectRootDirectory.'%',
124 124
                 '',
125 125
                 \dirname($file)
126 126
             );
127 127
             if ($relativeSubdirs !== null) {
128
-                $start           .= '/' . \rtrim($relativeSubdirs, '/');
128
+                $start .= '/'.\rtrim($relativeSubdirs, '/');
129 129
             }
130 130
         }
131
-        $realpath = \realpath($start . '/' . $path);
131
+        $realpath = \realpath($start.'/'.$path);
132 132
         if (false === $realpath) {
133 133
             $errors[] = \sprintf("\nBad link for \"%s\" to \"%s\"\n", $link[1], $link[2]);
134 134
             $return   = 1;
@@ -150,14 +150,14 @@  discard block
 block discarded – undo
150 150
         $files                = static::getFiles($projectRootDirectory);
151 151
         foreach ($files as $file) {
152 152
             $relativeFile = str_replace($projectRootDirectory, '', $file);
153
-            $title        = "\n$relativeFile\n" . str_repeat('-', strlen($relativeFile)) . "\n";
153
+            $title        = "\n$relativeFile\n".str_repeat('-', strlen($relativeFile))."\n";
154 154
             $errors       = [];
155 155
             $links        = static::getLinks($file);
156 156
             foreach ($links as $link) {
157 157
                 static::checkLink($projectRootDirectory, $link, $file, $errors, $return);
158 158
             }
159 159
             if ([] !== $errors) {
160
-                echo $title . implode('', $errors);
160
+                echo $title.implode('', $errors);
161 161
             }
162 162
         }
163 163
 
@@ -187,11 +187,11 @@  discard block
 block discarded – undo
187 187
                                                  ],
188 188
                                              ],
189 189
                                          ]);
190
-        $result  = null;
190
+        $result = null;
191 191
         try {
192 192
             $headers = get_headers($href, 0, $context);
193 193
             if (false === $headers) {
194
-                throw new \RuntimeException('Failed getting headers for href ' . $href);
194
+                throw new \RuntimeException('Failed getting headers for href '.$href);
195 195
             }
196 196
             foreach ($headers as $header) {
197 197
                 if (false !== strpos($header, ' 200 ')) {
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
             $href,
211 211
             var_export($result, true)
212 212
         );
213
-        $return   = 1;
213
+        $return = 1;
214 214
         #$time     = round(microtime(true) - $start, 2);
215 215
         #fwrite(STDERR, "\n".'Failed ('.$time.' seconds): '.$href);
216 216
     }
Please login to merge, or discard this patch.
src/Helper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,14 +38,14 @@
 block discarded – undo
38 38
      */
39 39
     public static function getComposerJsonDecoded(string $path = null): array
40 40
     {
41
-        $path     = $path ?? self::getProjectRootDirectory() . '/composer.json';
41
+        $path     = $path ?? self::getProjectRootDirectory().'/composer.json';
42 42
         $contents = (string)\file_get_contents($path);
43 43
         if ('' === $contents) {
44 44
             throw new \RuntimeException('composer.json is empty');
45 45
         }
46 46
         $decoded = \json_decode($contents, true);
47 47
         if (JSON_ERROR_NONE !== \json_last_error()) {
48
-            throw new \RuntimeException('Failed loading composer.json: ' . \json_last_error_msg());
48
+            throw new \RuntimeException('Failed loading composer.json: '.\json_last_error_msg());
49 49
         }
50 50
 
51 51
         return $decoded;
Please login to merge, or discard this patch.
src/PHPUnit/TestDox/TestResult.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     ): void {
75 75
         $this->testSuccesful                = false;
76 76
         $this->symbol                       = $symbol;
77
-        $this->additionalInformation        .= "\n" . $additionalInformation;
77
+        $this->additionalInformation .= "\n".$additionalInformation;
78 78
         $this->additionalInformationVerbose = $additionalInformationVerbose;
79 79
     }
80 80
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             ),
95 95
             $this->symbol,
96 96
             $this->testMethod,
97
-            $verbose ? ' ' . $this->getFormattedRuntime() : '',
97
+            $verbose ? ' '.$this->getFormattedRuntime() : '',
98 98
             $this->getFormattedAdditionalInformation($verbose)
99 99
         );
100 100
     }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
             \implode(
139 139
                 "\n",
140 140
                 \array_map(
141
-                    function (string $text) {
141
+                    function(string $text) {
142 142
                         return \sprintf('   │ %s', $text);
143 143
                     },
144 144
                     \explode("\n", $this->additionalInformation)
Please login to merge, or discard this patch.
src/PHPUnit/CheckAnnotations.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
     {
44 44
         if (!is_dir($pathToTestsDirectory)) {
45 45
             throw new \InvalidArgumentException(
46
-                '$pathToTestsDirectory "' . $pathToTestsDirectory . '" does not exist"'
46
+                '$pathToTestsDirectory "'.$pathToTestsDirectory.'" does not exist"'
47 47
             );
48 48
         }
49
-        $this->largePath  = $pathToTestsDirectory . '/Large';
50
-        $this->mediumPath = $pathToTestsDirectory . '/Medium';
51
-        $this->smallPath  = $pathToTestsDirectory . '/Small';
49
+        $this->largePath  = $pathToTestsDirectory.'/Large';
50
+        $this->mediumPath = $pathToTestsDirectory.'/Medium';
51
+        $this->smallPath  = $pathToTestsDirectory.'/Small';
52 52
         $this->checkLarge();
53 53
         $this->checkMedium();
54 54
         $this->checkSmall();
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             return;
103 103
         }
104 104
 
105
-        $matches  = [];
105
+        $matches = [];
106 106
         preg_match_all(
107 107
             <<<REGEXP
108 108
 %(?<docblock>/\*(?:[^*]|\n|(?:\*(?:[^/]|\n)))*\*/|\n)\s+?public\s+?function\s+?(?<method>.+?)\(%
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         foreach ($matches['method'] as $key => $method) {
120 120
             $docblock = $matches['docblock'][$key];
121 121
             /* Found the annotation - continue */
122
-            if (false !== \strpos($docblock, '@' . $annotation)) {
122
+            if (false !== \strpos($docblock, '@'.$annotation)) {
123 123
                 continue;
124 124
             }
125 125
             /* No @test annotation found & method not beginning test =  not a test, so continue */
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
                 continue;
128 128
             }
129 129
             $this->errors[$fileInfo->getFilename()][] =
130
-                'Failed finding @' . $annotation . ' for method: ' . $method;
130
+                'Failed finding @'.$annotation.' for method: '.$method;
131 131
         }
132 132
     }
133 133
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             return false;
157 157
         }
158 158
         $docBlock = array_shift($matches['docblock']);
159
-        return strpos($docBlock, '@' . $annotation) !== false;
159
+        return strpos($docBlock, '@'.$annotation) !== false;
160 160
     }
161 161
 
162 162
 
Please login to merge, or discard this patch.
src/Psr4Validator.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
178 178
         $invalidPathMessage = "Namespace root '$namespaceRoot'\ncontains a path '$path'\nwhich doesn't exist\n";
179 179
         if (stripos($absPathRoot, "Magento") !== false) {
180 180
             $invalidPathMessage .= 'Magento\'s composer includes this by default, '
181
-                                   . 'it should be removed from the psr-4 section';
181
+                                    . 'it should be removed from the psr-4 section';
182 182
         }
183 183
         $this->missingPaths[$path] = $invalidPathMessage;
184 184
     }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -116,14 +116,14 @@  discard block
 block discarded – undo
116 116
             );
117 117
         }
118 118
 
119
-        return rtrim($namespaceRoot . $relativeNs, '\\');
119
+        return rtrim($namespaceRoot.$relativeNs, '\\');
120 120
     }
121 121
 
122 122
     private function getActualNamespace(\SplFileInfo $fileInfo): string
123 123
     {
124 124
         $contents = \file_get_contents($fileInfo->getPathname());
125 125
         if (false === $contents) {
126
-            throw new \RuntimeException('Failed getting file contents for ' . $fileInfo->getPathname());
126
+            throw new \RuntimeException('Failed getting file contents for '.$fileInfo->getPathname());
127 127
         }
128 128
         \preg_match('%namespace\s+?([^;]+)%', $contents, $matches);
129 129
         if ([] === $matches) {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             $realPath,
147 147
             \RecursiveDirectoryIterator::SKIP_DOTS
148 148
         );
149
-        $iterator          = new \RecursiveIteratorIterator(
149
+        $iterator = new \RecursiveIteratorIterator(
150 150
             $directoryIterator,
151 151
             \RecursiveIteratorIterator::SELF_FIRST
152 152
         );
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
                     $paths = [$paths];
203 203
                 }
204 204
                 foreach ($paths as $path) {
205
-                    $absPathRoot     = $this->pathToProjectRoot . '/' . $path;
205
+                    $absPathRoot     = $this->pathToProjectRoot.'/'.$path;
206 206
                     $realAbsPathRoot = \realpath($absPathRoot);
207 207
                     if (false === $realAbsPathRoot) {
208 208
                         $this->addMissingPathError($path, $namespaceRoot, $absPathRoot);
Please login to merge, or discard this patch.
src/PHPUnit/TestDox/CliTestDoxPrinter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         }
96 96
 
97 97
         $this->currentTestResult = new \EdmondsCommerce\PHPQA\PHPUnit\TestDox\TestResult(
98
-            function (string $color, string $buffer) {
98
+            function(string $color, string $buffer) {
99 99
                 return $this->formatWithColor($color, $buffer);
100 100
             },
101 101
             $className,
@@ -128,8 +128,8 @@  discard block
 block discarded – undo
128 128
     {
129 129
         if (null === $this->currentTestResult) {
130 130
             throw new \RuntimeException(
131
-                'Error in ' . __METHOD__ . ': '
132
-                . $t->getMessage() . "\n\n" . $t->getTraceAsString(),
131
+                'Error in '.__METHOD__.': '
132
+                . $t->getMessage()."\n\n".$t->getTraceAsString(),
133 133
                 $t->getCode(),
134 134
                 $t
135 135
             );
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 
204 204
     protected function printHeader(): void
205 205
     {
206
-        $this->write("\n" . Timer::resourceUsage() . "\n\n");
206
+        $this->write("\n".Timer::resourceUsage()."\n\n");
207 207
     }
208 208
 
209 209
     private function printNonSuccessfulTestsSummary(int $numberOfExecutedTests): void
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
             $this->write(
244 244
                 $this->formatWithColor(
245 245
                     'fg-yellow',
246
-                    "\n" . self::SYMBOL_SKIP . ' Skipped Tests: ' . $skippedTests . "\n\n"
246
+                    "\n".self::SYMBOL_SKIP.' Skipped Tests: '.$skippedTests."\n\n"
247 247
                 )
248 248
             );
249 249
         }
Please login to merge, or discard this patch.