PHP Classes

File: .php-cs-fixer.dist.php

Recommend this page to a friend!
  Classes of Jose Luis Quintana   GImage   .php-cs-fixer.dist.php   Download  
File: .php-cs-fixer.dist.php
Role: Example script
Content type: text/plain
Description: Example script
Class: GImage
Create graphic images with a fluent interface
Author: By
Last change:
Date: 1 year ago
Size: 760 bytes
 

Contents

Class file image Download
<?php

$finder
= PhpCsFixer\Finder::create()
    ->
in(__DIR__ . DIRECTORY_SEPARATOR . 'tests')
    ->
in(__DIR__ . DIRECTORY_SEPARATOR . 'src')
    ->
append(['.php-cs-fixer.dist.php']);

$rules = [
   
'@Symfony' => true,
   
'phpdoc_no_empty_return' => false,
   
'array_syntax' => ['syntax' => 'short'],
   
'yoda_style' => false,
   
'binary_operator_spaces' => [
       
'operators' => [
           
'=>' => 'align',
           
'=' => 'align',
        ],
    ],
   
'concat_space' => ['spacing' => 'one'],
   
'not_operator_with_space' => false,
];

$rules['increment_style'] = ['style' => 'post'];

return (new
PhpCsFixer\Config())
    ->
setUsingCache(true)
    ->
setRules($rules)
    ->
setFinder($finder);