PHP Classes

File: .php_cs

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WordPress React Plugin Kit   .php_cs   Download  
File: .php_cs
Role: Example script
Content type: text/plain
Description: Example script
Class: WordPress React Plugin Kit
Environment to develop new WordPress plugins
Author: By
Last change:
Date: 1 year ago
Size: 641 bytes
 

Contents

Class file image Download
<?php

require_once __DIR__ . '/vendor/tareq1988/wp-php-cs-fixer/loader.php';

$finder = PhpCsFixer\Finder::create()
    ->
exclude( 'node_modules' )
    ->
exclude( 'vendors' )
    ->
exclude( 'assets' )
    ->
exclude( 'languages' )
    ->
exclude( 'src' )
    ->
exclude( 'bin' )
    ->
in( __DIR__ );

$config = PhpCsFixer\Config::create()
    ->
registerCustomFixers( [
        new
WeDevs\Fixer\SpaceInsideParenthesisFixer(),
        new
WeDevs\Fixer\BlankLineAfterClassOpeningFixer(),
    ] )
    ->
setRiskyAllowed( true )
    ->
setUsingCache( false )
    ->
setRules( WeDevs\Fixer\Fixer::rules() )
    ->
setFinder( $finder );

return
$config;