PHP Classes

File: vendor/smalot/pdfparser/.php-cs-fixer.php

Recommend this page to a friend!
  Classes of Cuthbert Martin Lwinga   PHP Neural Net Library   vendor/smalot/pdfparser/.php-cs-fixer.php   Download  
File: vendor/smalot/pdfparser/.php-cs-fixer.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Neural Net Library
Build, train, evaluate, and use neural networks
Author: By
Last change:
Date: 6 months ago
Size: 869 bytes
 

Contents

Class file image Download
<?php

use PhpCsFixer\Config;
use
PhpCsFixer\Finder;

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

$config = new Config();
$config
   
->setFinder($finder)
    ->
setRiskyAllowed(true)
    ->
setRules([
       
'@Symfony' => true,
       
'@Symfony:risky' => true,
       
'array_syntax' => ['syntax' => 'short'],
       
'no_empty_phpdoc' => true,
       
'no_unused_imports' => true,
       
'no_superfluous_phpdoc_tags' => true,
       
'ordered_imports' => true,
       
'phpdoc_summary' => false,
       
'protected_to_private' => false,
       
'get_class_to_class_keyword' => false, // override for PHP < 8.0 (because ::class usage is not allowed there)
       
'modernize_strpos' => false, // override for PHP < 8.0 (because str_contains not available in PHP 7.x)
   
])
;

return
$config;