File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
12<!-- SPDX-FileCopyrightText: 2026 LibreSign -->
23<!-- SPDX-License-Identifier: AGPL-3.0-or-later -->
3-
4- <?xml version =" 1.0" ?>
54<ruleset name =" XObjectTemplate" >
65 <description >Code style rules for xobject-template.</description >
76 <arg value =" sp" />
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
12<!-- SPDX-FileCopyrightText: 2026 LibreSign -->
23<!-- SPDX-License-Identifier: AGPL-3.0-or-later -->
3-
4- <?xml version =" 1.0" ?>
54<ruleset name =" XObjectTemplate PMD"
65 xmlns =" http://pmd.sf.net/ruleset/1.0.0"
76 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
109 <rule ref =" rulesets/cleancode.xml" >
1110 <exclude name =" ErrorControlOperator" />
1211 </rule >
13- <rule ref =" rulesets/codesize.xml" />
12+ <rule ref =" rulesets/codesize.xml" >
13+ <exclude name =" CyclomaticComplexity" />
14+ <exclude name =" NPathComplexity" />
15+ </rule >
1416 <rule ref =" rulesets/design.xml" />
1517 <rule ref =" rulesets/naming.xml" >
1618 <exclude name =" ShortVariable" />
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
12<!-- SPDX-FileCopyrightText: 2026 LibreSign -->
23<!-- SPDX-License-Identifier: AGPL-3.0-or-later -->
3-
4- <?xml version =" 1.0" ?>
54<psalm errorLevel =" 3"
65 resolveFromConfigFile =" true"
76 findUnusedBaselineEntry =" true"
Original file line number Diff line number Diff line change 66declare (strict_types=1 );
77
88use Rector \Config \RectorConfig ;
9+ use Rector \Php81 \Rector \ClassMethod \NewInInitializerRector ;
910
1011return RectorConfig::configure ()
1112 ->withPaths ([
1213 __DIR__ . '/src ' ,
1314 __DIR__ . '/tests ' ,
1415 ])
16+ ->withSkip ([
17+ NewInInitializerRector::class,
18+ ])
1519 ->withPhpSets ();
Original file line number Diff line number Diff line change @@ -29,7 +29,10 @@ public function testParseMergesInheritedStylesAndKeepsAllowedTags(): void
2929 self ::assertCount (3 , $ nodes [0 ]->children );
3030 self ::assertSame ('span ' , $ nodes [0 ]->children [0 ]->tag );
3131 self ::assertSame ('Hello ' , $ nodes [0 ]->children [0 ]->children [0 ]->text );
32- self ::assertSame ('font-size:10; margin:2;font-weight:bold ' , $ nodes [0 ]->children [0 ]->children [0 ]->attributes ['style ' ]);
32+ self ::assertSame (
33+ 'font-size:10; margin:2;font-weight:bold ' ,
34+ $ nodes [0 ]->children [0 ]->children [0 ]->attributes ['style ' ],
35+ );
3336 self ::assertSame ('br ' , $ nodes [0 ]->children [1 ]->tag );
3437 self ::assertSame ('World ' , $ nodes [0 ]->children [2 ]->text );
3538 self ::assertSame ('font-size:10; margin:2 ' , $ nodes [0 ]->children [2 ]->attributes ['style ' ]);
Original file line number Diff line number Diff line change @@ -57,4 +57,4 @@ public function testBuildCreatesDocumentPayloadParts(): void
5757 self ::assertSame (2 , $ result ->metadata ['node_count ' ]);
5858 self ::assertArrayHasKey ('render_ms ' , $ result ->metadata );
5959 }
60- }
60+ }
You can’t perform that action at this time.
0 commit comments