PHP Classes

File: .php-cs-fixer.php

Recommend this page to a friend!
  Classes of Jorge Castro  >  BladeOne  >  .php-cs-fixer.php  >  Download  
File: .php-cs-fixer.php
Role: Example script
Content type: text/plain
Description: Example script
Class: BladeOne
Standalone template engine that compiles into PHP
Author: By
Last change:
Date: 2 months ago
Size: 442 bytes
 

Contents

Class file image Download
<?php

use PhpCsFixer\Config;
use
PhpCsFixer\Finder;

$rules = [
   
'@PSR2' => true,
   
'array_syntax' => ['syntax' => 'short']
];


$finder = Finder::create()
    ->
in([
       
__DIR__ . '/lib'
   
])
    ->
name('*.php')
    ->
notName('*.blade.php')
    ->
ignoreDotFiles(true)
    ->
ignoreVCS(true);

$config = new Config();
return
$config->setFinder($finder)
    ->
setRules($rules)
    ->
setRiskyAllowed(true)
    ->
setUsingCache(true);

For more information send a message to info at phpclasses dot org.