PHP Classes

File: .php-cs-fixer.php

Recommend this page to a friend!
  Packages of Saro Carvello   PHP Web MVC Framework   .php-cs-fixer.php   Download  
File: .php-cs-fixer.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Web MVC Framework
MVC framework providing autogenerated MySQL models
Author: By
Last change:
Date: 8 months ago
Size: 514 bytes
 

Contents

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

$finder = PhpCsFixer\Finder::create()
    ->
in([
       
__DIR__ . '/framework',
       
__DIR__ . '/controllers',
       
__DIR__ . '/models',
       
__DIR__ . '/views',
       
__DIR__ . '/util',
       
__DIR__ . '/classes',
    ])
    ->
name('*.php');

return (new
PhpCsFixer\Config())
    ->
setFinder($finder)
    ->
setRules([
       
'nullable_type_declaration_for_default_null_value' => true,
    ]);

foreach (
$finder as $file) {
    echo
$file->getRealPath() . PHP_EOL;
}