Skip to content

Commit

Permalink
Merge pull request #99 from localheinz/feature/header
Browse files Browse the repository at this point in the history
Enhancement: Add file-level header
  • Loading branch information
localheinz authored Jan 4, 2020
2 parents 2db5263 + 105a93c commit c65f10c
Show file tree
Hide file tree
Showing 13 changed files with 127 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,27 @@

declare(strict_types=1);

/**
* Copyright (c) 2018 Jan Gregor Emge-Triebel
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/Jan0707/phpstan-prophecy
*/

use Ergebnis\PhpCsFixer\Config;

$config = Config\Factory::fromRuleSet(new Config\RuleSet\Php71(), [
$header = <<<'EOF'
Copyright (c) 2018 Jan Gregor Emge-Triebel
For the full copyright and license information, please view
the LICENSE file that was distributed with this source code.
@see https://github.com/Jan0707/phpstan-prophecy
EOF;

$config = Config\Factory::fromRuleSet(new Config\RuleSet\Php71($header), [
'final_class' => false,
]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* Copyright (c) 2018 Jan Gregor Emge-Triebel
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/Jan0707/phpstan-prophecy
*/

namespace JanGregor\Prophecy\Extension;

use JanGregor\Prophecy\Type\ObjectProphecyType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* Copyright (c) 2018 Jan Gregor Emge-Triebel
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/Jan0707/phpstan-prophecy
*/

namespace JanGregor\Prophecy\Extension;

use JanGregor\Prophecy\Type\ObjectProphecyType;
Expand Down
9 changes: 9 additions & 0 deletions src/Extension/ProphetProphesizeDynamicReturnTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* Copyright (c) 2018 Jan Gregor Emge-Triebel
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/Jan0707/phpstan-prophecy
*/

namespace JanGregor\Prophecy\Extension;

use JanGregor\Prophecy\Type\ObjectProphecyType;
Expand Down
9 changes: 9 additions & 0 deletions src/PhpDoc/TypeNodeResolverExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* Copyright (c) 2018 Jan Gregor Emge-Triebel
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/Jan0707/phpstan-prophecy
*/

namespace JanGregor\Prophecy\PhpDoc;

use JanGregor\Prophecy\Type\ObjectProphecyType;
Expand Down
9 changes: 9 additions & 0 deletions src/Reflection/ObjectProphecyMethodReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* Copyright (c) 2018 Jan Gregor Emge-Triebel
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/Jan0707/phpstan-prophecy
*/

namespace JanGregor\Prophecy\Reflection;

use PHPStan\Reflection\ClassMemberReflection;
Expand Down
9 changes: 9 additions & 0 deletions src/Reflection/ProphecyMethodsClassReflectionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* Copyright (c) 2018 Jan Gregor Emge-Triebel
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/Jan0707/phpstan-prophecy
*/

namespace JanGregor\Prophecy\Reflection;

use PHPStan\Reflection\ClassReflection;
Expand Down
9 changes: 9 additions & 0 deletions src/Type/ObjectProphecyType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* Copyright (c) 2018 Jan Gregor Emge-Triebel
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/Jan0707/phpstan-prophecy
*/

namespace JanGregor\Prophecy\Type;

use PHPStan\Type\ObjectType;
Expand Down
9 changes: 9 additions & 0 deletions tests/StaticAnalysis/Bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* Copyright (c) 2018 Jan Gregor Emge-Triebel
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/Jan0707/phpstan-prophecy
*/

namespace JanGregor\Prophecy\Test\StaticAnalysis;

interface Bar
Expand Down
9 changes: 9 additions & 0 deletions tests/StaticAnalysis/BaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* Copyright (c) 2018 Jan Gregor Emge-Triebel
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/Jan0707/phpstan-prophecy
*/

namespace JanGregor\Prophecy\Test\StaticAnalysis;

class BaseModel
Expand Down
9 changes: 9 additions & 0 deletions tests/StaticAnalysis/BaseModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* Copyright (c) 2018 Jan Gregor Emge-Triebel
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/Jan0707/phpstan-prophecy
*/

namespace JanGregor\Prophecy\Test\StaticAnalysis;

use PHPUnit\Framework\TestCase;
Expand Down
9 changes: 9 additions & 0 deletions tests/StaticAnalysis/Baz.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* Copyright (c) 2018 Jan Gregor Emge-Triebel
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/Jan0707/phpstan-prophecy
*/

namespace JanGregor\Prophecy\Test\StaticAnalysis;

abstract class Baz
Expand Down
9 changes: 9 additions & 0 deletions tests/StaticAnalysis/Foo.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

declare(strict_types=1);

/**
* Copyright (c) 2018 Jan Gregor Emge-Triebel
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/Jan0707/phpstan-prophecy
*/

namespace JanGregor\Prophecy\Test\StaticAnalysis;

interface Foo
Expand Down

0 comments on commit c65f10c

Please sign in to comment.