PHP Classes

File: .php-cs-fixer.php

Recommend this page to a friend!
  Classes of Massimiliano Arione   PHP Chess Game Bundle   .php-cs-fixer.php   Download  
File: .php-cs-fixer.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Chess Game Bundle
Manage a chess game in a Symfony application
Author: By
Last change:
Date: 2 years ago
Size: 511 bytes
 

Contents

Class file image Download
<?php
// see https://github.com/FriendsOfPHP/PHP-CS-Fixer

$finder = PhpCsFixer\Finder::create()
    ->
in([__DIR__.'/src', __DIR__.'/tests'])
;

return (new
PhpCsFixer\Config())
    ->
setRiskyAllowed(true)
    ->
setRules([
       
'@Symfony' => true,
       
'@Symfony:risky' => true,
       
'@PHP71Migration:risky' => true,
       
'@PHPUnit84Migration:risky' => true,
       
'declare_strict_types' => false,
       
'native_function_invocation' => ['include' => ['@all']],
    ])
    ->
setFinder($finder)
;