Skip to content

Commit 113208e

Browse files
authored
Merge pull request #20 from activecollab/v3.0
V3.0
2 parents ad7feea + 616e139 commit 113208e

File tree

8 files changed

+1572
-604
lines changed

8 files changed

+1572
-604
lines changed

.php_cs.php

+48-37
Original file line numberDiff line numberDiff line change
@@ -12,40 +12,51 @@
1212
(c) A51 doo <[email protected]>. All rights reserved.
1313
EOF;
1414

15-
return (new PhpCsFixer\Config('psr2'))->setRules([
16-
'header_comment' => ['header' => $header, 'location' => 'after_open'],
17-
'no_whitespace_before_comma_in_array' => true,
18-
'whitespace_after_comma_in_array' => true,
19-
'no_multiline_whitespace_around_double_arrow' => true,
20-
'hash_to_slash_comment' => true,
21-
'include' => true,
22-
'trailing_comma_in_multiline_array' => true,
23-
'no_leading_namespace_whitespace' => true,
24-
'no_blank_lines_after_class_opening' => true,
25-
'no_blank_lines_after_phpdoc' => true,
26-
'phpdoc_scalar' => true,
27-
'phpdoc_summary' => true,
28-
'self_accessor' => true,
29-
'no_trailing_comma_in_singleline_array' => true,
30-
'single_blank_line_before_namespace' => true,
31-
'space_after_semicolon' => true,
32-
'no_singleline_whitespace_before_semicolons' => true,
33-
'cast_spaces' => true,
34-
'standardize_not_equals' => true,
35-
'ternary_operator_spaces' => true,
36-
'trim_array_spaces' => true,
37-
'no_unused_imports' => true,
38-
'no_whitespace_in_blank_line' => true,
39-
'ordered_imports' => true,
40-
'array_syntax' => ['syntax' => 'short'],
41-
'phpdoc_align' => true,
42-
'return_type_declaration' => true,
43-
'single_blank_line_at_eof' => true,
44-
'single_line_after_imports' => true,
45-
'single_quote' => true,
46-
'phpdoc_separation' => false,
47-
'phpdoc_no_package' => false,
48-
'no_mixed_echo_print' => false,
49-
'concat_space' => false,
50-
'simplified_null_return' => false,
51-
])->setFinder((new PhpCsFixer\Finder())->in([__DIR__ . '/src', __DIR__ . '/test']));
15+
return (new PhpCsFixer\Config('psr2'))->setRules(
16+
[
17+
'header_comment' => [
18+
'header' => $header,
19+
'location' => 'after_open',
20+
],
21+
'function_typehint_space' => true,
22+
'method_argument_space' => true,
23+
'no_trailing_whitespace' => true,
24+
'no_whitespace_before_comma_in_array' => true,
25+
'whitespace_after_comma_in_array' => true,
26+
'no_multiline_whitespace_around_double_arrow' => true,
27+
'hash_to_slash_comment' => true,
28+
'include' => true,
29+
'trailing_comma_in_multiline_array' => true,
30+
'no_leading_namespace_whitespace' => true,
31+
'no_blank_lines_after_phpdoc' => true,
32+
'phpdoc_scalar' => true,
33+
'phpdoc_summary' => true,
34+
'self_accessor' => true,
35+
'no_trailing_comma_in_singleline_array' => true,
36+
'single_blank_line_before_namespace' => true,
37+
'space_after_semicolon' => true,
38+
'no_singleline_whitespace_before_semicolons' => true,
39+
'cast_spaces' => true,
40+
'standardize_not_equals' => true,
41+
'ternary_operator_spaces' => true,
42+
'trim_array_spaces' => true,
43+
'no_unused_imports' => true,
44+
'no_whitespace_in_blank_line' => true,
45+
'ordered_imports' => true,
46+
'array_syntax' => ['syntax' => 'short'],
47+
'phpdoc_align' => true,
48+
'return_type_declaration' => true,
49+
'single_quote' => true,
50+
'phpdoc_separation' => false,
51+
'phpdoc_no_package' => false,
52+
'no_mixed_echo_print' => false,
53+
'concat_space' => false,
54+
'simplified_null_return' => false,
55+
'single_blank_line_at_eof' => true,
56+
]
57+
)->setFinder((new PhpCsFixer\Finder())->in(
58+
[
59+
__DIR__ . '/src',
60+
__DIR__ . '/test'
61+
]
62+
));

.travis.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
language: php
22
php:
3-
- 5.6
4-
- 7
3+
- 7.1
54
before_install:
65
- composer self-update
76
install: composer install --dev
8-
script: vendor/bin/phpunit
7+
script: php vendor/bin/phpunit

composer.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@
1515
}
1616
],
1717
"require": {
18-
"php": ">=5.6.0",
18+
"php": ">=7.1",
1919
"ext-mbstring": "*",
2020
"activecollab/cookies": "^1.0",
21-
"activecollab/user": "^3.0",
22-
"google/apiclient": "^1.1",
23-
"guzzlehttp/psr7": "^1.2",
24-
"paragonie/random_compat": "^2.0"
21+
"activecollab/user": "v4.0.x-dev",
22+
"google/apiclient": "^2.1",
23+
"guzzlehttp/psr7": "^1.2"
2524
},
2625
"require-dev": {
2726
"friendsofphp/php-cs-fixer": "^2.0",

0 commit comments

Comments
 (0)