-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
40 lines (40 loc) · 2.12 KB
/
phpcs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Code Style Ruleset">
<rule ref="PSR12">
<exclude name="PSR12.Classes.AnonClassDeclaration"/>
<exclude name="Generic.Files.LineLength"/>
<exclude name="PSR12.Files.FileHeader.SpacingAfterBlock"/>
</rule>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array" extend="true">
<element key="join" value="implode" />
<element key="chop" value="rtrim" />
<element key="strchr" value="strstr" />
<element key="show_source" value="highlight_file" />
<element key="ini_alter" value="ini_set" />
<element key="dns_check_record" value="checkdnsrr" />
<element key="dns_get_mx" value="getmxrr" />
<element key="doubleval" value="floatval" />
<element key="is_long" value="is_int" />
<element key="is_integer" value="is_int" />
<element key="is_double" value="is_float" />
<element key="is_real" value="is_float" />
<element key="fputs" value="fwrite" />
<element key="set_file_buffer" value="stream_set_write_buffer" />
<element key="set_socket_blocking" value="stream_set_blocking" />
<element key="socket_set_blocking" value="stream_set_blocking" />
<element key="stream_register_wrapper" value="stream_wrapper_register" />
<element key="socket_set_timeout" value="stream_set_timeout" />
<element key="socket_get_status" value="stream_get_meta_data" />
<element key="is_writeable" value="is_writable" />
<element key="pos" value="current" />
<element key="sizeof" value="count" />
</property>
</properties>
</rule>
<arg name="colors"/>
<file>./src</file>
<exclude-pattern type="relative">*/tests/*</exclude-pattern>
<exclude-pattern type="relative">*/vendor/*</exclude-pattern>
</ruleset>