Skip to content

Commit 1ace16c

Browse files
committed
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 <[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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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/Artifacts.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/Projects.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/Projects/MirroredRepositories.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/Projects/Packages.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/SecurityIssues.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/Subrepositories.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/Subrepositories/MirroredRepositories.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/Subrepositories/Packages.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/Synchronizations.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/Teams.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/Tokens.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/VendorBundles.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Api/VendorBundles/Packages.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Client.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Exception/ErrorException.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Exception/ExceptionInterface.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Exception/HttpTransportException.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Exception/InvalidArgumentException.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Exception/JobErrorException.php

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

3+
/**
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+
*/
9+
310
namespace PrivatePackagist\ApiClient\Exception;
411

512
class JobErrorException extends RuntimeException

src/Exception/JobTimeoutException.php

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

3+
/**
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+
*/
9+
310
namespace PrivatePackagist\ApiClient\Exception;
411

512
class JobTimeoutException extends RuntimeException

src/Exception/ResourceNotFoundException.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/Exception/RuntimeException.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/HttpClient/HttpPluginClientBuilder.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/HttpClient/Message/ResponseMediator.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/HttpClient/Plugin/ExceptionThrower.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/HttpClient/Plugin/PathPrepend.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/HttpClient/Plugin/RequestSignature.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/JobHelper.php

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

3+
/**
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+
*/
9+
310
namespace PrivatePackagist\ApiClient;
411

512
use PrivatePackagist\ApiClient\Exception\JobErrorException;

src/TeamPermissions.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

src/WebhookSignature.php

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

3+
/**
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+
*/
9+
310
namespace PrivatePackagist\ApiClient;
411

512
class WebhookSignature

tests/Api/ApiTestCase.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

tests/Api/CredentialsTest.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

tests/Api/Customers/MagentoLegacyKeysTest.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 <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE

tests/Api/Customers/VendorBundlesTest.php

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php declare(strict_types=1);
22

3+
/**
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+
*/
9+
310
namespace PrivatePackagist\ApiClient\Api\Customers;
411

512
use PHPUnit\Framework\MockObject\MockObject;

0 commit comments

Comments
 (0)