10000 v2 · middlewares/http-authentication@6fa6c26 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6fa6c26

Browse files
committed
v2
1 parent a91a590 commit 6fa6c26

11 files changed

+104
-270
lines changed

.gitattributes

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
* text=auto eol=lf
22

3-
/tests export-ignore
4-
.editorconfig export-ignore
5-
.gitattributes export-ignore
6-
.gitignore export-ignore
7-
.travis.yml export-ignore
8-
phpunit.xml export-ignore
9-
phpcs.xml export-ignore
3+
/tests export-ignore
4+
.editorconfig export-ignore
5+
.gitattributes export-ignore
6+
.gitignore export-ignore
7+
.php_cs export-ignore
8+
.travis.yml export-ignore
9+
phpcs.xml.dist export-ignore
10+
phpunit.xml.dist export-ignore

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
vendor
22
composer.lock
3-
.php_cs.cache
43
coverage
5-
.phpunit.result.cache
4+
*.cache

.php_cs

Lines changed: 8 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -1,129 +1,10 @@
11
<?php
22

3-
$finder = PhpCsFixer\Finder::create()
4-
->files()
5-
->name('*.php')
6-
->in(__DIR__ . '/src')
7-
->in(__DIR__ . '/tests')
8-
;
9-
10-
return PhpCsFixer\Config::create()
11-
->setRules(array(
12-
'@PSR2' => true,
13-
'array_syntax' => ['syntax' => 'short'],
14-
'binary_operator_spaces' => ['align_double_arrow' => false, 'align_equals' => false],
15-
'blank_line_after_namespace' => true,
16-
'blank_line_after_opening_tag' => false,
17-
'blank_line_before_return' => false,
18-
'braces' => ['allow_single_line_closure' => false],
19-
'cast_spaces' => true,
20-
'class_definition' => ['singleLine' => false, 'singleItemSingleLine' => true, 'multiLineExtendsEachSingleLine' => true],
21-
'class_keyword_remove' => false,
22-
'combine_consecutive_unsets' => true,
23-
'concat_space' => false,
24-
'declare_equal_normalize' => ['space' => 'single'],
25-
'declare_strict_types' => false,
26-
'elseif' => true,
27-
'encoding' => true,
28-
'full_opening_tag' => true,
29-
'function_declaration' => true,
30-
'function_typehint_space' => true,
31-
'general_phpdoc_annotation_remove' => ['expectedExceptionMessageRegExp', 'expectedException', 'expectedExceptionMessage'],
32-
'hash_to_slash_comment' => true,
33-
'header_comment' => false,
34-
'heredoc_to_nowdoc' => true,
35-
'include' => true,
36-
'indentation_type' => true,
37-
'line_ending' => true,
38-
'linebreak_after_opening_tag' => true,
39-
'lowercase_cast' => true,
40-
'lowercase_constants' => true,
41-
'lowercase_keywords' => true,
42-
'mb_str_functions' => false,
43-
'method_argument_space' => true,
44-
'method_separation' => true,
45-
'native_function_casing' => true,
46-
'native_function_invocation' => false,
47-
'new_with_braces' => true,
48-
'no_blank_lines_after_class_opening' => true,
49-
'no_blank_lines_after_phpdoc' => false,
50-
'no_blank_lines_before_namespace' => false,
51-
'no_closing_tag' => true,
52-
'no_empty_comment' => true,
53-
'no_empty_phpdoc' => true,
54-
'no_empty_statement' => true,
55-
'no_extra_consecutive_blank_lines' => ['break', 'continue', 'extra', 'return', 'throw', 'use', 'parenthesis_brace_block', 'square_brace_block', 'curly_brace_block'],
56-
'no_leading_import_slash' => true,
57-
'no_leading_namespace_whitespace' => true,
58-
'no_mixed_echo_print' => ['use' => 'echo'],
59-
'no_multiline_whitespace_around_double_arrow' => true,
60-
'no_multiline_whitespace_before_semicolons' => true,
61-
'no_short_bool_cast' => true,
62-
'no_short_echo_tag' => true,
63-
'no_singleline_whitespace_before_semicolons' => true,
64-
'no_spaces_after_function_name' => true,
65-
'no_spaces_around_offset' => true,
66-
'no_spaces_inside_parenthesis' => true,
67-
'no_trailing_comma_in_list_call' => true,
68-
'no_trailing_comma_in_singleline_array' => true,
69-
'no_trailing_whitespace' => true,
70-
'no_trailing_whitespace_in_comment' => true,
71-
'no_unneeded_control_parentheses' => true,
72-
'no_unused_imports' => true,
73-
'no_useless_else' => true,
74-
'no_useless_return' => true,
75-
'no_whitespace_before_comma_in_array' => true,
76-
'no_whitespace_in_blank_line' => true,
77-
'normalize_index_brace' => true,
78-
'not_operator_with_space' => false,
79-
'not_operator_with_successor_space' => false,
80-
'object_operator_without_whitespace' => true,
81-
'ordered_class_elements' => false,
82-
'ordered_imports' => true,
83-
'php_unit_fqcn_annotation' => true,
84-
'php_unit_strict' => false,
85-
'phpdoc_add_missing_param_annotation' => true,
86-
'phpdoc_align' => true,
87-
'phpdoc_inline_tag' => true,
88-
'phpdoc_no_access' => true,
89-
'phpdoc_no_alias_tag' => ['property-read' => 'property', 'property-write' => 'property', 'type' => 'var'],
90-
'phpdoc_no_empty_return' => true,
91-
'phpdoc_no_package' => true,
92-
'phpdoc_no_useless_inheritdoc' => true,
93-
'phpdoc_order' => true,
94-
'phpdoc_return_self_reference' => true,
95-
'phpdoc_scalar' => true,
96-
'phpdoc_separation' => false,
97-
'phpdoc_single_line_var_spacing' => true,
98-
'phpdoc_summary' => false,
99-
'phpdoc_to_comment' => true,
100-
'phpdoc_trim' => true,
101-
'phpdoc_types' => true,
102-
'phpdoc_var_without_name' => true,
103-
'pow_to_exponentiation' => false,
104-
'pre_increment' => true,
105-
'protected_to_private' => true,
106-
'return_type_declaration' => true,
107-
'semicolon_after_instruction' => true,
108-
'short_scalar_cast' => true,
109-
'single_blank_line_at_eof' => true,
110-
'single_blank_line_before_namespace' => false,
111-
'single_class_element_per_statement' => true,
112-
'single_import_per_statement' => true,
113-
'single_line_after_imports' => true,
114-
'single_quote' => true,
115-
'space_after_semicolon' => true,
116-
'standardize_not_equals' => true,
117-
'strict_param' => false,
118-
'switch_case_semicolon_to_colon' => true,
119-
'switch_case_space' => true,
120-
'ternary_operator_spaces' => true,
121-
'ternary_to_null_coalescing' => false,
122-
'trailing_comma_in_multiline_array' => true,
123-
'trim_array_spaces' => true,
124-
'unary_operator_spaces' => true,
125-
'visibility_required' => true,
126-
'whitespace_after_comma_in_array' => true,
127-
))
128-
->setFinder($finder)
129-
;
3+
return My\PhpCsFixerConfig::create()
4+
->setFinder(
5+
PhpCsFixer\Finder::create()
6+
->files()
7+
->name('*.php')
8+
->in(__DIR__.'/src')
9+
->in(__DIR__.'/tests')
10+
);

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ language: php
22
sudo: false
33

