Use timezone object
[GitHub/WoltLab/WCF.git] / .phpcs.xml
1 <?xml version="1.0"?>
2 <ruleset
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"
5 >
6 <file>wcfsetup/</file>
7 <exclude-pattern>lib/system/api/*</exclude-pattern>
8 <arg name="extensions" value="php" />
9 <arg value="p"/>
10 <arg name="basepath" value="."/>
11
12 <rule ref="PSR12">
13 <!-- https://github.com/squizlabs/PHP_CodeSniffer/issues/3200 -->
14 <exclude name="PSR12.Classes.AnonClassDeclaration.SpaceAfterKeyword"/>
15
16 <!-- We have a large number of comments between the closing brace of an `if` and the `else`. -->
17 <exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace"/>
18 </rule>
19 </ruleset>