-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
31 lines (28 loc) · 975 Bytes
/
.php-cs-fixer.php
File metadata and controls
31 lines (28 loc) · 975 Bytes
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
<?php
/**
* @copyright ©2025 Maatify.dev
* @Library maatify/data-adapters
* @Project maatify:data-adapters
* @author Mohamed Abdulalim (megyptm) <mohamed@maatify.dev>
* @since 2025-11-18 12:42
* @see https://www.maatify.dev Maatify.com
* @link https://github.com/Maatify/data-adapters view project on GitHub
* @note Distributed in the hope that it will be useful - WITHOUT WARRANTY.
*/
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests');
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@PSR12' => true,
'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
'no_unused_imports' => true,
'ordered_imports' => true,
'no_trailing_comma_in_singleline' => true,
'single_quote' => true,
'declare_strict_types' => true,
])
->setFinder($finder);