forked from Astrotomic/laravel-translatable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
35 lines (33 loc) · 987 Bytes
/
.php_cs
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
<?php
$finder = PhpCsFixer\Finder::create()
->in('src/Translatable');
return PhpCsFixer\Config::create()
->setRules([
'ordered_class_elements' => [
'order' => [
'use_trait',
'constant_public',
'constant_protected',
'constant_private',
'property_public',
'property_protected',
'property_private',
'construct',
'method_public_static',
'method_public',
'method_protected_static',
'method_protected',
'method_private_static',
'method_private',
'destruct',
'magic',
],
'sortAlgorithm' => 'alpha',
],
'yoda_style' => [
'equal' => false,
'identical' => false,
'less_and_greater' => null,
],
])
->setFinder($finder);