From 4157bd72b9f55b2138818029d09df8a0d6a5afba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr>
Date: Fri, 24 Jan 2020 10:55:54 +0100
Subject: [PATCH] CS.

---
 src/Composer/ComposerPackage.php                    | 4 ++--
 src/Composer/ComposerPackageInterface.php           | 2 +-
 src/Config.php                                      | 2 +-
 src/FileLocator/ChainFileLocator.php                | 2 +-
 src/FileLocator/FileLocator.php                     | 2 +-
 src/FileLocator/FileLocatorInterface.php            | 2 +-
 src/Git/CachedGitRepository.php                     | 2 +-
 src/Git/GitRepository.php                           | 2 +-
 src/Git/GitRepositoryInterface.php                  | 2 +-
 src/HeaderComment/ChainTemplateProvider.php         | 2 +-
 src/HeaderComment/FormattedHeaderProvider.php       | 2 +-
 src/HeaderComment/HeaderProviderInterface.php       | 2 +-
 src/HeaderComment/LicenseTemplateProvider.php       | 2 +-
 src/HeaderComment/TemplateFormatter.php             | 2 +-
 src/HeaderComment/TemplateFormatterInterface.php    | 2 +-
 src/HeaderComment/TemplateProviderInterface.php     | 2 +-
 src/HeaderComment/UserDefinedTemplateProvider.php   | 2 +-
 tests/FileLocator/FileLocatorTest.php               | 2 +-
 tests/HeaderComment/LicenseTemplateProviderTest.php | 2 +-
 19 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/Composer/ComposerPackage.php b/src/Composer/ComposerPackage.php
index 5912451..57d4828 100644
--- a/src/Composer/ComposerPackage.php
+++ b/src/Composer/ComposerPackage.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
@@ -95,7 +95,7 @@ final class ComposerPackage implements ComposerPackageInterface
 
     private function getComposerJson(): array
     {
-        return $this->composerJson !== null ? $this->composerJson : $this->readComposerJson();
+        return \is_array($this->composerJson) ? $this->composerJson : $this->readComposerJson();
     }
 
     /**
diff --git a/src/Composer/ComposerPackageInterface.php b/src/Composer/ComposerPackageInterface.php
index 40218d5..ab896cc 100644
--- a/src/Composer/ComposerPackageInterface.php
+++ b/src/Composer/ComposerPackageInterface.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
diff --git a/src/Config.php b/src/Config.php
index 085812a..032e645 100644
--- a/src/Config.php
+++ b/src/Config.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
diff --git a/src/FileLocator/ChainFileLocator.php b/src/FileLocator/ChainFileLocator.php
index 896751f..3a43bc4 100644
--- a/src/FileLocator/ChainFileLocator.php
+++ b/src/FileLocator/ChainFileLocator.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
diff --git a/src/FileLocator/FileLocator.php b/src/FileLocator/FileLocator.php
index d33d599..970c4fe 100644
--- a/src/FileLocator/FileLocator.php
+++ b/src/FileLocator/FileLocator.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
diff --git a/src/FileLocator/FileLocatorInterface.php b/src/FileLocator/FileLocatorInterface.php
index cdf287a..993df6e 100644
--- a/src/FileLocator/FileLocatorInterface.php
+++ b/src/FileLocator/FileLocatorInterface.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
diff --git a/src/Git/CachedGitRepository.php b/src/Git/CachedGitRepository.php
index 9587fd4..52fc383 100644
--- a/src/Git/CachedGitRepository.php
+++ b/src/Git/CachedGitRepository.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
diff --git a/src/Git/GitRepository.php b/src/Git/GitRepository.php
index e18ee75..50a4d0a 100644
--- a/src/Git/GitRepository.php
+++ b/src/Git/GitRepository.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
diff --git a/src/Git/GitRepositoryInterface.php b/src/Git/GitRepositoryInterface.php
index 79cccdd..cba1f41 100644
--- a/src/Git/GitRepositoryInterface.php
+++ b/src/Git/GitRepositoryInterface.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
diff --git a/src/HeaderComment/ChainTemplateProvider.php b/src/HeaderComment/ChainTemplateProvider.php
index 661dcb9..5ccba05 100644
--- a/src/HeaderComment/ChainTemplateProvider.php
+++ b/src/HeaderComment/ChainTemplateProvider.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
diff --git a/src/HeaderComment/FormattedHeaderProvider.php b/src/HeaderComment/FormattedHeaderProvider.php
index c2fa042..f6a65a2 100644
--- a/src/HeaderComment/FormattedHeaderProvider.php
+++ b/src/HeaderComment/FormattedHeaderProvider.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
diff --git a/src/HeaderComment/HeaderProviderInterface.php b/src/HeaderComment/HeaderProviderInterface.php
index 21e00c3..fff027c 100644
--- a/src/HeaderComment/HeaderProviderInterface.php
+++ b/src/HeaderComment/HeaderProviderInterface.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
diff --git a/src/HeaderComment/LicenseTemplateProvider.php b/src/HeaderComment/LicenseTemplateProvider.php
index 6ce59de..82d1135 100644
--- a/src/HeaderComment/LicenseTemplateProvider.php
+++ b/src/HeaderComment/LicenseTemplateProvider.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
diff --git a/src/HeaderComment/TemplateFormatter.php b/src/HeaderComment/TemplateFormatter.php
index ca9729a..fa3aebb 100644
--- a/src/HeaderComment/TemplateFormatter.php
+++ b/src/HeaderComment/TemplateFormatter.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
diff --git a/src/HeaderComment/TemplateFormatterInterface.php b/src/HeaderComment/TemplateFormatterInterface.php
index 6234e39..80c8261 100644
--- a/src/HeaderComment/TemplateFormatterInterface.php
+++ b/src/HeaderComment/TemplateFormatterInterface.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
diff --git a/src/HeaderComment/TemplateProviderInterface.php b/src/HeaderComment/TemplateProviderInterface.php
index 227ced1..3421c51 100644
--- a/src/HeaderComment/TemplateProviderInterface.php
+++ b/src/HeaderComment/TemplateProviderInterface.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
diff --git a/src/HeaderComment/UserDefinedTemplateProvider.php b/src/HeaderComment/UserDefinedTemplateProvider.php
index ccb24fb..096e73c 100644
--- a/src/HeaderComment/UserDefinedTemplateProvider.php
+++ b/src/HeaderComment/UserDefinedTemplateProvider.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
diff --git a/tests/FileLocator/FileLocatorTest.php b/tests/FileLocator/FileLocatorTest.php
index c401cda..7e372cd 100644
--- a/tests/FileLocator/FileLocatorTest.php
+++ b/tests/FileLocator/FileLocatorTest.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
diff --git a/tests/HeaderComment/LicenseTemplateProviderTest.php b/tests/HeaderComment/LicenseTemplateProviderTest.php
index 0fdcb1f..e695d19 100644
--- a/tests/HeaderComment/LicenseTemplateProviderTest.php
+++ b/tests/HeaderComment/LicenseTemplateProviderTest.php
@@ -1,7 +1,7 @@
 <?php declare(strict_types=1);
 /*
  * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
- * Copyright (C) 2018-2019 IRSTEA
+ * Copyright (C) 2018-2020 IRSTEA
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
-- 
GitLab