summaryrefslogtreecommitdiffstats
path: root/lib/private/IntegrityCheck
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-10-21 12:44:47 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2021-11-23 09:28:57 +0100
commitaf7bf98cbab882f8fa36c9551aef4bafd0e3495f (patch)
tree12a751993ca47766d8eff27319693420aea7f164 /lib/private/IntegrityCheck
parent113756db30fcbffe9e90b54c29e78dee0676109f (diff)
downloadnextcloud-server-af7bf98cbab882f8fa36c9551aef4bafd0e3495f.tar.gz
nextcloud-server-af7bf98cbab882f8fa36c9551aef4bafd0e3495f.zip
Fix Iterator return types
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/IntegrityCheck')
-rw-r--r--lib/private/IntegrityCheck/Iterator/ExcludeFileByNameFilterIterator.php5
-rw-r--r--lib/private/IntegrityCheck/Iterator/ExcludeFoldersByPathFilterIterator.php5
2 files changed, 2 insertions, 8 deletions
diff --git a/lib/private/IntegrityCheck/Iterator/ExcludeFileByNameFilterIterator.php b/lib/private/IntegrityCheck/Iterator/ExcludeFileByNameFilterIterator.php
index aea1ad6c3e9..6d26a40aef4 100644
--- a/lib/private/IntegrityCheck/Iterator/ExcludeFileByNameFilterIterator.php
+++ b/lib/private/IntegrityCheck/Iterator/ExcludeFileByNameFilterIterator.php
@@ -59,10 +59,7 @@ class ExcludeFileByNameFilterIterator extends \RecursiveFilterIterator {
'/^\.webapp-nextcloud-(\d+\.){2}(\d+)(-r\d+)?$/', // Gentoo/Funtoo & derivatives use a tool known as webapp-config to manage wep-apps.
];
- /**
- * @return bool
- */
- public function accept() {
+ public function accept(): bool {
/** @var \SplFileInfo $current */
$current = $this->current();
diff --git a/lib/private/IntegrityCheck/Iterator/ExcludeFoldersByPathFilterIterator.php b/lib/private/IntegrityCheck/Iterator/ExcludeFoldersByPathFilterIterator.php
index fcdd3e3067c..120791f5b03 100644
--- a/lib/private/IntegrityCheck/Iterator/ExcludeFoldersByPathFilterIterator.php
+++ b/lib/private/IntegrityCheck/Iterator/ExcludeFoldersByPathFilterIterator.php
@@ -59,10 +59,7 @@ class ExcludeFoldersByPathFilterIterator extends \RecursiveFilterIterator {
$this->excludedFolders = array_merge($excludedFolders, $appFolders);
}
- /**
- * @return bool
- */
- public function accept() {
+ public function accept(): bool {
return !\in_array(
$this->current()->getPathName(),
$this->excludedFolders,