PHP Classes

File: .php_cs.dist

Recommend this page to a friend!
  Classes of Kamil   PHP REST Client Framework Control   .php_cs.dist   Download  
File: .php_cs.dist
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP REST Client Framework Control
Testing and validating REST services
Author: By
Last change:
Date: 6 years ago
Size: 1,210 bytes
 

Contents

Class file image Download
<?php

if (!is_dir(__DIR__.'/src')) {
    exit(
0);
}

return
PhpCsFixer\Config::create()
            ->
setRiskyAllowed(true)
            ->
setRules([
               
'array_syntax' => ['syntax' => 'short'],
               
'protected_to_private' => false,
               
'no_blank_lines_after_phpdoc' => true,
               
'blank_line_after_namespace' => true,
               
'no_empty_phpdoc' => true,
               
'phpdoc_align' => true,
               
'phpdoc_indent' => true,
               
'phpdoc_trim' => true,
               
'phpdoc_inline_tag' => true,
               
'phpdoc_separation' => true,
               
'phpdoc_no_package' => true,
               
'no_unused_imports' => true,
               
'blank_line_before_statement' => [
                   
'statements' => [
                       
'return',
                       
'try',
                    ],
                ],
            ])
            ->
setFinder(
               
PhpCsFixer\Finder::create()
                    ->
in(__DIR__ . '/src')
                    ->
in(__DIR__ . '/tests')
            );