44
php:
5-
- 7.0
6-
- 7.1
75
- 7.2
6+
- 7.3
87

98
before_script:
109
- composer self-update

CHANGELOG.md

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,83 +2,67 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
The format is based on [Keep a Changelog](http://keepachangelog.com/)
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8-
## [Unreleased]
8+
## [2.0.0] - 2019-11-30
9+
### Added
10+
- Added a second argument to the constructor to set a `ResponseFactory`
911

10-
### Fixed
12+
### Removed
13+
- Support for PHP 7.0 and 7.1
14+
- The option `responseFactory`. Use the second argument of the constructor.
1115

16+
### Fixed
1217
- Use `phpstan` as a dev dependency to detect bugs
1318

14-
### Added
15-
16-
- Added `responseFactory` option to `__construct`
17-
1819
## [1.1.0] - 2018-08-04
19-
2020
### Added
21-
2221
- PSR-17 support
2322
- New option `responseFactory`
2423

2524
## [1.0.0] - 2018-01-25
26-
2725
### Added
28-
2926
- Improved testing and added code coverage reporting
3027
- Added tests for PHP 7.2
3128

3229
### Changed
33-
3430
- Upgraded to the final version of PSR-15 `psr/http-server-middleware`
3531

3632
### Fixed
37-
3833
- Updated license year
3934

4035
## [0.5.0] - 2017-11-13
41-
4236
### Changed
43-
4437
- Replaced `http-interop/http-middleware` with `http-interop/http-server-middleware`.
4538

4639
### Removed
47-
4840
- Removed support for PHP 5.x.
4941

5042
## [0.4.0] - 2017-09-21
51-
5243
### Added
53-
5444
- The `$users` argument of the constructor can be an `ArrayAccess`.
5545

5646
### Changed
57-
5847
- Append `.dist` suffix to phpcs.xml and phpunit.xml files
5948
- Changed the configuration of phpcs and php_cs
6049
- Upgraded phpunit to the latest version and improved its config file
6150
- Updated to `http-interop/http-middleware#0.5`
6251

6352
## [0.3.0] - 2016-12-26
64-
6553
### Changed
66-
6754
- Updated tests
6855
- Updated to `http-interop/http-middleware#0.4`
6956
- Updated `friendsofphp/php-cs-fixer#2.0`
7057

7158
## [0.2.0] - 2016-11-22
72-
7359
### Changed
74-
7560
- Updated to `http-interop/http-middleware#0.3`
7661

7762
## 0.1.0 - 2016-10-02
78-
7963
First version
8064

81-
[Unreleased]: https://github.com/middlewares/http-authentication/compare/v1.1.0...HEAD
65+
[2.0.0]: https://github.com/middlewares/http-authentication/compare/v1.1.0...v2.0.0
8266
[1.1.0]: https://github.com/middlewares/http-authentication/compare/v1.0.0...v1.1.0
8367
[1.0.0]: https://github.com/middlewares/http-authentication/compare/v0.5.0...v1.0.0
8468
[0.5.0]: https://github.com/middlewares/http-authentication/compare/v0.4.0...v0.5.0

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2018
3+
Copyright (c) 2019
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)
0