Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge pull request #42 from damanikrish/allow-custom-rules"
- Loading branch information
1 parent
58404d3
commit 00b39a7
Showing
65 changed files
with
1,651 additions
and
2,298 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -5,5 +5,3 @@ vendor | |
composer.lock | ||
composer.phar | ||
/.project | ||
.idea/ | ||
build/ |
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,43 +1,19 @@ | ||
sudo: false | ||
|
||
language: php | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/ | ||
- $HOME/.local | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- php: 5.6 | ||
env: | ||
- EXECUTE_TEST_COVERALLS=true | ||
- PATH="$HOME/.local/bin:$PATH" | ||
- php: 5.6 | ||
env: | ||
- EXECUTE_TEST_COVERALLS=true | ||
- PATH="$HOME/.local/bin:$PATH" | ||
- php: 7 | ||
- php: hhvm | ||
allow_failures: | ||
- php: hhvm | ||
|
||
notifications: | ||
email: false | ||
|
||
before_install: | ||
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi | ||
- composer self-update | ||
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi | ||
|
||
install: | ||
- travis_retry composer install --no-interaction --ignore-platform-reqs | ||
|
||
php: | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- hhvm | ||
|
||
before_script: | ||
- composer self-update | ||
- composer install --prefer-source --dev | ||
|
||
script: | ||
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi | ||
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit ; fi | ||
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ; fi | ||
- mkdir -p build/logs | ||
- phpunit | ||
|
||
after_script: | ||
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/coveralls ; fi | ||
- php vendor/bin/coveralls -v |
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,24 +1,3 @@ | ||
$.validator.addMethod("in_array", function(value, element, haystack) { | ||
var check = ($.inArray(value, haystack) !== -1); | ||
|
||
if(!check) { | ||
try { | ||
value = parseInt(value, 10); | ||
} catch(err) { | ||
return check; | ||
} | ||
|
||
check = ($.inArray(value, haystack) !== -1); | ||
} | ||
|
||
return check; | ||
}); | ||
|
||
$.validator.addMethod( | ||
"regex", | ||
function(value, element, pattern) { | ||
var check = false; | ||
var regexp = new RegExp(pattern); | ||
return this.optional(element) || regexp.test(value); | ||
} | ||
); | ||
return (haystack.indexOf(value) !== -1); | ||
}); |
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.