29 lines
777 B
PHP
29 lines
777 B
PHP
<?php
|
|
|
|
$header = <<<EOF
|
|
This file is part of the overtrue/laravel-follow.
|
|
|
|
(c) overtrue <i@overtrue.me>
|
|
|
|
This source file is subject to the MIT license that is bundled
|
|
with this source code in the file LICENSE.
|
|
EOF;
|
|
|
|
return PhpCsFixer\Config::create()
|
|
->setRiskyAllowed(true)
|
|
->setRules(array(
|
|
'header_comment' => array('header' => $header),
|
|
'array_syntax' => array('syntax' => 'short'),
|
|
'ordered_class_elements' => true,
|
|
'list_syntax' => array('syntax' => 'long'),
|
|
'ordered_imports' => true,
|
|
'php_unit_strict' => true,
|
|
'phpdoc_order' => true,
|
|
'strict_comparison' => true,
|
|
'strict_param' => true,
|
|
))
|
|
->setFinder(
|
|
PhpCsFixer\Finder::create()
|
|
->in(__DIR__.'/src')
|
|
)
|
|
; |