Skip to content

Commit

Permalink
Merge pull request #44 from IonBazan/refactoring
Browse files Browse the repository at this point in the history
Refaktoring, poprawa stylu kodu
  • Loading branch information
Janusz Żukowicz authored Apr 21, 2018
2 parents 635524d + 607752e commit 0ae557e
Show file tree
Hide file tree
Showing 22 changed files with 1,259 additions and 172 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ build/
examples/captcha.jpeg
.idea
phpunit.xml
.php_cs.cache
.php_cs
17 changes: 17 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
$finder = PhpCsFixer\Finder::create()
->in('./src')
->in('./tests');

return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'phpdoc_add_missing_param_annotation' => true,
'linebreak_after_opening_tag' => true,
'phpdoc_summary' => false,
'phpdoc_no_package' => false,
'phpdoc_order' => true,
'phpdoc_align' => true,
])
->setFinder($finder);
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ language: php
php:
- 7.1
- 7.2
- nightly

allow_failures:
php: nightly

cache:
directories:
- $HOME/.composer/cache

install:
- composer install --no-interaction --no-progress
- composer install --no-interaction --no-progress || composer remove --dev friendsofphp/php-cs-fixer --no-interaction --no-progress

script:
- composer validate --strict
Expand Down
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Gus Api Library for PHP",
"type" : "library",
"license": "LGPL-2.1-or-later",
"keywords":["nip","regon","krs","api", "soap", "library", "GUS", "CEGID"],
"keywords":["nip","regon","krs","api", "soap", "library", "GUS", "CEIDG"],
"authors": [
{
"name": "Janusz Żukowicz",
Expand All @@ -12,12 +12,13 @@
],
"require": {
"php" : "^7.1",
"ext-soap": "*",
"squizlabs/php_codesniffer": "^3.2",
"phpstan/phpstan-shim": "^0.9.2"
"ext-soap": "*"
},
"require-dev": {
"phpunit/phpunit": "^7.0"
"phpstan/phpstan-shim": "^0.9.2",
"phpunit/phpunit": "^7.0",
"squizlabs/php_codesniffer": "^3.2",
"friendsofphp/php-cs-fixer": "^2.11"
},
"autoload":{
"psr-4": {
Expand Down
Loading

0 comments on commit 0ae557e

Please sign in to comment.