forked from 1EdTech/lti-1-3-php-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
39 lines (36 loc) · 1.3 KB
/
.php-cs-fixer.php
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
<?php
require __DIR__.'/vendor/autoload.php';
return (new \Jubeki\LaravelCodeStyle\Config())
->setFinder(
\PhpCsFixer\Finder::create()
->exclude(['bootstrap', 'docker', 'public', 'resources', 'storage'])
->notPath('tsugi-config.php')
->notPath('server.php')
->ignoreVCS(true)
->ignoreVCSIgnored(true)
->in(__DIR__)
)
->setRules([
'@Symfony' => true,
'@Laravel' => true,
/* Packback-specific style preferences */
'not_operator_with_successor_space' => false,
'concat_space' => ['spacing' => 'one'],
'explicit_indirect_variable' => true,
'explicit_string_variable' => true,
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
'no_null_property_initialization' => true,
'ordered_class_elements' => true,
'phpdoc_no_empty_return' => true,
'phpdoc_order' => true,
'phpdoc_order_by_value' => true,
'phpdoc_types_order' => true,
'phpdoc_var_annotation_correct_order' => true,
'return_assignment' => true,
'single_line_throw' => false,
'yoda_style' => [
'equal' => false,
'identical' => false,
'less_and_greater' => false,
],
]);