PHP Classes

File: .php-cs-fixer.php

Recommend this page to a friend!
  Classes of jawira   PHP Sanitize Object   .php-cs-fixer.php   Download  
File: .php-cs-fixer.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Sanitize Object
Process class variables with rules from comments
Author: By
Last change:
Date: 11 months ago
Size: 426 bytes
 

Contents

Class file image Download
<?php declare(strict_types=1);

$finder = (new PhpCsFixer\Finder())
  ->
in(__DIR__ . DIRECTORY_SEPARATOR . 'src');

return (new
PhpCsFixer\Config())
  ->
setIndent(' ')
  ->
setRules([
   
'braces' => true,
   
'declare_strict_types' => true,
   
'encoding' => true,
   
'no_unused_imports' => true,
   
'phpdoc_summary' => true,
   
'single_blank_line_at_eof' => true,
   
'single_quote' => true,
  ])
  ->
setFinder($finder);