Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Update license year #29

Merged
merged 2 commits into from Jan 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions .php_cs
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand All @@ -13,7 +13,11 @@ declare(strict_types=1);

use Ergebnis\PhpCsFixer\Config;

$years = Config\License\Copyright\Years::fromYear(Config\License\Copyright\Year::fromString('2019'));
$years = Config\License\Copyright\Years::fromRange(
Config\License\Copyright\Year::fromString('2019'),
Config\License\Copyright\Year::current()
);

$holder = Config\License\Copyright\Holder::fromString('Andreas Möller');

$file = Config\License\File::create(
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Andreas Möller
Copyright (c) 2019-2020 Andreas Möller

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
Expand Down
2 changes: 1 addition & 1 deletion src/Factory.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/License/Copyright/Holder.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/License/Copyright/Year.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/License/Copyright/Years.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/License/File.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/License/Header.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/License/Notice.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/License/Template.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/License/Url.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/AbstractRuleSet.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Laravel6.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php71.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php73.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion test/AutoReview/SrcCodeTest.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/FactoryTest.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/License/Copyright/HolderTest.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/License/Copyright/YearTest.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/License/Copyright/YearsTest.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/License/FileTest.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/License/HeaderTest.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/License/NoticeTest.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/License/TemplateTest.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/License/UrlTest.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/AbstractRuleSetTestCase.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Laravel6Test.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php71Test.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php73Test.php
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* Copyright (c) 2019 Andreas Möller
* Copyright (c) 2019-2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
Expand Down