mirror of
https://github.com/itflow-org/itflow
synced 2026-03-02 20:04:53 +00:00
More tidying up, added category to invoices, invoice delete now deletes invoice, pyaments, history and items associated with invoice. Exclude Cancelled invoice under dashboard income recieveables
This commit is contained in:
61
vendor/otphp-10.0/.php_cs.dist
vendored
Normal file
61
vendor/otphp-10.0/.php_cs.dist
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
$header = 'The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014-2019 Spomky-Labs
|
||||
|
||||
This software may be modified and distributed under the terms
|
||||
of the MIT license. See the LICENSE file for details.';
|
||||
|
||||
$finder = PhpCsFixer\Finder::create()
|
||||
->in(__DIR__.'/src')
|
||||
->in(__DIR__.'/tests')
|
||||
;
|
||||
|
||||
return PhpCsFixer\Config::create()
|
||||
->setRules([
|
||||
'@PSR1' => true,
|
||||
'@PSR2' => true,
|
||||
'@Symfony' => true,
|
||||
'@DoctrineAnnotation' => true,
|
||||
'@PHP70Migration' => true,
|
||||
'@PHP71Migration' => true,
|
||||
'strict_param' => true,
|
||||
'strict_comparison' => true,
|
||||
'array_syntax' => ['syntax' => 'short'],
|
||||
'array_indentation' => true,
|
||||
'ordered_imports' => true,
|
||||
'protected_to_private' => true,
|
||||
'declare_strict_types' => true,
|
||||
'native_function_invocation' => [
|
||||
'include' => ['@compiler_optimized'],
|
||||
'scope' => 'namespaced',
|
||||
],
|
||||
'mb_str_functions' => true,
|
||||
'method_chaining_indentation' => true,
|
||||
'linebreak_after_opening_tag' => true,
|
||||
'combine_consecutive_issets' => true,
|
||||
'combine_consecutive_unsets' => true,
|
||||
'compact_nullable_typehint' => true,
|
||||
'no_superfluous_phpdoc_tags' => true,
|
||||
'no_superfluous_elseif' => true,
|
||||
'phpdoc_trim_consecutive_blank_line_separation' => true,
|
||||
'phpdoc_order' => true,
|
||||
'pow_to_exponentiation' => true,
|
||||
'simplified_null_return' => true,
|
||||
'header_comment' => [
|
||||
'header' => $header,
|
||||
],
|
||||
'align_multiline_comment' => [
|
||||
'comment_type' => 'all_multiline',
|
||||
],
|
||||
'php_unit_test_annotation' => [
|
||||
'case' => 'snake',
|
||||
'style' => 'annotation',
|
||||
],
|
||||
'php_unit_test_case_static_method_calls' => true,
|
||||
])
|
||||
->setRiskyAllowed(true)
|
||||
->setUsingCache(true)
|
||||
->setFinder($finder)
|
||||
;
|
||||
Reference in New Issue
Block a user