Skip to content

Commit f41925f

Browse files
authored
Merge pull request #77 from packagist/php-cs-fixer-file-header
PHP-CS-Fixer: automatically add file header
2 parents 403f4a7 + 34812d9 commit f41925f

File tree

71 files changed

+137
-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.

71 files changed

+137
-61
lines changed

.php-cs-fixer.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
$header = <<<HEADER
4+
(c) Packagist Conductors GmbH <[email protected]>
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/*
3+
/**
44
* (c) Packagist Conductors GmbH <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/Credentials.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/*
3+
/**
44
* (c) Packagist Conductors GmbH <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/Customers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/*
3+
/**
44
* (c) Packagist Conductors GmbH <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/Customers/MagentoLegacyKeys.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/*
3+
/**
44
* (c) Packagist Conductors GmbH <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/Customers/VendorBundles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/*
3+
/**
44
* (c) Packagist Conductors GmbH <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/Jobs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/*
3+
/**
44
* (c) Packagist Conductors GmbH <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/MirroredRepositories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/*
3+
/**
44
* (c) Packagist Conductors GmbH <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/Organization.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/*
3+
/**
44
* (c) Packagist Conductors GmbH <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/Packages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/*
3+
/**
44
* (c) Packagist Conductors GmbH <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

0 commit comments

Comments
 (0)