-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIbexa50RuleSet.php
More file actions
56 lines (53 loc) · 1.73 KB
/
Ibexa50RuleSet.php
File metadata and controls
56 lines (53 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);
namespace Ibexa\CodeStyle\PhpCsFixer\Sets;
final class Ibexa50RuleSet extends AbstractIbexaRuleSet
{
public function getRules(): array
{
return array_merge(
[
'@PER-CS2x0' => true,
],
parent::getRules(),
[
'spaces_inside_parentheses' => [
'space' => 'none',
],
'declare_parentheses' => true,
'type_declaration_spaces' => [
'elements' => [
'function',
'property',
],
],
'native_type_declaration_casing' => true,
'new_with_parentheses' => true,
'no_trailing_comma_in_singleline' => [
'elements' => [
'arguments',
'array_destructuring',
'array',
'group_import',
],
],
'no_unneeded_braces' => true,
'blank_lines_before_namespace' => true,
'class_definition' => [
'single_item_single_line' => true,
'inline_constructor_arguments' => false,
],
'php_unit_test_case_static_method_calls' => [
'call_type' => 'self',
],
'types_spaces' => [
'space' => 'single',
],
],
);
}
}