PHP Classes

File: .php-cs-fixer.php

Recommend this page to a friend!
  Classes of WsdlToPhp   Package Base   .php-cs-fixer.php   Download  
File: .php-cs-fixer.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Package Base
Base classes for implementing a package generator
Author: By
Last change:
Date: 1 year ago
Size: 504 bytes
 

Contents

Class file image Download
<?php

$finder
= PhpCsFixer\Finder::create()
    ->
exclude('vendor')
    ->
in(__DIR__);

return (new
PhpCsFixer\Config())
    ->
setUsingCache(false)
    ->
setRules(array(
       
'@PSR2' => true,
       
'array_syntax' => [
           
'syntax' => 'short',
        ],
       
'binary_operator_spaces' => true,
       
'no_whitespace_in_blank_line' => true,
       
'ternary_operator_spaces' => true,
       
'cast_spaces' => true,
       
'trailing_comma_in_multiline' => true
   
))
    ->
setFinder($finder);