Skip to content

Commit f2e454f

Browse files
authored
Merge pull request #22 from activecollab/next
Provide PSR-15 compatible middlewares
2 parents f9a033e + 8175195 commit f2e454f

25 files changed

+1864
-1376
lines changed

.php_cs.php

+18-5
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,19 @@
1818
'header' => $header,
1919
'location' => 'after_open',
2020
],
21-
'function_typehint_space' => true,
22-
'method_argument_space' => true,
23-
'no_trailing_whitespace' => true,
2421
'no_whitespace_before_comma_in_array' => true,
2522
'whitespace_after_comma_in_array' => true,
2623
'no_multiline_whitespace_around_double_arrow' => true,
2724
'hash_to_slash_comment' => true,
2825
'include' => true,
26+
'no_alias_functions' => false,
2927
'trailing_comma_in_multiline_array' => true,
3028
'no_leading_namespace_whitespace' => true,
29+
'no_blank_lines_after_class_opening' => true,
3130
'no_blank_lines_after_phpdoc' => true,
3231
'phpdoc_scalar' => true,
3332
'phpdoc_summary' => true,
34-
'self_accessor' => true,
33+
'self_accessor' => false,
3534
'no_trailing_comma_in_singleline_array' => true,
3635
'single_blank_line_before_namespace' => true,
3736
'space_after_semicolon' => true,
@@ -46,13 +45,27 @@
4645
'array_syntax' => ['syntax' => 'short'],
4746
'phpdoc_align' => true,
4847
'return_type_declaration' => true,
48+
'single_blank_line_at_eof' => true,
49+
'single_line_after_imports' => true,
4950
'single_quote' => true,
5051
'phpdoc_separation' => false,
5152
'phpdoc_no_package' => false,
5253
'no_mixed_echo_print' => false,
5354
'concat_space' => false,
5455
'simplified_null_return' => false,
55-
'single_blank_line_at_eof' => true,
56+
'blank_line_before_return' => true,
57+
'class_attributes_separation' => [
58+
'elements' => [],
59+
],
60+
'linebreak_after_opening_tag' => true,
61+
'native_function_casing' => true,
62+
'no_closing_tag' => true,
63+
'no_empty_comment' => true,
64+
'no_empty_statement' => true,
65+
'no_leading_import_slash' => true,
66+
'lowercase_constants' => true,
67+
'lowercase_cast' => true,
68+
'lowercase_keywords' => true,
5669
]
5770
)->setFinder((new PhpCsFixer\Finder())->in(
5871
[

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: php
22
php:
3-
- 7.1
3+
- 7.3
44
before_install:
55
- composer self-update
66
install: composer install --dev

composer.json

+7-5
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,21 @@
1515
}
1616
],
1717
"require": {
18-
"php": ">=7.1",
18+
"php": ">=7.3",
19+
"ext-json": "*",
1920
"ext-mbstring": "*",
20-
"activecollab/cookies": "^1.0",
21+
"activecollab/cookies": "^2.0",
2122
"activecollab/user": "^4.0",
2223
"google/apiclient": "^2.1",
23-
"guzzlehttp/psr7": "^1.2"
24+
"psr/http-server-middleware": "^1.0"
2425
},
2526
"require-dev": {
2627
"friendsofphp/php-cs-fixer": "^2.0",
2728
"lightsaml/lightsaml": "^1.1",
28-
"phpunit/phpunit": "^5.0",
29+
"phpunit/phpunit": "^7.0",
2930
"satooshi/php-coveralls": "^1.0",
30-
"slim/slim": "~3.2"
31+
"zendframework/zend-diactoros": "^2.2",
32+
"pimple/pimple": "^3.2"
3133
},
3234
"suggest": {
3335
"lightsaml/lightsaml": "If you want to use SAML authentication you should manually install this package."

0 commit comments

Comments
 (0)