PHP Classes

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

Recommend this page to a friend!
  Classes of Mateo   PHP Telegram Bot to Purge Messages   .php-cs-fixer.dist.php   Download  
File: .php-cs-fixer.dist.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Telegram Bot to Purge Messages
Bot to delete messages in telegram
Author: By
Last change:
Date: 1 month ago
Size: 617 bytes
 

Contents

Class file image Download
<?php

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

$config = new PhpCsFixer\Config();

return
$config->setRules([
       
'@PSR12' => true,
       
'array_syntax' => ['syntax' => 'short'],
       
'assign_null_coalescing_to_coalesce_equal' => true,
       
'concat_space' => ['spacing' => 'one'],
       
'single_import_per_statement' => false,
       
'single_blank_line_at_eof' => true,
       
'blank_lines_before_namespace' => true,
       
'single_line_after_imports' => true,
       
'no_unused_imports' => true,
    ])
    ->
setFinder($finder)
;