]> git.openstreetmap.org Git - nominatim.git/blobdiff - phpcs.xml
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / phpcs.xml
index a48b5c3e608db00b6ad24a4e3d979af7537e581d..09360731510b48b7ecdf8ebe8827897029b5a3db 100644 (file)
--- a/phpcs.xml
+++ b/phpcs.xml
 
 
 
+  <!-- eval, system, etc -->
+  <rule ref="Generic.PHP.ForbiddenFunctions">
+    <properties>
+      <property name="forbiddenFunctions" type="array" value="sizeof=>count,delete=>unset,print=>echo,create_function=>null,eval=>null"/>
+    </properties>
+  </rule>
+
   <!-- **************************************************************
        DOCUMENTATION
        ************************************************************** -->
     <severity>0</severity>
   </rule>
 
+  <!-- array() instead of [] for initialisation -->
+  <rule ref="Generic.Arrays.DisallowShortArraySyntax.Found" />