PHP Classes

File: .php-cs-fixer.php

Recommend this page to a friend!
  Packages 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: Refactor docker container to be able to run any PHP version from 7.4 (#56)

Thanks AI for 😄:
- update Dockerfile
- update docker-compose
- create Makefile

Update code with:
- CS Fixer
- Rector
Date: 6 months ago
Size: 586 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,
        'phpdoc_separation' => false,
        'single_line_empty_body' => false,
    ))
    ->setFinder($finder);