Skip to content

Commit

Permalink
Update configs, clear code
Browse files Browse the repository at this point in the history
  • Loading branch information
Tekill committed May 3, 2017
1 parent 7bedf2f commit e387eff
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 43 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.idea
composer.lock
phpunit.xml
vendor
vendor
28 changes: 28 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
filter:
excluded_paths: [tests/*, vendor]

checks:
php:
code_rating: true
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true

build:
tests:
override:
-
command: 'vendor/bin/phpunit --coverage-clover=some-file'
coverage:
file: 'some-file'
format: 'clover'
27 changes: 9 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
language: php

sudo: false

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

matrix:
include:
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
env: DEPENDENCIES=dev
- php: hhvm
php:
- 5.6
- 7.0
- 7.1
- hhvm

before_script:
- if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
- composer update $COMPOSER_FLAGS

script: phpunit --coverage-text --coverage-clover=coverage.clover
- composer install

after_script:
- wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover
script: vendor/bin/phpunit
25 changes: 9 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
[![Build Status][ico-travis]][link-travis]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Downloads][ico-downloads]][link-downloads]

EnvDiff is tool to compare environment keys to find the difference between .env files and actualize them

Expand All @@ -17,20 +16,14 @@ composer Scripts composer event
"post-update-cmd": "Lf\\EnvDiff\\Composer\\ScriptHandler::actualizeEnv"
}
```
[ico-version]: https://img.shields.io/packagist/v/tekill/env-diff.svg?style=flat-square
[ico-version]: https://img.shields.io/packagist/v/Tekill/env-diff.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/tekill/env-diff/master.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/tekill/env-diff.svg?style=flat-square
[ico-hhvm]: https://img.shields.io/hhvm/tekill/env-diff.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/tekill/env-diff.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/tekill/env-diff.svg?style=flat-square
[ico-sensio]: https://insight.sensiolabs.com/projects/1fb8cbab-f611-45b5-8a45-0113e433eab7/big.png
[ico-travis]: https://img.shields.io/travis/Tekill/env-diff/master.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/Tekill/env-diff.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/Tekill/env-diff.svg?style=flat-square

[link-packagist]: https://packagist.org/packages/tekill/env-diff
[link-travis]: https://travis-ci.org/tekill/env-diff
[link-scrutinizer]: https://scrutinizer-ci.com/g/tekill/env-diff/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/tekill/env-diff
[link-downloads]: https://packagist.org/packages/tekill/env-diff
[link-author]: https://github.com/tekill
[link-contributors]: ../../contributors
[link-sensio]: https://insight.sensiolabs.com/projects/1fb8cbab-f611-45b5-8a45-0113e433eab7
[link-packagist]: https://packagist.org/packages/Tekill/env-diff
[link-travis]: https://travis-ci.org/Tekill/env-diff
[link-scrutinizer]: https://scrutinizer-ci.com/g/Tekill/env-diff/code-structure/
[link-code-quality]: https://scrutinizer-ci.com/g/Tekill/env-diff
[link-author]: https://github.com/Tekill
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@
}
],
"require": {
"php": ">=5.4"
"php": ">=5.6"
},
"require-dev": {
"composer/composer": "1.0.*@dev",
"phpunit/phpunit": "~6.0"
"phpunit/phpunit": "^5.0"
},
"autoload": {
"psr-4": { "LF\\EnvDiff\\": "src/" }
},
"minimum-stability": "dev"
}
}
2 changes: 1 addition & 1 deletion src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ public function isKeepOutdatedEnv()
{
return $this->keepOutdatedEnv;
}
}
}
2 changes: 1 addition & 1 deletion src/Env/Dumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ public static function dump(array $envArray)

return trim($dump);
}
}
}
2 changes: 1 addition & 1 deletion src/Env/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ public static function parse($path)

return $env;
}
}
}

0 comments on commit e387eff

Please sign in to comment.