PHP Classes

File: libraries/vendor/nesbot/carbon/.php_cs.dist

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   PHP Slim Framework 3 Modular Application   libraries/vendor/nesbot/carbon/.php_cs.dist   Download  
File: libraries/vendor/nesbot/carbon/.php_cs.dist
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Slim Framework 3 Modular Application
Create modular applications using Slim Framework
Author: By
Last change:
Date: 6 years ago
Size: 1,624 bytes
 

Contents

Class file image Download
<?php

use PhpCsFixer\Config;
use
PhpCsFixer\Finder;

$rules = [
   
'@PSR2' => true,
   
'array_syntax' => [
       
'syntax' => 'long',
    ],
   
'binary_operator_spaces' => [
       
'align_double_arrow' => false,
       
'align_equals' => false,
    ],
   
'blank_line_before_return' => true,
   
'cast_spaces' => true,
   
'concat_space' => [
       
'spacing' => 'none',
    ],
   
'ereg_to_preg' => true,
   
'method_separation' => true,
   
'no_blank_lines_after_phpdoc' => true,
   
'no_extra_consecutive_blank_lines' => true,
   
'no_short_bool_cast' => true,
   
'no_unneeded_control_parentheses' => true,
   
'no_unused_imports' => true,
   
'no_whitespace_in_blank_line' => true,
   
'ordered_imports' => true,
   
'phpdoc_align' => true,
   
'phpdoc_indent' => true,
   
'phpdoc_inline_tag' => true,
   
'phpdoc_no_access' => true,
   
'phpdoc_no_alias_tag' => [
       
'type' => 'var',
    ],
   
'phpdoc_no_package' => true,
   
'phpdoc_order' => true,
   
'phpdoc_scalar' => true,
   
'phpdoc_separation' => true,
   
'phpdoc_to_comment' => true,
   
'phpdoc_trim' => true,
   
'phpdoc_types' => true,
   
'phpdoc_var_without_name' => true,
   
'self_accessor' => true,
   
'single_quote' => true,
   
'space_after_semicolon' => true,
   
'standardize_not_equals' => true,
   
'ternary_operator_spaces' => true,
   
'trailing_comma_in_multiline_array' => true,
   
'trim_array_spaces' => true,
   
'unary_operator_spaces' => true,
];

return
Config::create()->setRules($rules)
             ->
setFinder(Finder::create()->in(__DIR__))
             ->
setUsingCache(true)
             ->
setRiskyAllowed(true);