PHP code example of uinno / code-analysis

1. Go to this page and download the library: Download uinno/code-analysis 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/ */

    

uinno / code-analysis example snippets

json
  "extra": {
    "code": {
      "rector": {
        "paths": [
          "/app/Containers/AppSection"
        ],
        "skip": [
          "/app/Ship/Migrations/*",
          "/app/Ship/Core/*",
          "/app/Containers/*/Data/Migrations/*",
          "/app/Containers/*/Data/Criterias/*",
          "/app/Containers/*/Routes/*"
        ]
      },
      "cs-fixer": {
        "paths": [
          "/app/Containers",
          "/config",
          "/database"
        ],
        "skip": [
          "/bootstrap",
          "/resources",
          "/node_modules",
          "/public",
          "/storage",
          "/vendor"        
        ]
      },
      "psalm": {
        "paths": [
          "/app/Containers"
        ],
        "skip": [
          "/vendor"
        ],
        "config": {
          "plugins": {
            "pluginClass": [
              {"class": "Psalm\\LaravelPlugin\\Plugin"}
            ]
          }
        }
      }
    }
  }