Skip to content

Commit

Permalink
Merge cdef72a into 6093f00
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jan 29, 2019
2 parents 6093f00 + cdef72a commit 26784ae
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
/.coveralls.yml export-ignore
/phpunit.xml export-ignore
/test/ export-ignore
/CONTRIBUTING.md export-ignore
/CONTRIBUTING.md export-ignore
/phpcs.xml export-ignore
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ before_script:
- composer dump-autoload -o

script:
- if [[ $DEPS == 'latest' ]]; then composer cs-check ; fi
- vendor/bin/phpunit --coverage-text
- if [[ $DEPS == 'latest' ]]; then php ./vendor/bin/php-coveralls -v --exclude-no-stmt ; fi

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ CONTRIBUTING
To contribute, you can send pull requests with :

- Typo fix.
- Use PSR-2 Coding Standard.
- Use [Zend Coding Standard](https://github.com/zendframework/zend-coding-standard).
- patch(es) need new/updated test(s).
- new feature(s) need test(s).

Expand Down
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
},
"require-dev": {
"zendframework/zend-expressive": "^3.0",
"zendframework/zend-coding-standard": "^1.0",
"phpunit/phpunit": "^7.0",
"satooshi/php-coveralls": "^2.0"
},
Expand All @@ -40,5 +41,9 @@
"zf": {
"config-provider": "ExpressiveRedirectHandler\\ConfigProvider"
}
},
"scripts": {
"cs-check": "phpcs",
"cs-fix": "phpcbf"
}
}
7 changes: 7 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<ruleset name="Zend Framework Coding Standard">
<rule ref="./vendor/zendframework/zend-coding-standard/ruleset.xml"/>

<!-- Paths to check -->
<file>src</file>
</ruleset>
2 changes: 1 addition & 1 deletion src/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ public function __invoke()
],
];
}
}
}

0 comments on commit 26784ae

Please sign in to comment.