PHP Classes

File: .php_cs

Recommend this page to a friend!
  Classes of stelin  >  swoft  >  .php_cs  >  Download  
File: .php_cs
Role: Example script
Content type: text/plain
Description: Example script
Class: swoft
Framework to develop coroutine based application
Author: By
Last change:
Date: 9 months ago
Size: 979 bytes
 

Contents

Class file image Download
<?php

$header
= <<<'EOF'
This file is part of Swoft.

@link https://swoft.org
@document https://swoft.org/docs
@contact group@swoft.org
@license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
EOF;

return
PhpCsFixer\Config::create()
    ->
setRiskyAllowed(true)
    ->
setRules([
       
'@PSR2' => true,
       
'header_comment' => [
           
'commentType' => 'PHPDoc',
           
'header' => $header,
           
'separate' => 'none'
       
],
       
'array_syntax' => [
           
'syntax' => 'short'
       
],
       
'single_quote' => true,
       
'class_attributes_separation' => true,
       
'no_unused_imports' => true,
       
'standardize_not_equals' => true,
    ])
    ->
setFinder(
       
PhpCsFixer\Finder::create()
            ->
exclude('public')
            ->
exclude('resources')
            ->
exclude('config')
            ->
exclude('runtime')
            ->
exclude('vendor')
            ->
in(__DIR__)
    )
    ->
setUsingCache(false);


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