diff --git a/src/ProjectInfoTrait.php b/src/ProjectInfoTrait.php index ffefcfa..9572c67 100644 --- a/src/ProjectInfoTrait.php +++ b/src/ProjectInfoTrait.php @@ -48,7 +48,7 @@ trait ProjectInfoTrait { $info['version'] = $this->getExtensionVersion($info); }); $system = $infos['system'] ?? NULL; - $infos = array_filter($infos, function(array $info, $project_name) { + $infos = array_filter($infos, function (array $info, $project_name) { return $info && $info['project'] === $project_name; }, ARRAY_FILTER_USE_BOTH); if ($system) { diff --git a/src/Services/InPlaceUpdate.php b/src/Services/InPlaceUpdate.php index 38cff41..03fd23e 100644 --- a/src/Services/InPlaceUpdate.php +++ b/src/Services/InPlaceUpdate.php @@ -217,7 +217,10 @@ class InPlaceUpdate implements UpdateInterface { $this->stripFileDirectoryPath($archive_file); } if ($intersection = array_intersect($files, $archive_files)) { - $this->logger->error('Can not update because %count files are modified: %path', ['%count' => count($intersection), '%paths' => implode(', ', $intersection)]); + $this->logger->error('Can not update because %count files are modified: %path', [ + '%count' => count($intersection), + '%paths' => implode(', ', $intersection), + ]); return TRUE; } return FALSE; diff --git a/tests/src/Kernel/ReadinessChecker/ReadinessCheckerTest.php b/tests/src/Kernel/ReadinessChecker/ReadinessCheckerTest.php index a08827c..0d50ef0 100644 --- a/tests/src/Kernel/ReadinessChecker/ReadinessCheckerTest.php +++ b/tests/src/Kernel/ReadinessChecker/ReadinessCheckerTest.php @@ -2,7 +2,6 @@ namespace Drupal\Tests\automatic_updates\Kernel\ReadinessChecker; -use Drupal\automatic_updates\ReadinessChecker\ReadinessCheckerManagerInterface; use Drupal\Core\StringTranslation\StringTranslationTrait; use Drupal\KernelTests\KernelTestBase;