-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
6,761 additions
and
1,698 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# These are supported funding model platforms | ||
|
||
github: tiamo | ||
# patreon: tiamo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
/vendor | ||
/.idea | ||
/tests/tmp | ||
/tmp | ||
/nbproject/* | ||
*.DS_Store | ||
.idea | ||
.env | ||
coverage.xml | ||
.phpunit.result.cache | ||
.php_cs.cache | ||
*.swp | ||
*.swo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in(__DIR__ . DIRECTORY_SEPARATOR . 'tests') | ||
->in(__DIR__ . DIRECTORY_SEPARATOR . 'src') | ||
->append(['.php_cs']); | ||
|
||
$rules = [ | ||
'@Symfony' => true, | ||
'phpdoc_no_empty_return' => false, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'yoda_style' => false, | ||
'binary_operator_spaces' => [ | ||
'operators' => [ | ||
'=>' => 'align', | ||
'=' => 'align', | ||
], | ||
], | ||
'concat_space' => ['spacing' => 'one'], | ||
'not_operator_with_space' => false, | ||
]; | ||
|
||
$rules['increment_style'] = ['style' => 'post']; | ||
|
||
return PhpCsFixer\Config::create() | ||
->setUsingCache(true) | ||
->setRules($rules) | ||
->setFinder($finder); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
dist: trusty | ||
language: php | ||
|
||
sudo: false | ||
|
||
php: | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
|
||
#before_install: | ||
#- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then composer require --dev --no-update phpunit/phpunit ~4; fi | ||
|
||
install: | ||
- composer install --no-interaction --no-suggest | ||
env: | ||
matrix: | ||
- COMPOSER_FLAGS="--prefer-lowest" | ||
- COMPOSER_FLAGS="" | ||
|
||
before_script: | ||
- phpenv config-rm xdebug.ini | ||
- travis_retry composer self-update | ||
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source | ||
|
||
script: | ||
- ./vendor/bin/phing all | ||
- composer test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
# Changelog | ||
|
||
## VERSION 2.1.* | ||
## 2.2.0 | ||
|
||
2020-06-27 | ||
|
||
+ Full code refactory | ||
+ Fixed tests | ||
|
||
## 2.1.* | ||
|
||
2018-10 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,20 +21,21 @@ | |
"email": "[email protected]" | ||
} | ||
], | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"require": { | ||
"php": ">=5.5", | ||
"ext-mbstring": "*", | ||
"ext-bcmath": "*", | ||
"ext-json": "*" | ||
}, | ||
"require-dev": { | ||
"phing/phing": "^2", | ||
"ergebnis/phpstan-rules": "^0.15.0", | ||
"friendsofphp/php-cs-fixer": "^2.16", | ||
"phpstan/phpstan": "^0.12.31", | ||
"phpstan/phpstan-strict-rules": "^0.12.2", | ||
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0", | ||
"doctrine/instantiator": "1.0.5", | ||
"phpdocumentor/reflection-docblock": "3.0.2", | ||
"squizlabs/php_codesniffer": "^3" | ||
"rector/rector": "^0.7.41", | ||
"squizlabs/php_codesniffer": "^3", | ||
"thecodingmachine/phpstan-strict-rules": "^0.12.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
|
@@ -46,11 +47,21 @@ | |
"SPSS\\Tests\\": "tests/" | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"config": { | ||
"sort-packages": true | ||
"sort-packages": true, | ||
"preferred-install": "dist" | ||
}, | ||
"scripts": { | ||
"test": "phpunit --verbose", | ||
"codestyle": "php-cs-fixer fix --path-mode=intersection --config=.php_cs.dist" | ||
"lint": "rector process src && php-cs-fixer fix -v", | ||
"test:lint": "php-cs-fixer fix -v --dry-run && rector process src --dry-run", | ||
"test:types": "phpstan analyse --ansi --memory-limit=0", | ||
"test:unit": "phpunit --no-coverage", | ||
"test": [ | ||
"@test:lint", | ||
"@test:types", | ||
"@test:unit" | ||
] | ||
} | ||
} |
Oops, something went wrong.