Skip to content

Commit 9c30dc8

Browse files
author
joseph
committed
cs fixes
1 parent a2e9394 commit 9c30dc8

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/Markdown/LinksChecker.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use RegexIterator;
1313
use RuntimeException;
1414
use Throwable;
15+
1516
use function current;
1617
use function dirname;
1718
use function explode;
@@ -182,9 +183,9 @@ private static function checkLink(
182183
*/
183184
private static function validateHttpLink(array $link, array &$errors, int &$return): void
184185
{
185-
static $checked = [];
186+
static $checked = [];
186187
list(, $anchor, $href) = $link;
187-
$hashPos = (int)strpos($href, '#');
188+
$hashPos = (int)strpos($href, '#');
188189
if ($hashPos > 0) {
189190
$href = substr($href, 0, $hashPos);
190191
}

src/Psr4Validator.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ public function __construct(array $ignoreRegexPatterns, string $pathToProjectRoo
5757
}
5858

5959
/**
60-
* @return array[]
6160
* @throws Exception
6261
*
62+
* @return array[]
6363
*/
6464
public function main(): array
6565
{
@@ -97,11 +97,11 @@ private function loop(): void
9797
}
9898

9999
/**
100+
* @throws Exception
101+
*
100102
* @return Generator|mixed[]
101103
* @SuppressWarnings(PHPMD.StaticAccess)
102104
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
103-
* @throws Exception
104-
*
105105
*/
106106
private function yieldPhpFilesToCheck(): Generator
107107
{
@@ -181,9 +181,6 @@ public function __construct(RecursiveIteratorIterator $iterator)
181181
/**
182182
* @param SplFileInfo|mixed $item1
183183
* @param SplFileInfo|mixed $item2
184-
*
185-
* @return int
186-
*
187184
*/
188185
protected function compare($item1, $item2): int
189186
{

0 commit comments

Comments
 (0)