8000 GitHub - CDS-UWB/php-code-style: CDS team PHP coding style for PHP Coding Standards Fixer · GitHub
[go: up one dir, main page]

Skip to content

CDS-UWB/php-code-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Code Style

Tests

This repository contains the PHP CS Fixer coding style rules for CDS team PHP projec 731D ts.

Use the \Cds\PhpCodeStyle\rules() function to get all rules as an array. You can pass additional rules to extend the set, or override existing ones as needed.

The rules are also available via the \Cds\PhpCodeStyle\Rules constant.

Usage

# .php-cs-fixer.dist.php
<?php

$finder = PhpCsFixer\Finder::create()
    ->ignoreUnreadableDirs()
    ->exclude('db')
    ->exclude('log')
    ->exclude('temp')
    ->in(__DIR__)
;

return (new PhpCsFixer\Config())
    ->setRules(\Cds\PhpCodeStyle\rules())
    ->setFinder($finder)
;

About

CDS team PHP coding style for PHP Coding Standards Fixer

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

0