Skip to content

Commit

Permalink
Added FacturX Logos and added php-cs-fixer as dev dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rahal committed Feb 6, 2025
1 parent 08594cb commit 462d113
Show file tree
Hide file tree
Showing 9 changed files with 3,168 additions and 745 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ vendor
.DS_Store
.vscode
test/examples/basic-*
.php-cs-fixer.cache
36 changes: 36 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in([
__DIR__ . '/src',
__DIR__ . '/test',
]);

return (new PhpCsFixer\Config())
->setRules([
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'no_unused_imports' => true,
'not_operator_with_successor_space' => true,
'trailing_comma_in_multiline' => true,
'phpdoc_scalar' => true,
'unary_operator_spaces' => true,
'binary_operator_spaces' => true,
'blank_line_before_statement' => [
'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'],
],
'phpdoc_single_line_var_spacing' => true,
'phpdoc_var_without_name' => true,
'class_attributes_separation' => [
'elements' => [
'method' => 'one',
],
],
'method_argument_space' => [
'on_multiline' => 'ensure_fully_multiline',
'keep_multiple_spaces_after_comma' => true,
],
'single_trait_insert_per_statement' => true,
])
->setFinder($finder);
10 changes: 7 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
"easybill/zugferd-php": "dev-master",
"atgp/factur-x": "^1.0",
"milo/schematron": "dev-master",
"josemmo/einvoicing": "^0.2.7"
"josemmo/einvoicing": "^0.2.7" ,
"php": "^8.1"
},
"require-dev": {
"phpunit/phpunit": "^8 || ^9"
"phpunit/phpunit": "^8 || ^9 || ^10.0",
"friendsofphp/php-cs-fixer": "^3.66"
},
"repositories": [
{
Expand All @@ -30,7 +32,9 @@
}
],
"scripts": {
"test": "vendor/bin/phpunit test"
"test": "vendor/bin/phpunit test",
"cs-fix": "php-cs-fixer fix",
"cs": "php-cs-fixer check"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 462d113

Please sign in to comment.