Skip to content

Commit c4f2692

Browse files
committed
Update coding standard
1 parent 13c60f0 commit c4f2692

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"nette/di": "~3.0.0",
2929
"nette/http": "~3.0.3",
3030
"ninjify/nunjuck": "^0.2.0",
31-
"ninjify/qa": "^0.8.0",
31+
"ninjify/qa": "^0.10.0",
3232
"phpstan/extension-installer": "^1.0",
3333
"phpstan/phpstan-deprecation-rules": "^0.11",
3434
"phpstan/phpstan-nette": "^0.11",

ruleset.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint"/>
66
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfter"/>
77
<exclude name="Squiz.Commenting.FunctionComment.InvalidTypeHint"/>
8+
<exclude name="SlevomatCodingStandard.Classes.SuperfluousTraitNaming.SuperfluousSuffix"/>
89
</rule>
910

1011
<!-- Specific rules -->

src/Psr7UriFactory.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ public static function fromNette(UrlScript $url): Psr7Uri
1111
{
1212
$uri = $url->getAbsoluteUrl();
1313

14-
if ($uri === 'http:///' && PHP_SAPI === 'cli') {
15-
$psr7 = new Psr7Uri();
16-
} else {
17-
$psr7 = new Psr7Uri($uri);
18-
}
19-
14+
$psr7 = $uri === 'http:///' && PHP_SAPI === 'cli' ? new Psr7Uri() : new Psr7Uri($uri);
2015
$psr7 = $psr7->withUrlScript($url);
2116

2217
return $psr7;

0 commit comments

Comments
 (0)