PHP Classes

File: vendor/psy/psysh/.php_cs

Recommend this page to a friend!
  Classes of Renato Lucena   PHP Pokemon Script   vendor/psy/psysh/.php_cs   Download  
File: vendor/psy/psysh/.php_cs
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Pokemon Script
Provides an API to manage a database of Pokemons
Author: By
Last change:
Date: 6 years ago
Size: 1,108 bytes
 

Contents

Class file image Download
<?php

use Symfony\CS\Config\Config;
use
Symfony\CS\FixerInterface;
use
Symfony\CS\Fixer\Contrib\HeaderCommentFixer;

$header = <<<EOF
This file is part of Psy Shell.

(c) 2012-2017 Justin Hileman

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;

HeaderCommentFixer::setHeader($header);

$config = Config::create()
   
// use symfony level and extra fixers:
   
->level(FixerInterface::SYMFONY_LEVEL)
    ->
fixers(array(
       
'align_double_arrow',
       
'concat_with_spaces',
       
'header_comment',
       
'long_array_syntax',
       
'ordered_use',
       
'strict',
       
'-concat_without_spaces',
       
'-method_argument_space',
       
'-pre_increment',
       
'-unalign_double_arrow',
       
'-unalign_equals',
       
'-no_empty_comment', // stop removing slashes in the middle of multi-line comments
   
))
    ->
setUsingLinter(false);

$finder = $config->getFinder()
    ->
in(__DIR__)
    ->
name('.php_cs')
    ->
name('build-manual')
    ->
name('build-phar')
    ->
exclude('build-vendor');

return
$config;