From 04fe67a4eef4f466bd76245134fadbdbeba2b7cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Thu, 2 Jan 2020 19:57:30 +0100 Subject: [PATCH 1/2] Enhancement: Update license year --- .php_cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.php_cs b/.php_cs index 7dbb5294..2c5d29cc 100644 --- a/.php_cs +++ b/.php_cs @@ -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( From 0e1501120ca6d59c487a033f4ef0e4539981cbc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Thu, 2 Jan 2020 19:58:16 +0100 Subject: [PATCH 2/2] Fix: Run 'make coding-standards' --- .php_cs | 2 +- LICENSE | 2 +- src/Factory.php | 2 +- src/License/Copyright/Holder.php | 2 +- src/License/Copyright/Year.php | 2 +- src/License/Copyright/Years.php | 2 +- src/License/File.php | 2 +- src/License/Header.php | 2 +- src/License/Notice.php | 2 +- src/License/Template.php | 2 +- src/License/Url.php | 2 +- src/RuleSet.php | 2 +- src/RuleSet/AbstractRuleSet.php | 2 +- src/RuleSet/Laravel6.php | 2 +- src/RuleSet/Php71.php | 2 +- src/RuleSet/Php73.php | 2 +- test/AutoReview/SrcCodeTest.php | 2 +- test/Unit/FactoryTest.php | 2 +- test/Unit/License/Copyright/HolderTest.php | 2 +- test/Unit/License/Copyright/YearTest.php | 2 +- test/Unit/License/Copyright/YearsTest.php | 2 +- test/Unit/License/FileTest.php | 2 +- test/Unit/License/HeaderTest.php | 2 +- test/Unit/License/NoticeTest.php | 2 +- test/Unit/License/TemplateTest.php | 2 +- test/Unit/License/UrlTest.php | 2 +- test/Unit/RuleSet/AbstractRuleSetTestCase.php | 2 +- test/Unit/RuleSet/Laravel6Test.php | 2 +- test/Unit/RuleSet/Php71Test.php | 2 +- test/Unit/RuleSet/Php73Test.php | 2 +- 30 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.php_cs b/.php_cs index 2c5d29cc..3ec67f81 100644 --- a/.php_cs +++ b/.php_cs @@ -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. diff --git a/LICENSE b/LICENSE index 6bc0bf4a..1449b85c 100644 --- a/LICENSE +++ b/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 diff --git a/src/Factory.php b/src/Factory.php index 19e5bd02..9c5a8705 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -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. diff --git a/src/License/Copyright/Holder.php b/src/License/Copyright/Holder.php index b3091da8..4324c3c4 100644 --- a/src/License/Copyright/Holder.php +++ b/src/License/Copyright/Holder.php @@ -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. diff --git a/src/License/Copyright/Year.php b/src/License/Copyright/Year.php index 9b4e3478..fa3b6725 100644 --- a/src/License/Copyright/Year.php +++ b/src/License/Copyright/Year.php @@ -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. diff --git a/src/License/Copyright/Years.php b/src/License/Copyright/Years.php index b7c388a6..e10f6836 100644 --- a/src/License/Copyright/Years.php +++ b/src/License/Copyright/Years.php @@ -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. diff --git a/src/License/File.php b/src/License/File.php index 5b847216..4cbbdcef 100644 --- a/src/License/File.php +++ b/src/License/File.php @@ -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. diff --git a/src/License/Header.php b/src/License/Header.php index 079ef2d9..ba77d5ca 100644 --- a/src/License/Header.php +++ b/src/License/Header.php @@ -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. diff --git a/src/License/Notice.php b/src/License/Notice.php index 7757b627..481bf2e2 100644 --- a/src/License/Notice.php +++ b/src/License/Notice.php @@ -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. diff --git a/src/License/Template.php b/src/License/Template.php index df7166a2..84eadf52 100644 --- a/src/License/Template.php +++ b/src/License/Template.php @@ -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. diff --git a/src/License/Url.php b/src/License/Url.php index 12334674..031301ed 100644 --- a/src/License/Url.php +++ b/src/License/Url.php @@ -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. diff --git a/src/RuleSet.php b/src/RuleSet.php index 3b95eeb4..e2457a24 100644 --- a/src/RuleSet.php +++ b/src/RuleSet.php @@ -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. diff --git a/src/RuleSet/AbstractRuleSet.php b/src/RuleSet/AbstractRuleSet.php index e7ac3134..90554384 100644 --- a/src/RuleSet/AbstractRuleSet.php +++ b/src/RuleSet/AbstractRuleSet.php @@ -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. diff --git a/src/RuleSet/Laravel6.php b/src/RuleSet/Laravel6.php index 8b80dd63..b95e478d 100644 --- a/src/RuleSet/Laravel6.php +++ b/src/RuleSet/Laravel6.php @@ -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. diff --git a/src/RuleSet/Php71.php b/src/RuleSet/Php71.php index 25b3a498..9d9d4cbb 100644 --- a/src/RuleSet/Php71.php +++ b/src/RuleSet/Php71.php @@ -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. diff --git a/src/RuleSet/Php73.php b/src/RuleSet/Php73.php index 97f88e69..9971d3bc 100644 --- a/src/RuleSet/Php73.php +++ b/src/RuleSet/Php73.php @@ -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. diff --git a/test/AutoReview/SrcCodeTest.php b/test/AutoReview/SrcCodeTest.php index da3d751a..3824ccea 100644 --- a/test/AutoReview/SrcCodeTest.php +++ b/test/AutoReview/SrcCodeTest.php @@ -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. diff --git a/test/Unit/FactoryTest.php b/test/Unit/FactoryTest.php index e2f5a574..c356714a 100644 --- a/test/Unit/FactoryTest.php +++ b/test/Unit/FactoryTest.php @@ -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. diff --git a/test/Unit/License/Copyright/HolderTest.php b/test/Unit/License/Copyright/HolderTest.php index a278d1f9..63ff2d5c 100644 --- a/test/Unit/License/Copyright/HolderTest.php +++ b/test/Unit/License/Copyright/HolderTest.php @@ -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. diff --git a/test/Unit/License/Copyright/YearTest.php b/test/Unit/License/Copyright/YearTest.php index ec5347d5..be06848c 100644 --- a/test/Unit/License/Copyright/YearTest.php +++ b/test/Unit/License/Copyright/YearTest.php @@ -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. diff --git a/test/Unit/License/Copyright/YearsTest.php b/test/Unit/License/Copyright/YearsTest.php index e5e0ace3..f77b139b 100644 --- a/test/Unit/License/Copyright/YearsTest.php +++ b/test/Unit/License/Copyright/YearsTest.php @@ -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. diff --git a/test/Unit/License/FileTest.php b/test/Unit/License/FileTest.php index f5d3b0b0..2759c4e6 100644 --- a/test/Unit/License/FileTest.php +++ b/test/Unit/License/FileTest.php @@ -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. diff --git a/test/Unit/License/HeaderTest.php b/test/Unit/License/HeaderTest.php index e507cff0..ced9443e 100644 --- a/test/Unit/License/HeaderTest.php +++ b/test/Unit/License/HeaderTest.php @@ -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. diff --git a/test/Unit/License/NoticeTest.php b/test/Unit/License/NoticeTest.php index b64337c2..4ac4d548 100644 --- a/test/Unit/License/NoticeTest.php +++ b/test/Unit/License/NoticeTest.php @@ -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. diff --git a/test/Unit/License/TemplateTest.php b/test/Unit/License/TemplateTest.php index fd6d2efa..0d96ca73 100644 --- a/test/Unit/License/TemplateTest.php +++ b/test/Unit/License/TemplateTest.php @@ -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. diff --git a/test/Unit/License/UrlTest.php b/test/Unit/License/UrlTest.php index f0fa71ee..b5cf7c64 100644 --- a/test/Unit/License/UrlTest.php +++ b/test/Unit/License/UrlTest.php @@ -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. diff --git a/test/Unit/RuleSet/AbstractRuleSetTestCase.php b/test/Unit/RuleSet/AbstractRuleSetTestCase.php index 871b0bf9..9df6c0a3 100644 --- a/test/Unit/RuleSet/AbstractRuleSetTestCase.php +++ b/test/Unit/RuleSet/AbstractRuleSetTestCase.php @@ -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. diff --git a/test/Unit/RuleSet/Laravel6Test.php b/test/Unit/RuleSet/Laravel6Test.php index dedc172d..6dffa592 100644 --- a/test/Unit/RuleSet/Laravel6Test.php +++ b/test/Unit/RuleSet/Laravel6Test.php @@ -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. diff --git a/test/Unit/RuleSet/Php71Test.php b/test/Unit/RuleSet/Php71Test.php index d0902d87..12e0618e 100644 --- a/test/Unit/RuleSet/Php71Test.php +++ b/test/Unit/RuleSet/Php71Test.php @@ -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. diff --git a/test/Unit/RuleSet/Php73Test.php b/test/Unit/RuleSet/Php73Test.php index cc10ccb1..999af1c5 100644 --- a/test/Unit/RuleSet/Php73Test.php +++ b/test/Unit/RuleSet/Php73Test.php @@ -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.