File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed
Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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 -->
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments