PHP Classes

File: .php-cs-fixer.php

Recommend this page to a friend!
  Packages of Mohamed Abdulalim   Persistence   .php-cs-fixer.php   Download  
File: .php-cs-fixer.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Persistence
Retrieve database table records by a given order
Author: By
Last change:
Date: 20 days ago
Size: 540 bytes
 

Contents

Class file image Download
<?php

declare(strict_types=1);

use
PhpCsFixer\Config;
use
PhpCsFixer\Finder;

$finder = Finder::create()
    ->
in(__DIR__ . '/src')
    ->
in(__DIR__ . '/tests')
    ->
name('*.php')
    ->
ignoreDotFiles(true)
    ->
ignoreVCS(true);

return (new
Config())
    ->
setRiskyAllowed(true)
    ->
setRules([
       
'@PSR12' => true,
       
'strict_param' => true,
       
'declare_strict_types' => true,
       
'no_unused_imports' => true,
       
'no_extra_blank_lines' => true,
       
'single_quote' => true
   
])
    ->
setFinder($finder);