PHP code example of magician79 / coding-standard

1. Go to this page and download the library: Download magician79/coding-standard 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/ */

    

magician79 / coding-standard example snippets

bash
vendor/bin/var-dump-check --skip-dir=vendor --skip-dir=var --skip-dir=storage --skip-dir=cache .
xml
  <exclude name="SlevomatCodingStandard.Functions.UnusedParameter"/>
  
xml
  <rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators">
    <properties>
      <property name="error" value="false"/>
      <property name="warning" value="true"/>
    </properties>
  </rule>
  
xml
  <exclude-pattern>src/Legacy/*</exclude-pattern>