Skip to content

Commit 6f9f10c

Browse files
committed
Standardise file headers
1 parent f4bb4a6 commit 6f9f10c

10 files changed

+33
-55
lines changed

.php_cs.dist

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2-
2+
/**
3+
* Behat Code Coverage
4+
*/
35
declare(strict_types=1);
46

57
return PhpCsFixer\Config::create()
@@ -18,6 +20,13 @@ return PhpCsFixer\Config::create()
1820
'yoda_style' => false,
1921
'phpdoc_trim_consecutive_blank_line_separation' => true,
2022
'no_superfluous_phpdoc_tags' => ['allow_mixed' => false],
23+
'header_comment' => [
24+
'location' => 'after_open',
25+
'comment_type' => 'PHPDoc',
26+
'separate' => 'none',
27+
'header' => 'Behat Code Coverage',
28+
],
29+
'phpdoc_line_span' => true,
2130
])
2231
->setRiskyAllowed(true)
2332
->setFinder(

features/bootstrap/MathsContext.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2-
2+
/**
3+
* Behat Code Coverage
4+
*/
35
declare(strict_types=1);
46

57
use Behat\Behat\Context\Context;

src/Controller/Cli/CodeCoverageController.php

+2-13
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
<?php
2-
3-
declare(strict_types=1);
42
/**
5-
* @author ek9 <dev@ek9.co>
6-
*
7-
* @license BSD-2-Clause
8-
*
9-
* For the full copyright and license information, please see the LICENSE file
10-
* that was distributed with this source code.
3+
* Behat Code Coverage
114
*/
5+
declare(strict_types=1);
126

137
namespace DVDoug\Behat\CodeCoverage\Controller\Cli;
148

@@ -18,11 +12,6 @@
1812
use Symfony\Component\Console\Input\InputOption;
1913
use Symfony\Component\Console\Output\OutputInterface;
2014

21-
/**
22-
* Code Coverage Cli Controller.
23-
*
24-
* @author Danny Lewis
25-
*/
2615
class CodeCoverageController implements Controller
2716
{
2817
/**

src/Extension.php

+2-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
<?php
2-
3-
declare(strict_types=1);
42
/**
5-
* Code Coverage Extension for Behat.
6-
*
7-
* @copyright 2013 Anthon Pang
8-
*
9-
* @license BSD-2-Clause
3+
* Behat Code Coverage
104
*/
5+
declare(strict_types=1);
116

127
namespace DVDoug\Behat\CodeCoverage;
138

@@ -33,11 +28,6 @@
3328
use Symfony\Component\DependencyInjection\Reference;
3429
use function sys_get_temp_dir;
3530

36-
/**
37-
* Code coverage extension.
38-
*
39-
* @author Anthon Pang <apang@softwaredevelopment.ca>
40-
*/
4131
class Extension implements ExtensionInterface
4232
{
4333
/**

src/Service/ReportService.php

+2-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
<?php
2-
3-
declare(strict_types=1);
42
/**
5-
* Code Coverage Report Service.
6-
*
7-
* @copyright 2013 Anthon Pang
8-
*
9-
* @license BSD-2-Clause
3+
* Behat Code Coverage
104
*/
5+
declare(strict_types=1);
116

127
namespace DVDoug\Behat\CodeCoverage\Service;
138

@@ -22,11 +17,6 @@
2217
use SebastianBergmann\CodeCoverage\Report\Xml\Facade as XmlFacade;
2318
use function sprintf;
2419

25-
/**
26-
* Code coverage report service.
27-
*
28-
* @author Anthon Pang <apang@softwaredevelopment.ca>
29-
*/
3020
class ReportService
3121
{
3222
/**

src/Subscriber/EventSubscriber.php

+2-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
<?php
2-
3-
declare(strict_types=1);
42
/**
5-
* Event subscriber.
6-
*
7-
* @copyright 2013 Anthon Pang
8-
*
9-
* @license BSD-2-Clause
3+
* Behat Code Coverage
104
*/
5+
declare(strict_types=1);
116

127
namespace DVDoug\Behat\CodeCoverage\Subscriber;
138

@@ -18,11 +13,6 @@
1813
use SebastianBergmann\CodeCoverage\CodeCoverage;
1914
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
2015

21-
/**
22-
* Event subscriber.
23-
*
24-
* @author Anthon Pang <apang@softwaredevelopment.ca>
25-
*/
2616
class EventSubscriber implements EventSubscriberInterface
2717
{
2818
/**

tests/ControllerTest.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2-
2+
/**
3+
* Behat Code Coverage
4+
*/
35
declare(strict_types=1);
46

57
namespace DVDoug\Behat\CodeCoverage\Test;

tests/EventSubscriberTest.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2-
2+
/**
3+
* Behat Code Coverage
4+
*/
35
declare(strict_types=1);
46

57
namespace DVDoug\Behat\CodeCoverage\Test;

tests/ExtensionTest.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2-
2+
/**
3+
* Behat Code Coverage
4+
*/
35
declare(strict_types=1);
46

57
namespace DVDoug\Behat\CodeCoverage\Test;

tests/ReportServiceTest.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2-
2+
/**
3+
* Behat Code Coverage
4+
*/
35
declare(strict_types=1);
46

57
namespace DVDoug\Behat\CodeCoverage\Test;

0 commit comments

Comments
 (0)