From c32445d83ddd222aee24da6de047ef331cbd4bfe Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Fri, 21 Dec 2018 06:55:37 +0100 Subject: [PATCH] use header comment --- .php_cs.dist | 12 ++++++++++++ src/Context/SonataAdminContext.php | 9 +++++++++ src/Test/BaseTestCase.php | 9 +++++++++ src/Test/TestClient.php | 9 +++++++++ tests/Context/SonataAdminContextTest.php | 9 +++++++++ 5 files changed, 48 insertions(+) diff --git a/.php_cs.dist b/.php_cs.dist index 744601a..e049584 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -1,5 +1,14 @@ + +For the full copyright and license information, please view the LICENSE +file that was distributed with this source code. +HEADER; + $finder = PhpCsFixer\Finder::create() ->in('src') ->in('tests') @@ -8,6 +17,9 @@ $finder = PhpCsFixer\Finder::create() return PhpCsFixer\Config::create() ->setRules([ '@Symfony' => true, + 'header_comment' => [ + 'header' => $header, + ], ]) ->setFinder($finder) ; \ No newline at end of file diff --git a/src/Context/SonataAdminContext.php b/src/Context/SonataAdminContext.php index efceb80..0eedf73 100644 --- a/src/Context/SonataAdminContext.php +++ b/src/Context/SonataAdminContext.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace OStark\Context; use Behat\Behat\Context\CustomSnippetAcceptingContext; diff --git a/src/Test/BaseTestCase.php b/src/Test/BaseTestCase.php index 43dacd8..e6971ac 100644 --- a/src/Test/BaseTestCase.php +++ b/src/Test/BaseTestCase.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace OStark\Test; use Behat\Mink\Driver\BrowserKitDriver; diff --git a/src/Test/TestClient.php b/src/Test/TestClient.php index 9d557eb..0d83dfa 100644 --- a/src/Test/TestClient.php +++ b/src/Test/TestClient.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace OStark\Test; use Symfony\Component\BrowserKit\Client; diff --git a/tests/Context/SonataAdminContextTest.php b/tests/Context/SonataAdminContextTest.php index a002ec1..0a41ed9 100644 --- a/tests/Context/SonataAdminContextTest.php +++ b/tests/Context/SonataAdminContextTest.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Tests\OStark\Context; use Behat\Mink\Element\NodeElement;