New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 3 #76
Merged
Merged
Version 3 #76
Changes from 43 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
2428de7
remove build.php
f75733b
remove composer.lock
cd7570d
github files
aaa5f48
phpunit files
20e3b46
phpcs files
b9cc1f0
actually gitignore this time
bceb050
coveralls
f345d84
travis
fedbf9d
scrutinizer
fdba355
phpunit passing
3846611
scrutinizer tweak
0c2926b
de to ti
d7a5125
update license
ffa03f9
removed old contributing file
ccfa7fc
refactor filterertest
b5c3b3a
refactor unit tests
30758f9
filterer to 7.0
cbf1615
arrays refactor
fc9293f
refactor booleans
2db4c0a
refactor datetime
49cd500
update datetime
417dde4
update datetimezone
ac61013
update email
1eb4bb9
update floats
b1ad537
update ints
8bdfe27
update strings
762cefb
update unsigned int
5989a96
update url
116f798
refactor filter
c63ce93
scrutinizer score
8c41a58
Add DEFAULT_FILTER_ALIASES constant
chadicus b2b9873
Move some Arrays methods to Filterer
chadicus bd840e4
Add traderinteractive/filter-strings dependency
chadicus e996e53
Add traderinteractive/filter-arrays dependency
chadicus 557baeb
Add traderinteractive/filter-floats dependency
chadicus f9ea261
Add traderinteractive/filter-dates dependency
chadicus a8dfc75
Add traderinteractive/filter-bools dependency
chadicus 8d1441d
Add traderinteractive/filter-ints dependency
chadicus 5be04e9
Remove Filter\Exception
chadicus ac612f4
Update README.md
chadicus 5263787
Cover private methods by default in unit tests
chadicus 321c71b
Update scrutinizer config
chadicus 8c638f7
Use FilterException in FIlterer
chadicus 3d072f3
Update README badges
chadicus File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
service_name: travis-ci | ||
src_dir: . | ||
coverage_clover: clover.xml | ||
json_path: coveralls-upload.json |
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,13 @@ | ||
# Enforce Unix newlines | ||
* text=lf | ||
|
||
# Exclude unused files | ||
# see: https://redd.it/2jzp6k | ||
/tests export-ignore | ||
/.github export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.*.yml export-ignore | ||
/phpcs.xml export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/README.md export-ignore |
Validating CODEOWNERS rules …
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 @@ | ||
* @traderinteractive/opensource |
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,24 @@ | ||
# Contribution Guidelines | ||
We welcome you to report [issues](/../../issues) or submit [pull requests](/../../pulls). While the below guidelines are necessary to get code merged, you can | ||
submit pull requests that do not adhere to them and we will try to take care of them in our spare time. We are a smallish group of developers, | ||
though, so if you can make sure the build is passing 100%, that would be very useful. | ||
|
||
We recommend including details of your particular usecase(s) with any issues or pull requests. We love to hear how our libraries are being used | ||
and we can get things merged in quicker when we understand its expected usage. | ||
|
||
## Pull Requests | ||
Code changes should be sent through [GitHub Pull Requests](/../../pulls). Before submitting the pull request, make sure that phpunit reports success | ||
by running: | ||
```sh | ||
./vendor/bin/phpunit | ||
``` | ||
And there are not coding standard violations by running | ||
```sh | ||
./vendor/bin/phpcs | ||
``` | ||
|
||
## Builds | ||
Our [Travis build](https://travis-ci.org/traderinteractive/filter-php) executes [PHPUnit](http://www.phpunit.de) and uses [Coveralls](https://coveralls.io/) to enforce code coverage. | ||
While the build does not strictly enforce 100% code coverage, it will not allow coverage to drop below its current percentage. | ||
[Scrutinizer](https://scrutinizer-ci.com/) is used to ensure code quality and enforce the [coding standard](http://www.php-fig.org/psr/psr-2/). | ||
|
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,6 @@ | ||
## Expected Behavior | ||
|
||
## Actual Behavior | ||
|
||
## Steps to reproduce the behavior | ||
|
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,9 @@ | ||
Fixes # . | ||
|
||
#### What does this PR do? | ||
|
||
#### Checklist | ||
- [ ] Pull request contains a clear definition of changes | ||
- [ ] Tests (either unit, integration, or acceptance) written and passing | ||
- [ ] Relevant documentation produced and/or updated | ||
|
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,3 +1,5 @@ | ||
/coverage/ | ||
/vendor/ | ||
/clover.xml | ||
phpunit.xml | ||
composer.lock |
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 |
---|---|---|
@@ -1,13 +1,18 @@ | ||
sudo: false | ||
language: php | ||
php: | ||
- 5.6 | ||
- 7 | ||
- hhvm | ||
install: composer install | ||
script: ./vendor/bin/phpunit --coverage-clover clover.xml | ||
after_success: sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then ./vendor/bin/coveralls -v; fi' | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
- nightly | ||
env: | ||
- PREFER_LOWEST="--prefer-lowest --prefer-stable" | ||
- PREFER_LOWEST="" | ||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- php: hhvm | ||
- php: nightly | ||
before_script: | ||
- composer update $PREFER_LOWEST | ||
script: ./vendor/bin/phpunit --coverage-clover clover.xml | ||
after_success: ./vendor/bin/coveralls -v |
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.