-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c10c610
Showing
100 changed files
with
14,274 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
; This file is for unifying the coding style for different editors and IDEs. | ||
; More information at http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_size = 4 | ||
indent_style = space | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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,18 @@ | ||
# Path-based git attributes | ||
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html | ||
|
||
# Ignore all test and documentation with "export-ignore". | ||
/.github export-ignore | ||
/bin export-ignore | ||
/docs export-ignore | ||
/tests export-ignore | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.scrutinizer.yml export-ignore | ||
/.styleci.yml export-ignore | ||
/.travis.yml export-ignore | ||
/CHANGELOG.md export-ignore | ||
/phpstan.neon.dist export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/ruleset.xml export-ignore |
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,27 @@ | ||
<!-- Provide a general summary of the issue in the Title above --> | ||
|
||
## Detailed description | ||
|
||
Provide a detailed description of the change or addition you are proposing. | ||
|
||
Make it clear if the issue is a bug, an enhancement or just a question. | ||
|
||
## Context | ||
|
||
Why is this change important to you? How would you use it? | ||
|
||
How can it benefit other users? | ||
|
||
## Possible implementation | ||
|
||
Not obligatory, but suggest an idea for implementing addition or change. | ||
|
||
## Your environment | ||
|
||
Include as many relevant details about the environment you experienced the bug in and how to reproduce it. | ||
|
||
* Version used (e.g. PHP 7.1, HHVM 3): | ||
* Operating system and version (e.g. Ubuntu 16.04, Windows 10): | ||
* Link to your project: | ||
* ... | ||
* ... |
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,43 @@ | ||
<!--- Provide a general summary of your changes in the Title above --> | ||
|
||
## Description | ||
|
||
Describe your changes in detail. | ||
|
||
## Motivation and context | ||
|
||
Why is this change required? What problem does it solve? | ||
|
||
If it fixes an open issue, please link to the issue here (if you write `fixes #num` | ||
or `closes #num`, the issue will be automatically closed when the pull is accepted.) | ||
|
||
## How has this been tested? | ||
|
||
Please describe in detail how you tested your changes. | ||
|
||
Include details of your testing environment, and the tests you ran to | ||
see how your change affects other areas of the code, etc. | ||
|
||
## Screenshots (if appropriate) | ||
|
||
## Types of changes | ||
|
||
What types of changes does your code introduce? Put an `x` in all the boxes that apply: | ||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to change) | ||
|
||
## Checklist: | ||
|
||
Go over all the following points, and put an `x` in all the boxes that apply. | ||
|
||
Please, please, please, don't send your pull request until all of the boxes are ticked. Once your pull request is created, it will trigger a build on our [continuous integration](http://www.phptherightway.com/#continuous-integration) server to make sure your [tests and code style pass](https://help.github.com/articles/about-required-status-checks/). | ||
|
||
- [ ] I have read the **[CONTRIBUTING](../docs/CONTRIBUTING.md)** document. | ||
- [ ] My pull request addresses exactly one patch/feature. | ||
- [ ] I have created a branch for this patch/feature. | ||
- [ ] Each individual commit in the pull request is meaningful. | ||
- [ ] I have added tests to cover my changes. | ||
- [ ] If my change requires a change to the documentation, I have updated it accordingly. | ||
|
||
If you're unsure about any of these, don't hesitate to ask. We're here to help! |
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 @@ | ||
build | ||
composer.lock | ||
vendor | ||
coverage.clover | ||
phpunit.xml | ||
.idea |
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,143 @@ | ||
filter: | ||
excluded_paths: | ||
- 'tests/*' | ||
|
||
checks: | ||
php: | ||
code_rating: true | ||
duplication: 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 | ||
newline_at_end_of_file: true | ||
naming_conventions: | ||
local_variable: '^[a-z][a-zA-Z0-9]*$' | ||
utility_class_name: '^[A-Z][a-zA-Z0-9]*$' | ||
constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$' | ||
property_name: '^[a-z][a-zA-Z0-9]*$' | ||
method_name: '^((?:[a-z]|__)[a-zA-Z0-9]*|test[A-Z][_a-zA-Z0-9]*)$' | ||
parameter_name: '^[a-z][a-zA-Z0-9]*$' | ||
interface_name: '^[A-Z][a-zA-Z0-9]*Interface$' | ||
type_name: '^(m[0-9a-z_]+|[A-Z][a-zA-Z0-9]*)$' | ||
exception_name: '^[A-Z][a-zA-Z0-9]*Exception$' | ||
isser_method_name: '^(?:is|can|has|should|may|supports)' | ||
|
||
coding_style: | ||
php: | ||
indentation: | ||
general: | ||
use_tabs: false | ||
size: 4 | ||
switch: | ||
indent_case: true | ||
spaces: | ||
general: | ||
linefeed_character: newline | ||
before_parentheses: | ||
function_declaration: false | ||
closure_definition: true | ||
function_call: false | ||
if: true | ||
for: true | ||
while: true | ||
switch: true | ||
catch: true | ||
array_initializer: false | ||
around_operators: | ||
assignment: true | ||
logical: true | ||
equality: true | ||
relational: true | ||
bitwise: true | ||
additive: true | ||
multiplicative: true | ||
shift: true | ||
unary_additive: false | ||
concatenation: true | ||
negation: false | ||
before_left_brace: | ||
class: true | ||
function: true | ||
if: true | ||
else: true | ||
for: true | ||
while: true | ||
do: true | ||
switch: true | ||
try: true | ||
catch: true | ||
finally: true | ||
before_keywords: | ||
else: true | ||
while: true | ||
catch: true | ||
finally: true | ||
within: | ||
brackets: false | ||
array_initializer: false | ||
grouping: false | ||
function_call: false | ||
function_declaration: false | ||
if: false | ||
for: false | ||
while: false | ||
switch: false | ||
catch: false | ||
type_cast: false | ||
ternary_operator: | ||
before_condition: true | ||
after_condition: true | ||
before_alternative: true | ||
after_alternative: true | ||
in_short_version: false | ||
other: | ||
before_comma: false | ||
after_comma: true | ||
before_semicolon: false | ||
after_semicolon: true | ||
after_type_cast: true | ||
braces: | ||
classes_functions: | ||
class: new-line | ||
function: new-line | ||
closure: end-of-line | ||
if: | ||
opening: end-of-line | ||
always: true | ||
else_on_new_line: false | ||
for: | ||
opening: end-of-line | ||
always: true | ||
while: | ||
opening: end-of-line | ||
always: true | ||
do_while: | ||
opening: end-of-line | ||
always: true | ||
while_on_new_line: false | ||
switch: | ||
opening: end-of-line | ||
try: | ||
opening: end-of-line | ||
catch_on_new_line: false | ||
finally_on_new_line: false | ||
upper_lower_casing: | ||
keywords: | ||
general: lower | ||
constants: | ||
true_false_null: lower | ||
|
||
tools: | ||
external_code_coverage: | ||
timeout: 2400 | ||
runs: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
preset: psr2 | ||
|
||
enabled: | ||
- blank_line_before_try | ||
- blank_line_before_catch | ||
- blank_line_before_return | ||
- no_spaces_after_function_name | ||
|
||
finder: | ||
name: | ||
- "*.sphp" |
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,28 @@ | ||
dist: trusty | ||
language: php | ||
|
||
php: | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
|
||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
before_script: | ||
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist | ||
|
||
script: | ||
- vendor/bin/phpcs --standard=./ruleset.xml src/ | ||
- vendor/bin/phpstan analyse -l 7 -c phpstan.neon.dist src/ | ||
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover | ||
|
||
after_script: | ||
- | | ||
if [[ "$TRAVIS_PHP_VERSION" != '7.3' ]]; then | ||
wget https://scrutinizer-ci.com/ocular.phar | ||
php ocular.phar code-coverage:upload --format=php-clover coverage.clover | ||
fi |
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,10 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | ||
|
||
## [1.0.0] - 2018-12-26 | ||
### Added | ||
- Full support for all requests and options in documentation **v1.845** (2018-11-29) |
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,21 @@ | ||
# The MIT License (MIT) | ||
|
||
Copyright (c) 2018 Tomáš Novotný <[email protected]> | ||
|
||
> Permission is hereby granted, free of charge, to any person obtaining a copy | ||
> of this software and associated documentation files (the "Software"), to deal | ||
> in the Software without restriction, including without limitation the rights | ||
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
> copies of the Software, and to permit persons to whom the Software is | ||
> furnished to do so, subject to the following conditions: | ||
> | ||
> The above copyright notice and this permission notice shall be included in | ||
> all copies or substantial portions of the Software. | ||
> | ||
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
> THE SOFTWARE. |
Oops, something went wrong.