Skip to content

Commit 3add4da

Browse files
committed
overhaul XML files
1 parent 524b457 commit 3add4da

File tree

7 files changed

+75
-75
lines changed

7 files changed

+75
-75
lines changed

.phpcs.xml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?xml version="1.0"?>
22
<ruleset>
3-
<file>files/</file>
4-
<exclude-pattern>lib/system/api/*</exclude-pattern>
5-
<exclude-pattern>node_modules/*</exclude-pattern>
6-
<arg name="extensions" value="php" />
7-
<arg value="p"/>
8-
<arg name="basepath" value="."/>
3+
<file>files/</file>
4+
<exclude-pattern>lib/system/api/*</exclude-pattern>
5+
<exclude-pattern>node_modules/*</exclude-pattern>
6+
<arg name="extensions" value="php" />
7+
<arg value="p" />
8+
<arg name="basepath" value="." />
99

10-
<rule ref="PSR12">
11-
<!-- https://github.com/squizlabs/PHP_CodeSniffer/issues/3200 -->
12-
<exclude name="PSR12.Classes.AnonClassDeclaration.SpaceAfterKeyword"/>
13-
14-
<!-- We have a large number of comments between the closing brace of an `if` and the `else`. -->
15-
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace"/>
16-
</rule>
10+
<rule ref="PSR12">
11+
<!-- https://github.com/squizlabs/PHP_CodeSniffer/issues/3200 -->
12+
<exclude name="PSR12.Classes.AnonClassDeclaration.SpaceAfterKeyword" />
13+
14+
<!-- We have a large number of comments between the closing brace of an `if` and the `else`. -->
15+
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace" />
16+
</rule>
1717
</ruleset>

eventListener.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/maelstrom/eventListener.xsd">
3-
<import>
4-
<eventlistener name="disableCron">
5-
<eventclassname>wcf\page\AbstractPage</eventclassname>
6-
<eventname>assignVariables</eventname>
7-
<listenerclassname>wcf\system\event\listener\CronjobDisableExecutionListener</listenerclassname>
8-
<inherit>1</inherit>
9-
</eventlistener>
10-
</import>
2+
<data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com https://www.woltlab.com/XSD/6.1/eventListener.xsd">
3+
<import>
4+
<eventlistener name="disableCron">
5+
<eventclassname>wcf\page\AbstractPage</eventclassname>
6+
<eventname>assignVariables</eventname>
7+
<listenerclassname>wcf\system\event\listener\CronjobDisableExecutionListener</listenerclassname>
8+
<inherit>1</inherit>
9+
</eventlistener>
10+
</import>
1111
</data>

language/de-informal.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<language xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/5.4/language.xsd" languagecode="de-informal" languagename="Deutsch" countrycode="de">
3-
<import>
4-
<category name="wcf.acp.option">
5-
<item name="wcf.acp.option.cronjob_execute"><![CDATA[CronJobs bei Seitenaufrufen ausführen]]></item>
6-
</category>
7-
</import>
2+
<language xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com https://www.woltlab.com/XSD/6.1/language.xsd" languagecode="de-informal" languagename="Deutsch" countrycode="de">
3+
<import>
4+
<category name="wcf.acp.option">
5+
<item name="wcf.acp.option.cronjob_execute"><![CDATA[CronJobs bei Seitenaufrufen ausführen]]></item>
6+
</category>
7+
</import>
88
</language>

language/de.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<language xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/5.4/language.xsd" languagecode="de" languagename="Deutsch" countrycode="de">
3-
<import>
4-
<category name="wcf.acp.option">
5-
<item name="wcf.acp.option.cronjob_execute"><![CDATA[CronJobs bei Seitenaufrufen ausführen]]></item>
6-
</category>
7-
</import>
2+
<language xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com https://www.woltlab.com/XSD/6.1/language.xsd" languagecode="de" languagename="Deutsch" countrycode="de">
3+
<import>
4+
<category name="wcf.acp.option">
5+
<item name="wcf.acp.option.cronjob_execute"><![CDATA[CronJobs bei Seitenaufrufen ausführen]]></item>
6+
</category>
7+
</import>
88
</language>

language/en.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<language xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/5.4/language.xsd" languagecode="en" languagename="English" countrycode="gb">
3-
<import>
4-
<category name="wcf.acp.option">
5-
<item name="wcf.acp.option.cronjob_execute"><![CDATA[Run cronjobs on page calls]]></item>
6-
</category>
7-
</import>
2+
<language xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com https://www.woltlab.com/XSD/6.1/language.xsd" languagecode="en" languagename="English" countrycode="gb">
3+
<import>
4+
<category name="wcf.acp.option">
5+
<item name="wcf.acp.option.cronjob_execute"><![CDATA[Run cronjobs on page calls]]></item>
6+
</category>
7+
</import>
88
</language>

option.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/maelstrom/option.xsd">
3-
<import>
4-
<options>
5-
<option name="cronjob_execute">
6-
<categoryname>module.system</categoryname>
7-
<optiontype>boolean</optiontype>
8-
<defaultvalue>0</defaultvalue>
9-
</option>
10-
</options>
11-
</import>
2+
<data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com https://www.woltlab.com/XSD/6.1/option.xsd">
3+
<import>
4+
<options>
5+
<option name="cronjob_execute">
6+
<categoryname>module.system</categoryname>
7+
<optiontype>boolean</optiontype>
8+
<defaultvalue>0</defaultvalue>
9+
</option>
10+
</options>
11+
</import>
1212
</data>

package.xml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<package xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/5.4/package.xsd" name="de.mysterycode.wcf.cron">
3-
<packageinformation>
4-
<!-- de.mysterycode.wcf.cron -->
5-
<packagename>External Cronjob Execution API</packagename>
6-
<packagedescription>Disables automatic cronjob execution and implements a script callable via browser or shell.</packagedescription>
7-
<version>1.1.6</version>
8-
<date>2025-01-05</date>
9-
</packageinformation>
10-
<authorinformation>
11-
<author>Florian Gail, Morik</author>
12-
<authorurl>https://softcreatr.dev</authorurl>
13-
</authorinformation>
14-
<requiredpackages>
15-
<requiredpackage minversion="6.1.0">com.woltlab.wcf</requiredpackage>
16-
</requiredpackages>
17-
<excludedpackages>
18-
<excludedpackage version="6.2.0 dev 1">com.woltlab.wcf</excludedpackage>
19-
</excludedpackages>
20-
<instructions type="install">
21-
<instruction type="file"/>
22-
<instruction type="eventListener"/>
23-
<instruction type="option"/>
24-
<instruction type="language"/>
25-
</instructions>
2+
<package xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com https://www.woltlab.com/XSD/6.1/package.xsd" name="de.mysterycode.wcf.cron">
3+
<packageinformation>
4+
<!-- de.mysterycode.wcf.cron -->
5+
<packagename>External Cronjob Execution API</packagename>
6+
<packagedescription>Disables automatic cronjob execution and implements a script callable via browser or shell.</packagedescription>
7+
<version>1.1.6</version>
8+
<date>2025-01-05</date>
9+
</packageinformation>
10+
<authorinformation>
11+
<author>Florian Gail, Morik</author>
12+
<authorurl>https://softcreatr.dev</authorurl>
13+
</authorinformation>
14+
<requiredpackages>
15+
<requiredpackage minversion="6.1.0">com.woltlab.wcf</requiredpackage>
16+
</requiredpackages>
17+
<excludedpackages>
18+
<excludedpackage version="6.2.0 dev 1">com.woltlab.wcf</excludedpackage>
19+
</excludedpackages>
20+
<instructions type="install">
21+
<instruction type="file" />
22+
<instruction type="eventListener" />
23+
<instruction type="option" />
24+
<instruction type="language" />
25+
</instructions>
2626
<instructions type="update" fromversion="1.1.5">
27-
<instruction type="file"/>
27+
<instruction type="file" />
2828
</instructions>
2929
</package>

0 commit comments

Comments
 (0)