PHP Classes

File: vendor/hiqdev/rdap-whois-proxy/.php_cs

Recommend this page to a friend!
  Classes of Till Wehowski   PHP RDAP Server   vendor/hiqdev/rdap-whois-proxy/.php_cs   Download  
File: vendor/hiqdev/rdap-whois-proxy/.php_cs
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP RDAP Server
Process RDAP queries about an IP address or domain
Author: By
Last change:
Date: 12 days ago
Size: 2,403 bytes
 

Contents

Class file image Download
<?php

$header
= <<<EOF
A bridge from WHOIS to RDAP

@link https://github.com/hiqdev/rdap-whois-proxy
@package rdap-whois-proxy
@license BSD-3-Clause
@copyright Copyright (c) 2015-2019, HiQDev (http://hiqdev.com/)
EOF;

return
PhpCsFixer\Config::create()
    ->
setUsingCache(true)
    ->
setRiskyAllowed(true)
    ->
setRules(array(
       
'@Symfony' => true,
       
'header_comment' => [
           
'header' => $header,
           
'separate' => 'bottom',
           
'location' => 'after_declare_strict',
           
'commentType' => 'PHPDoc',
        ],
       
'binary_operator_spaces' => [
           
'default' => null,
        ],
       
'concat_space' => ['spacing' => 'one'],
       
'array_syntax' => ['syntax' => 'short'],
       
'phpdoc_no_alias_tag' => ['replacements' => ['type' => 'var']],
       
'blank_line_before_return' => false,
       
'phpdoc_align' => false,
       
'phpdoc_scalar' => false,
       
'phpdoc_separation' => false,
       
'phpdoc_to_comment' => false,
       
'phpdoc_var_without_name' => false,
       
'method_argument_space' => false,
       
'ereg_to_preg' => true,
       
'blank_line_after_opening_tag' => true,
       
'single_blank_line_before_namespace' => true,
       
'ordered_imports' => true,
       
'phpdoc_order' => true,
       
'pre_increment' => true,
       
'strict_comparison' => true,
       
'strict_param' => true,
       
'no_multiline_whitespace_before_semicolons' => true,
       
'semicolon_after_instruction' => false,
       
'yoda_style' => false,
    ))
    ->
setFinder(
       
PhpCsFixer\Finder::create()
            ->
in(__DIR__)
            ->
notPath('vendor')
            ->
notPath('runtime')
            ->
notPath('web/assets')
            ->
notPath('public/assets')
            ->
notPath('tests/_support/_generated')
        )
;