Skip to content

Commit e387eff

Browse files
committed
Update configs, clear code
1 parent 7bedf2f commit e387eff

File tree

8 files changed

+53
-43
lines changed

8 files changed

+53
-43
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.idea
21
composer.lock
32
phpunit.xml
4-
vendor
3+
vendor

.scrutinizer.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
filter:
2+
excluded_paths: [tests/*, vendor]
3+
4+
checks:
5+
php:
6+
code_rating: true
7+
remove_extra_empty_lines: true
8+
remove_php_closing_tag: true
9+
remove_trailing_whitespace: true
10+
fix_use_statements:
11+
remove_unused: true
12+
preserve_multiple: false
13+
preserve_blanklines: true
14+
order_alphabetically: true
15+
fix_php_opening_tag: true
16+
fix_linefeed: true
17+
fix_line_ending: true
18+
fix_identation_4spaces: true
19+
fix_doc_comments: true
20+
21+
build:
22+
tests:
23+
override:
24+
-
25+
command: 'vendor/bin/phpunit --coverage-clover=some-file'
26+
coverage:
27+
file: 'some-file'
28+
format: 'clover'

.travis.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
11
language: php
22

3-
sudo: false
4-
53
cache:
6-
directories:
7-
- $HOME/.composer/cache/files
4+
directories:
5+
- $HOME/.composer/cache/files
86

9-
matrix:
10-
include:
11-
- php: 5.4
12-
- php: 5.5
13-
- php: 5.6
14-
- php: 7.0
15-
env: DEPENDENCIES=dev
16-
- php: hhvm
7+
php:
8+
- 5.6
9+
- 7.0
10+
- 7.1
11+
- hhvm
1712

1813
before_script:
19-
- if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
20-
- composer update $COMPOSER_FLAGS
21-
22-
script: phpunit --coverage-text --coverage-clover=coverage.clover
14+
- composer install
2315

24-
after_script:
25-
- wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover
16+
script: vendor/bin/phpunit

README.md

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
[![Build Status][ico-travis]][link-travis]
66
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
77
[![Quality Score][ico-code-quality]][link-code-quality]
8-
[![Downloads][ico-downloads]][link-downloads]
98

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

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

29-
[link-packagist]: https://packagist.org/packages/tekill/env-diff
30-
[link-travis]: https://travis-ci.org/tekill/env-diff
31-
[link-scrutinizer]: https://scrutinizer-ci.com/g/tekill/env-diff/code-structure
32-
[link-code-quality]: https://scrutinizer-ci.com/g/tekill/env-diff
33-
[link-downloads]: https://packagist.org/packages/tekill/env-diff
34-
[link-author]: https://github.com/tekill
35-
[link-contributors]: ../../contributors
36-
[link-sensio]: https://insight.sensiolabs.com/projects/1fb8cbab-f611-45b5-8a45-0113e433eab7
25+
[link-packagist]: https://packagist.org/packages/Tekill/env-diff
26+
[link-travis]: https://travis-ci.org/Tekill/env-diff
27+
[link-scrutinizer]: https://scrutinizer-ci.com/g/Tekill/env-diff/code-structure/
28+
[link-code-quality]: https://scrutinizer-ci.com/g/Tekill/env-diff
29+
[link-author]: https://github.com/Tekill

composer.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010
}
1111
],
1212
"require": {
13-
"php": ">=5.4"
13+
"php": ">=5.6"
1414
},
1515
"require-dev": {
1616
"composer/composer": "1.0.*@dev",
17-
"phpunit/phpunit": "~6.0"
17+
"phpunit/phpunit": "^5.0"
1818
},
1919
"autoload": {
2020
"psr-4": { "LF\\EnvDiff\\": "src/" }
21-
},
22-
"minimum-stability": "dev"
21+
}
2322
}

src/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ public function isKeepOutdatedEnv()
6161
{
6262
return $this->keepOutdatedEnv;
6363
}
64-
}
64+
}

src/Env/Dumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ public static function dump(array $envArray)
1919

2020
return trim($dump);
2121
}
22-
}
22+
}

src/Env/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ public static function parse($path)
3939

4040
return $env;
4141
}
42-
}
42+
}

0 commit comments

Comments
 (0)