Skip to content

Commit ee45540

Browse files
committed
style: enforce project headers
match the configured StyleCI header and enforce it through the local fixer.
1 parent cf90df3 commit ee45540

36 files changed

Lines changed: 325 additions & 0 deletions

‎.php-cs-fixer.dist.php‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
$header = <<<'HEADER'
6+
This file is part of php-cache\cache-bundle package.
7+
8+
(c) 2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
9+
10+
This source file is subject to the MIT license that is bundled
11+
with this source code in the file LICENSE.
12+
HEADER;
13+
514
$finder = PhpCsFixer\Finder::create()
615
->in([
716
__DIR__.'/src',
@@ -14,6 +23,7 @@
1423
'@Symfony' => true,
1524
'@Symfony:risky' => true,
1625
'declare_strict_types' => false,
26+
'header_comment' => ['header' => $header],
1727
'modern_serialization_methods' => false,
1828
'no_php4_constructor' => false,
1929
'no_trailing_whitespace_in_string' => true,

‎src/Cache/FixedTaggingCachePool.php‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of php-cache\cache-bundle package.
7+
*
8+
* (c) 2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
9+
*
10+
* This source file is subject to the MIT license that is bundled
11+
* with this source code in the file LICENSE.
12+
*/
13+
514
namespace Cache\CacheBundle\Cache;
615

716
use Cache\TagInterop\TaggableCacheItemInterface;

‎src/CacheBundle.php‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of php-cache\cache-bundle package.
7+
*
8+
* (c) 2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
9+
*
10+
* This source file is subject to the MIT license that is bundled
11+
* with this source code in the file LICENSE.
12+
*/
13+
514
namespace Cache\CacheBundle;
615

716
use Cache\CacheBundle\DependencyInjection\Compiler\CacheTaggingPass;

‎src/Command/CacheFlushCommand.php‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of php-cache\cache-bundle package.
7+
*
8+
* (c) 2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
9+
*
10+
* This source file is subject to the MIT license that is bundled
11+
* with this source code in the file LICENSE.
12+
*/
13+
514
namespace Cache\CacheBundle\Command;
615

716
use Cache\TagInterop\TaggableCacheItemPoolInterface;

‎src/DataCollector/CacheDataCollector.php‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of php-cache\cache-bundle package.
7+
*
8+
* (c) 2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
9+
*
10+
* This source file is subject to the MIT license that is bundled
11+
* with this source code in the file LICENSE.
12+
*/
13+
514
namespace Cache\CacheBundle\DataCollector;
615

716
use Symfony\Component\HttpFoundation\Request;

‎src/DataCollector/CacheProxyInterface.php‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of php-cache\cache-bundle package.
7+
*
8+
* (c) 2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
9+
*
10+
* This source file is subject to the MIT license that is bundled
11+
* with this source code in the file LICENSE.
12+
*/
13+
514
namespace Cache\CacheBundle\DataCollector;
615

716
use Psr\Cache\CacheItemPoolInterface;

‎src/DataCollector/TraceableAdapterEvent.php‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of php-cache\cache-bundle package.
7+
*
8+
* (c) 2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
9+
*
10+
* This source file is subject to the MIT license that is bundled
11+
* with this source code in the file LICENSE.
12+
*/
13+
514
namespace Cache\CacheBundle\DataCollector;
615

716
final class TraceableAdapterEvent

‎src/DataCollector/TraceableCachePool.php‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of php-cache\cache-bundle package.
7+
*
8+
* (c) 2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
9+
*
10+
* This source file is subject to the MIT license that is bundled
11+
* with this source code in the file LICENSE.
12+
*/
13+
514
namespace Cache\CacheBundle\DataCollector;
615

716
use Cache\TagInterop\TaggableCacheItemPoolInterface;

‎src/DataCollector/TraceableTaggableCachePool.php‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of php-cache\cache-bundle package.
7+
*
8+
* (c) 2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
9+
*
10+
* This source file is subject to the MIT license that is bundled
11+
* with this source code in the file LICENSE.
12+
*/
13+
514
namespace Cache\CacheBundle\DataCollector;
615

716
use Cache\TagInterop\TaggableCacheItemInterface;

‎src/DependencyInjection/CacheExtension.php‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of php-cache\cache-bundle package.
7+
*
8+
* (c) 2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
9+
*
10+
* This source file is subject to the MIT license that is bundled
11+
* with this source code in the file LICENSE.
12+
*/
13+
514
namespace Cache\CacheBundle\DependencyInjection;
615

716
use Cache\CacheBundle\Command\CacheFlushCommand;

0 commit comments

Comments
 (0)