Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Mar 16, 2021
0 parents commit 6904844
Show file tree
Hide file tree
Showing 46 changed files with 6,314 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
vendor
.phpunit.*
data
.php_cs.cache
.idea
.vscode
52 changes: 52 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?php declare(strict_types=1);

$finder = PhpCsFixer\Finder::create()
->files()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests');

return PhpCsFixer\Config::create()
->setFinder($finder)
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_opening_tag' => true,
'braces' => ['allow_single_line_closure' => true],
'compact_nullable_typehint' => true,
'concat_space' => ['spacing' => 'one'],
'declare_equal_normalize' => ['space' => 'none'],
'declare_strict_types' => true,
'function_typehint_space' => true,
'header_comment' => ['header' => ''],
'list_syntax' => ['syntax' => 'short'],
'new_with_braces' => true,
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
'no_empty_phpdoc' => true,
'no_empty_statement' => true,
'no_leading_import_slash' => true,
'no_leading_namespace_whitespace' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_whitespace_before_comma_in_array' => true,
'no_unused_imports' => true,
'no_whitespace_in_blank_line' => true,
'normalize_index_brace' => true,
'ordered_imports' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_annotation_without_dot' => true,
'phpdoc_indent' => true,
'phpdoc_line_span' => ['const' => 'single', 'property' => 'single', 'method' => 'multi'],
'phpdoc_order' => true,
'phpdoc_scalar' => true,
'phpdoc_separation' => true,
'phpdoc_summary' => true,
'phpdoc_trim' => true,
'phpdoc_types' => true,
'phpdoc_var_annotation_correct_order' => true,
'phpdoc_var_without_name' => true,
'return_type_declaration' => ['space_before' => 'none'],
'single_trait_insert_per_statement' => true,
'single_quote' => true,
'trailing_comma_in_multiline_array' => true,
'trim_array_spaces' => true,
'void_return' => true,
]);
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Gacela
52 changes: 52 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"name": "chemaclass/gacela",
"type": "library",
"description": "Gacela is a nice animal...",
"keywords": ["php","modular","kernel"],
"license": "MIT",
"authors": [
{
"name": "Jose Maria Valera Reales",
"email": "[email protected]"
},
{
"name": "Jesus Valera Reales",
"email": "[email protected]"
}
],
"require": {
"php": ">=7.4"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"vimeo/psalm": "^4.6",
"friendsofphp/php-cs-fixer": "^2.18",
"symfony/var-dumper": "^5.2"
},
"autoload": {
"psr-4": {
"Gacela\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"GacelaTest\\": "tests"
}
},
"scripts": {
"test-all": [
"@test-quality",
"@test-phpunit"
],
"test-quality": [
"@csrun",
"@psalm"
],
"test-phpunit": "./vendor/bin/phpunit --testsuite=integration,unit",
"test-phpunit:coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --testsuite=integration,unit --coverage-html=data/coverage-html --coverage-xml=data/coverage-xml --log-junit=data/coverage-xml/junit.xml",
"test-infection": "XDEBUG_MODE=coverage ./vendor/bin/infection --threads=4 --only-covered --coverage=data/coverage-xml",
"psalm": "./vendor/bin/psalm",
"csfix": "./vendor/bin/php-cs-fixer fix --allow-risky=yes",
"csrun": "./vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run"
}
}
Loading

0 comments on commit 6904844

Please sign in to comment.