-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php_cs.php
More file actions
46 lines (40 loc) · 1.03 KB
/
.php_cs.php
File metadata and controls
46 lines (40 loc) · 1.03 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
<?php
declare(strict_types=1);
/*
* Part of the Stripe Billing Laravel package.
*
* NOTICE OF LICENSE
*
* Licensed under the Cartalyst PSL License.
*
* This source file is subject to the Cartalyst PSL License that is
* bundled with this package in the LICENSE file.
*
* @package Stripe Billing Laravel
* @version 13.0.0
* @author Cartalyst LLC
* @license Cartalyst PSL
* @copyright (c) 2011-2025, Cartalyst LLC
* @link https://cartalyst.com
*/
// Directories to not scan
$excludeDirs = [
'vendor/',
];
// Files to not scan
$excludeFiles = [];
// Create a new Symfony Finder instance
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude($excludeDirs)
->ignoreDotFiles(true)->ignoreVCS(true)
->filter(function (\SplFileInfo $file) use ($excludeFiles) {
return ! in_array($file->getRelativePathName(), $excludeFiles);
})
;
return Cartalyst\PhpCsFixer\Config::create()
->setFinder($finder)
->setUsingCache(false)
->setRiskyAllowed(true)
->withPHPUnitRules()
;