PHP code example of digitoimistodude / dude-coding-standards
1. Go to this page and download the library: Download digitoimistodude/dude-coding-standards library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
digitoimistodude / dude-coding-standards example snippets
xml
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array">
<element key="my_deprecated_function" value="new_function"/>
</property>
</properties>
</rule>
xml
<!-- Disable specific rules inherited from WordPress standards -->
<rule ref="Squiz.PHP.SomeRule">
<severity>0</severity>
</rule>