Skip to content

Commit 8d42076

Browse files
committed
minor #511 Enabled the PHP CS rule to fix the file header comment (javiereguiluz)
This PR was squashed before being merged into the master branch (closes #511). Discussion ---------- Enabled the PHP CS rule to fix the file header comment To avoid issues like #510. Commits ------- 66a02fc Enabled the PHP CS rule to fix the file header comment
2 parents 2d0eb7b + 66a02fc commit 8d42076

File tree

6 files changed

+55
-0
lines changed

6 files changed

+55
-0
lines changed

.php_cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#!/usr/bin/env php
22
<?php
33

4+
$fileHeaderComment = <<<COMMENT
5+
This file is part of the Symfony package.
6+
7+
(c) Fabien Potencier <[email protected]>
8+
9+
For the full copyright and license information, please view the LICENSE
10+
file that was distributed with this source code.
11+
COMMENT;
12+
413
$finder = PhpCsFixer\Finder::create()
514
->in(__DIR__)
615
->exclude('var')
@@ -17,6 +26,7 @@ return PhpCsFixer\Config::create()
1726
'@Symfony' => true,
1827
'@Symfony:risky' => true,
1928
'array_syntax' => ['syntax' => 'short'],
29+
'header_comment' => ['header' => $fileHeaderComment, 'separate' => 'both'],
2030
'no_useless_else' => true,
2131
'no_useless_return' => true,
2232
'ordered_imports' => true,

app/AppCache.php

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

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
413

514
class AppCache extends HttpCache

app/AppKernel.php

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

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
use Symfony\Component\Config\Loader\LoaderInterface;
413
use Symfony\Component\HttpKernel\Kernel;
514

app/autoload.php

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

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
use Composer\Autoload\ClassLoader;
413
use Doctrine\Common\Annotations\AnnotationRegistry;
514

web/app.php

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

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
// This is the front controller used when executing the application in the
413
// production environment ('prod'). See:
514
// * http://symfony.com/doc/current/cookbook/configuration/front_controllers_and_kernel.html

web/app_dev.php

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

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
// This is the front controller used when executing the application in the
413
// development environment ('dev'). See:
514
// * http://symfony.com/doc/current/cookbook/configuration/front_controllers_and_kernel.html

0 commit comments

Comments
 (0)