PHP Classes

File: .php_cs

Recommend this page to a friend!
  Classes of Rene Korss   Banklink   .php_cs   Download  
File: .php_cs
Role: Example script
Content type: text/plain
Description: Example script
Class: Banklink
Take payments with multiple payment gateways
Author: By
Last change:
Date: 5 years ago
Size: 426 bytes
 

Contents

Class file image Download
<?php
$finder
= Symfony\Component\Finder\Finder::create()
    ->
notPath('vendor')
    ->
notPath('docs')
    ->
in(__DIR__)
    ->
name('*.php');

return
PhpCsFixer\Config::create()
    ->
setRules([
       
'@PSR2' => true,
       
'array_syntax' => ['syntax' => 'short'],
       
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
       
'no_unused_imports' => true,
    ])
    ->
setUsingCache(false)
    ->
setFinder($finder);