Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1ace16c

Browse files
committedMar 26, 2024
PHP-CS-Fixer: automatically add file header
1 parent 32d958b commit 1ace16c

File tree

68 files changed

+116
-61
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+116
-61
lines changed
 

‎.php-cs-fixer.php

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
$header = <<<HEADER
4+
(c) Packagist Conductors GmbH <contact@packagist.com>
5+
6+
For the full copyright and license information, please view the LICENSE
7+
file that was distributed with this source code.
8+
HEADER;
9+
310
$finder = PhpCsFixer\Finder::create()
411
->files()
512
->in(__DIR__.'/src')
@@ -13,6 +20,12 @@
1320
->setRules(array(
1421
'@PSR2' => true,
1522
'no_unused_imports' => true,
23+
'header_comment' => [
24+
'comment_type' => 'PHPDoc',
25+
'header' => $header,
26+
'location' => 'after_declare_strict',
27+
'separate' => 'both',
28+
]
1629
))
1730
->setFinder($finder)
1831
;

‎src/Api/AbstractApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/*
3+
/**
44
* (c) Packagist Conductors GmbH <contact@packagist.com>
55
*
66
* For the full copyright and license information, please view the LICENSE

0 commit comments

Comments
 (0)
Please sign in to comment.