PHP Classes

File: .php_cs

Recommend this page to a friend!
  Packages of Insolita   PHP Array Structure Validator   .php_cs   Download  
File: .php_cs
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Array Structure Validator
Validate complex array structure using rules
Author: By
Last change:
Date: 5 years ago
Size: 600 bytes
 

Contents

Class file image Download
<?php
$finder = PhpCsFixer\Finder::create()
            ->in(['src']);
return PhpCsFixer\Config::create()
    ->setFinder($finder)
    ->setRules([
        '@PSR2' => true,
        'array_syntax' => ['syntax' => 'short'],
        'general_phpdoc_annotation_remove' => ['annotations' => ['author']],
        'header_comment' => [
            'comment_type' => 'PHPDoc',
            'header' => <<<COMMENT
@copyright Copyright (c) 2020 Insolita <webmaster100500@ya.ru> and contributors
@license https://github.com/insolita/yii2-array-structure-validator/blob/master/LICENSE
COMMENT
        ]
    ])
;