PHP Classes

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

Recommend this page to a friend!
  Classes of Eric Sizemore   PHP API Client with Guzzle   .php-cs-fixer.dist.php   Download  
File: .php-cs-fixer.dist.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP API Client with Guzzle
Send HTTP requests to API servers using Guzzle
Author: By
Last change:
Date: 8 months ago
Size: 891 bytes
 

Contents

Class file image Download
<?php

$config
= new PhpCsFixer\Config();

$config
   
->setRiskyAllowed(true)
    ->
setRules([
       
'@PER-CS' => true,
       
'@PSR2' => true,
       
'@PSR12' => true,
       
'@PHP82Migration' => true,
       
'array_syntax' => ['syntax' => 'short'],
       
'binary_operator_spaces' => [
           
'operators' => [
               
'=>' => 'align',
               
'=' => 'align',
            ],
        ],
       
'ordered_imports' => false,
       
//'global_namespace_import' => ['import_classes' => true, 'import_constants' => true, 'import_functions' => true],
   
])
    ->
setFinder(
       
PhpCsFixer\Finder::create()
            ->
in(__DIR__ . '/src')
            ->
in(__DIR__ . '/tests')
            ->
append([__DIR__ . '/rector.php', __DIR__ . '/.php-cs-fixer.dist.php'])
    )
;

return
$config;