Skip to content

Commit bce7745

Browse files
committed
Fix code style
1 parent 4cceb47 commit bce7745

File tree

2 files changed

+85
-35
lines changed

2 files changed

+85
-35
lines changed

.php_cs.php

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Active Collab ID project.
5+
*
6+
* (c) A51 doo <[email protected]>. All rights reserved.
7+
*/
8+
9+
$header = <<<EOF
10+
This file is part of the Active Collab ID project.
11+
12+
(c) A51 doo <[email protected]>. All rights reserved.
13+
EOF;
14+
15+
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
16+
17+
return (new Symfony\CS\Config\Config('psr2'))->fixers([
18+
'header_comment',
19+
'array_element_no_space_before_comma',
20+
'array_element_white_space_after_comma',
21+
'double_arrow_multiline_whitespaces',
22+
'hash_to_slash_comment',
23+
'include',
24+
'join_function',
25+
'multiline_array_trailing_comma',
26+
'namespace_no_leading_whitespace',
27+
'no_blank_lines_after_class_opening ',
28+
'no_empty_lines_after_phpdocs',
29+
'phpdoc_scalar',
30+
'phpdoc_short_description',
31+
'self_accessor',
32+
'single_array_no_trailing_comma',
33+
'single_blank_line_before_namespace',
34+
'spaces_after_semicolon',
35+
'spaces_before_semicolon',
36+
'spaces_cast',
37+
'standardize_not_equal',
38+
'ternary_spaces',
39+
'trim_array_spaces',
40+
'unused_use ',
41+
'whitespacy_lines',
42+
'ordered_use',
43+
'short_array_syntax',
44+
'phpdoc_params',
45+
'-phpdoc_separation',
46+
'-phpdoc_no_package',
47+
'-print_to_echo',
48+
'-concat_without_spaces',
49+
'-empty_return',
50+
])->finder((new Symfony\CS\Finder\DefaultFinder())->in([__DIR__ . '/src', __DIR__ . '/test']));

composer.json

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
{
2-
"name": "activecollab/databaseobject",
3-
"type": "library",
4-
"description": "Library that enables easy persistance of objects to the database",
5-
"license": "MIT",
6-
"prefer-stable": true,
7-
"keywords": [
8-
"persistence",
9-
"mysql",
10-
"activecollab"
11-
],
12-
"homepage": "https://labs.activecollab.com",
13-
"authors": [
14-
{
15-
"name": "Ilija Studen",
16-
"email": "[email protected]"
2+
"name": "activecollab/databaseobject",
3+
"type": "library",
4+
"description": "Library that enables easy persistance of objects to the database",
5+
"license": "MIT",
6+
"prefer-stable": true,
7+
"keywords": [
8+
"persistence",
9+
"mysql",
10+
"activecollab"
11+
],
12+
"homepage": "https://labs.activecollab.com",
13+
"authors": [
14+
{
15+
"name": "Ilija Studen",
16+
"email": "[email protected]"
17+
}
18+
],
19+
"require": {
20+
"php": ">=5.6.0",
21+
"activecollab/databaseconnection": "dev-next",
22+
"activecollab/etag": "~1.0",
23+
"doctrine/inflector": "~1.0",
24+
"psr/log": "~1.0.0"
25+
},
26+
"require-dev": {
27+
"fabpot/php-cs-fixer": "~1.0",
28+
"phpunit/phpunit": "~5.0",
29+
"pimple/pimple": "~3.0.0"
30+
},
31+
"minimum-stability": "dev",
32+
"autoload": {
33+
"psr-4": {
34+
"ActiveCollab\\DatabaseObject\\": "src",
35+
"ActiveCollab\\DatabaseObject\\Test\\": "test/src"
36+
}
1737
}
18-
],
19-
"require": {
20-
"php": ">=5.6.0",
21-
"activecollab/databaseconnection": "dev-next",
22-
"activecollab/etag": "~1.0",
23-
"doctrine/inflector": "~1.0",
24-
"psr/log": "~1.0.0"
25-
},
26-
"require-dev": {
27-
"fabpot/php-cs-fixer": "~1.0",
28-
"phpunit/phpunit": "~5.0",
29-
"pimple/pimple": "~3.0.0"
30-
},
31-
"minimum-stability": "dev",
32-
"autoload": {
33-
"psr-4": {
34-
"ActiveCollab\\DatabaseObject\\": "src",
35-
"ActiveCollab\\DatabaseObject\\Test\\": "test/src"
36-
}
37-
}
3838
}

0 commit comments

Comments
 (0)