aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/l10n/cs.js4
-rw-r--r--apps/files_trashbin/l10n/cs.json4
-rw-r--r--apps/files_trashbin/l10n/de.js4
-rw-r--r--apps/files_trashbin/l10n/de.json4
-rw-r--r--apps/files_trashbin/l10n/de_DE.js4
-rw-r--r--apps/files_trashbin/l10n/de_DE.json4
-rw-r--r--apps/files_trashbin/l10n/et_EE.js4
-rw-r--r--apps/files_trashbin/l10n/et_EE.json4
-rw-r--r--apps/files_trashbin/l10n/fr.js4
-rw-r--r--apps/files_trashbin/l10n/fr.json4
-rw-r--r--apps/files_trashbin/l10n/pl.js4
-rw-r--r--apps/files_trashbin/l10n/pl.json4
-rw-r--r--apps/files_trashbin/l10n/pt_BR.js4
-rw-r--r--apps/files_trashbin/l10n/pt_BR.json4
-rw-r--r--apps/files_trashbin/l10n/sv.js4
-rw-r--r--apps/files_trashbin/l10n/sv.json4
-rw-r--r--apps/files_trashbin/l10n/tr.js4
-rw-r--r--apps/files_trashbin/l10n/tr.json4
-rw-r--r--apps/files_trashbin/l10n/zh_TW.js4
-rw-r--r--apps/files_trashbin/l10n/zh_TW.json4
-rw-r--r--apps/files_trashbin/lib/AppInfo/Application.php1
-rw-r--r--apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php1
-rw-r--r--apps/files_trashbin/lib/Capabilities.php1
-rw-r--r--apps/files_trashbin/lib/Command/Expire.php1
-rw-r--r--apps/files_trashbin/lib/Command/ExpireTrash.php1
-rw-r--r--apps/files_trashbin/lib/Command/RestoreAllFiles.php1
-rw-r--r--apps/files_trashbin/lib/Events/MoveToTrashEvent.php1
-rw-r--r--apps/files_trashbin/lib/Exceptions/CopyRecursiveException.php1
-rw-r--r--apps/files_trashbin/lib/Expiration.php1
-rw-r--r--apps/files_trashbin/lib/Helper.php1
-rw-r--r--apps/files_trashbin/lib/Sabre/TrashbinPlugin.php6
-rw-r--r--apps/files_trashbin/lib/Storage.php5
-rw-r--r--apps/files_trashbin/lib/Trash/BackendNotFoundException.php1
-rw-r--r--apps/files_trashbin/lib/Trash/ITrashBackend.php1
-rw-r--r--apps/files_trashbin/lib/Trash/ITrashItem.php1
-rw-r--r--apps/files_trashbin/lib/Trash/ITrashManager.php1
-rw-r--r--apps/files_trashbin/lib/Trash/LegacyTrashBackend.php1
-rw-r--r--apps/files_trashbin/lib/Trash/TrashItem.php1
-rw-r--r--apps/files_trashbin/lib/Trash/TrashManager.php5
-rw-r--r--apps/files_trashbin/lib/Trashbin.php7
40 files changed, 89 insertions, 30 deletions
diff --git a/apps/files_trashbin/l10n/cs.js b/apps/files_trashbin/l10n/cs.js
index 383b3658ebf..1c551eeb576 100644
--- a/apps/files_trashbin/l10n/cs.js
+++ b/apps/files_trashbin/l10n/cs.js
@@ -23,6 +23,8 @@ OC.L10N.register(
"You" : "Vy",
"List of files that have been deleted." : "Seznam souborů, které byly smazány",
"No deleted files" : "Žádné smazané soubory",
- "Files and folders you have deleted will show up here" : "Zde budou zobrazeny soubory a složky, které jste smazali"
+ "Files and folders you have deleted will show up here" : "Zde budou zobrazeny soubory a složky, které jste smazali",
+ "All files have been permanently deleted" : "Veškeré soubory byly nevratně smazány",
+ "Failed to empty deleted files" : "Nepodařilo se vyprázdnit smazané soubory"
},
"nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;");
diff --git a/apps/files_trashbin/l10n/cs.json b/apps/files_trashbin/l10n/cs.json
index 8023981f1c4..af9702b3dbb 100644
--- a/apps/files_trashbin/l10n/cs.json
+++ b/apps/files_trashbin/l10n/cs.json
@@ -21,6 +21,8 @@
"You" : "Vy",
"List of files that have been deleted." : "Seznam souborů, které byly smazány",
"No deleted files" : "Žádné smazané soubory",
- "Files and folders you have deleted will show up here" : "Zde budou zobrazeny soubory a složky, které jste smazali"
+ "Files and folders you have deleted will show up here" : "Zde budou zobrazeny soubory a složky, které jste smazali",
+ "All files have been permanently deleted" : "Veškeré soubory byly nevratně smazány",
+ "Failed to empty deleted files" : "Nepodařilo se vyprázdnit smazané soubory"
},"pluralForm" :"nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;"
} \ No newline at end of file
diff --git a/apps/files_trashbin/l10n/de.js b/apps/files_trashbin/l10n/de.js
index 0c623ec6ad0..301e9f8b5ec 100644
--- a/apps/files_trashbin/l10n/de.js
+++ b/apps/files_trashbin/l10n/de.js
@@ -23,6 +23,8 @@ OC.L10N.register(
"You" : "Dir",
"List of files that have been deleted." : "Liste der gelöschten Dateien.",
"No deleted files" : "Keine gelöschten Dateien",
- "Files and folders you have deleted will show up here" : "Die von dir gelöschten Dateien und Ordner werden hier angezeigt"
+ "Files and folders you have deleted will show up here" : "Die von dir gelöschten Dateien und Ordner werden hier angezeigt",
+ "All files have been permanently deleted" : "Alle Dateien wurden dauerhaft gelöscht",
+ "Failed to empty deleted files" : "Gelöschte Dateien konnten nicht geleert werden"
},
"nplurals=2; plural=(n != 1);");
diff --git a/apps/files_trashbin/l10n/de.json b/apps/files_trashbin/l10n/de.json
index d68fd5e470b..3a0d2129645 100644
--- a/apps/files_trashbin/l10n/de.json
+++ b/apps/files_trashbin/l10n/de.json
@@ -21,6 +21,8 @@
"You" : "Dir",
"List of files that have been deleted." : "Liste der gelöschten Dateien.",
"No deleted files" : "Keine gelöschten Dateien",
- "Files and folders you have deleted will show up here" : "Die von dir gelöschten Dateien und Ordner werden hier angezeigt"
+ "Files and folders you have deleted will show up here" : "Die von dir gelöschten Dateien und Ordner werden hier angezeigt",
+ "All files have been permanently deleted" : "Alle Dateien wurden dauerhaft gelöscht",
+ "Failed to empty deleted files" : "Gelöschte Dateien konnten nicht geleert werden"
},"pluralForm" :"nplurals=2; plural=(n != 1);"
} \ No newline at end of file
diff --git a/apps/files_trashbin/l10n/de_DE.js b/apps/files_trashbin/l10n/de_DE.js
index 27b41dcea4d..58c9ebb01ff 100644
--- a/apps/files_trashbin/l10n/de_DE.js
+++ b/apps/files_trashbin/l10n/de_DE.js
@@ -23,6 +23,8 @@ OC.L10N.register(
"You" : "Ihnen",
"List of files that have been deleted." : "Liste der gelöschten Dateien.",
"No deleted files" : "Keine gelöschten Dateien",
- "Files and folders you have deleted will show up here" : "Die von Ihnen gelöschten Dateien und Ordner werden hier angezeigt"
+ "Files and folders you have deleted will show up here" : "Die von Ihnen gelöschten Dateien und Ordner werden hier angezeigt",
+ "All files have been permanently deleted" : "Alle Dateien wurden dauerhaft gelöscht",
+ "Failed to empty deleted files" : "Gelöschte Dateien konnten nicht geleert werden"
},
"nplurals=2; plural=(n != 1);");
diff --git a/apps/files_trashbin/l10n/de_DE.json b/apps/files_trashbin/l10n/de_DE.json
index c4f1ca5ea43..38a7037401b 100644
--- a/apps/files_trashbin/l10n/de_DE.json
+++ b/apps/files_trashbin/l10n/de_DE.json
@@ -21,6 +21,8 @@
"You" : "Ihnen",
"List of files that have been deleted." : "Liste der gelöschten Dateien.",
"No deleted files" : "Keine gelöschten Dateien",
- "Files and folders you have deleted will show up here" : "Die von Ihnen gelöschten Dateien und Ordner werden hier angezeigt"
+ "Files and folders you have deleted will show up here" : "Die von Ihnen gelöschten Dateien und Ordner werden hier angezeigt",
+ "All files have been permanently deleted" : "Alle Dateien wurden dauerhaft gelöscht",
+ "Failed to empty deleted files" : "Gelöschte Dateien konnten nicht geleert werden"
},"pluralForm" :"nplurals=2; plural=(n != 1);"
} \ No newline at end of file
diff --git a/apps/files_trashbin/l10n/et_EE.js b/apps/files_trashbin/l10n/et_EE.js
index 0e1b4ed1ae5..26968b2cdaa 100644
--- a/apps/files_trashbin/l10n/et_EE.js
+++ b/apps/files_trashbin/l10n/et_EE.js
@@ -23,6 +23,8 @@ OC.L10N.register(
"You" : "Sina",
"List of files that have been deleted." : "Kustutatud failide loend.",
"No deleted files" : "Kustutatud faile pole",
- "Files and folders you have deleted will show up here" : "Sinu kustutatud failid ja kaustad on nähtavad siin"
+ "Files and folders you have deleted will show up here" : "Sinu kustutatud failid ja kaustad on nähtavad siin",
+ "All files have been permanently deleted" : "Kõik failid on kustutatud jäädavalt",
+ "Failed to empty deleted files" : "Kustutatud failide eemaldamine ei õnnestunud"
},
"nplurals=2; plural=(n != 1);");
diff --git a/apps/files_trashbin/l10n/et_EE.json b/apps/files_trashbin/l10n/et_EE.json
index a3253ba0760..99ecf77c9ec 100644
--- a/apps/files_trashbin/l10n/et_EE.json
+++ b/apps/files_trashbin/l10n/et_EE.json
@@ -21,6 +21,8 @@
"You" : "Sina",
"List of files that have been deleted." : "Kustutatud failide loend.",
"No deleted files" : "Kustutatud faile pole",
- "Files and folders you have deleted will show up here" : "Sinu kustutatud failid ja kaustad on nähtavad siin"
+ "Files and folders you have deleted will show up here" : "Sinu kustutatud failid ja kaustad on nähtavad siin",
+ "All files have been permanently deleted" : "Kõik failid on kustutatud jäädavalt",
+ "Failed to empty deleted files" : "Kustutatud failide eemaldamine ei õnnestunud"
},"pluralForm" :"nplurals=2; plural=(n != 1);"
} \ No newline at end of file
diff --git a/apps/files_trashbin/l10n/fr.js b/apps/files_trashbin/l10n/fr.js
index e79051e9182..7fa10abb4b6 100644
--- a/apps/files_trashbin/l10n/fr.js
+++ b/apps/files_trashbin/l10n/fr.js
@@ -23,6 +23,8 @@ OC.L10N.register(
"You" : "Vous",
"List of files that have been deleted." : "Liste des fichiers qui ont été supprimés.",
"No deleted files" : "Aucun fichier supprimé",
- "Files and folders you have deleted will show up here" : "Les fichiers et dossiers que vous avez supprimés apparaîtront ici"
+ "Files and folders you have deleted will show up here" : "Les fichiers et dossiers que vous avez supprimés apparaîtront ici",
+ "All files have been permanently deleted" : "Tous les fichiers ont été définitivement supprimés",
+ "Failed to empty deleted files" : "Échec de la vidange des fichiers supprimés"
},
"nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;");
diff --git a/apps/files_trashbin/l10n/fr.json b/apps/files_trashbin/l10n/fr.json
index 4f8e1aefcd0..651e674f964 100644
--- a/apps/files_trashbin/l10n/fr.json
+++ b/apps/files_trashbin/l10n/fr.json
@@ -21,6 +21,8 @@
"You" : "Vous",
"List of files that have been deleted." : "Liste des fichiers qui ont été supprimés.",
"No deleted files" : "Aucun fichier supprimé",
- "Files and folders you have deleted will show up here" : "Les fichiers et dossiers que vous avez supprimés apparaîtront ici"
+ "Files and folders you have deleted will show up here" : "Les fichiers et dossiers que vous avez supprimés apparaîtront ici",
+ "All files have been permanently deleted" : "Tous les fichiers ont été définitivement supprimés",
+ "Failed to empty deleted files" : "Échec de la vidange des fichiers supprimés"
},"pluralForm" :"nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;"
} \ No newline at end of file
diff --git a/apps/files_trashbin/l10n/pl.js b/apps/files_trashbin/l10n/pl.js
index 4e555ba4e4d..381c6af8275 100644
--- a/apps/files_trashbin/l10n/pl.js
+++ b/apps/files_trashbin/l10n/pl.js
@@ -23,6 +23,8 @@ OC.L10N.register(
"You" : "Ty",
"List of files that have been deleted." : "Lista plików, które zostały usunięte.",
"No deleted files" : "Brak usuniętych plików",
- "Files and folders you have deleted will show up here" : "Tutaj pojawią się usunięte pliki i katalogi"
+ "Files and folders you have deleted will show up here" : "Tutaj pojawią się usunięte pliki i katalogi",
+ "All files have been permanently deleted" : "Wszystkie pliki zostały trwale usunięte",
+ "Failed to empty deleted files" : "Nie udało się opróżnić usuniętych plików"
},
"nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);");
diff --git a/apps/files_trashbin/l10n/pl.json b/apps/files_trashbin/l10n/pl.json
index 24fd5b2f473..dab222a3c16 100644
--- a/apps/files_trashbin/l10n/pl.json
+++ b/apps/files_trashbin/l10n/pl.json
@@ -21,6 +21,8 @@
"You" : "Ty",
"List of files that have been deleted." : "Lista plików, które zostały usunięte.",
"No deleted files" : "Brak usuniętych plików",
- "Files and folders you have deleted will show up here" : "Tutaj pojawią się usunięte pliki i katalogi"
+ "Files and folders you have deleted will show up here" : "Tutaj pojawią się usunięte pliki i katalogi",
+ "All files have been permanently deleted" : "Wszystkie pliki zostały trwale usunięte",
+ "Failed to empty deleted files" : "Nie udało się opróżnić usuniętych plików"
},"pluralForm" :"nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);"
} \ No newline at end of file
diff --git a/apps/files_trashbin/l10n/pt_BR.js b/apps/files_trashbin/l10n/pt_BR.js
index 425819efc42..f1e360f82c0 100644
--- a/apps/files_trashbin/l10n/pt_BR.js
+++ b/apps/files_trashbin/l10n/pt_BR.js
@@ -23,6 +23,8 @@ OC.L10N.register(
"You" : "Você",
"List of files that have been deleted." : "Lista de arquivos que foram excluídos.",
"No deleted files" : "Nenhum arquivo excluído",
- "Files and folders you have deleted will show up here" : "Arquivos e pastas que você excluiu aparecerão aqui"
+ "Files and folders you have deleted will show up here" : "Arquivos e pastas que você excluiu aparecerão aqui",
+ "All files have been permanently deleted" : "Todos os arquivos foram excluídos permanentemente",
+ "Failed to empty deleted files" : "Falha ao esvaziar arquivos excluídos"
},
"nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;");
diff --git a/apps/files_trashbin/l10n/pt_BR.json b/apps/files_trashbin/l10n/pt_BR.json
index 9eafa1b21c6..da1f67d35ed 100644
--- a/apps/files_trashbin/l10n/pt_BR.json
+++ b/apps/files_trashbin/l10n/pt_BR.json
@@ -21,6 +21,8 @@
"You" : "Você",
"List of files that have been deleted." : "Lista de arquivos que foram excluídos.",
"No deleted files" : "Nenhum arquivo excluído",
- "Files and folders you have deleted will show up here" : "Arquivos e pastas que você excluiu aparecerão aqui"
+ "Files and folders you have deleted will show up here" : "Arquivos e pastas que você excluiu aparecerão aqui",
+ "All files have been permanently deleted" : "Todos os arquivos foram excluídos permanentemente",
+ "Failed to empty deleted files" : "Falha ao esvaziar arquivos excluídos"
},"pluralForm" :"nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;"
} \ No newline at end of file
diff --git a/apps/files_trashbin/l10n/sv.js b/apps/files_trashbin/l10n/sv.js
index 265736af1c8..8f84f5c04f4 100644
--- a/apps/files_trashbin/l10n/sv.js
+++ b/apps/files_trashbin/l10n/sv.js
@@ -23,6 +23,8 @@ OC.L10N.register(
"You" : "Du",
"List of files that have been deleted." : "Lista över filer som har tagits bort.",
"No deleted files" : "Inga borttagna filer",
- "Files and folders you have deleted will show up here" : "Filer och mappar som du har tagit bort kommer att visas här"
+ "Files and folders you have deleted will show up here" : "Filer och mappar som du har tagit bort kommer att visas här",
+ "All files have been permanently deleted" : "Alla filer har raderats permanent",
+ "Failed to empty deleted files" : "Kunde inte tömma raderade filer"
},
"nplurals=2; plural=(n != 1);");
diff --git a/apps/files_trashbin/l10n/sv.json b/apps/files_trashbin/l10n/sv.json
index c2ebb95fced..2d4dcfb7d6f 100644
--- a/apps/files_trashbin/l10n/sv.json
+++ b/apps/files_trashbin/l10n/sv.json
@@ -21,6 +21,8 @@
"You" : "Du",
"List of files that have been deleted." : "Lista över filer som har tagits bort.",
"No deleted files" : "Inga borttagna filer",
- "Files and folders you have deleted will show up here" : "Filer och mappar som du har tagit bort kommer att visas här"
+ "Files and folders you have deleted will show up here" : "Filer och mappar som du har tagit bort kommer att visas här",
+ "All files have been permanently deleted" : "Alla filer har raderats permanent",
+ "Failed to empty deleted files" : "Kunde inte tömma raderade filer"
},"pluralForm" :"nplurals=2; plural=(n != 1);"
} \ No newline at end of file
diff --git a/apps/files_trashbin/l10n/tr.js b/apps/files_trashbin/l10n/tr.js
index a303e747e61..ab14ad7cad8 100644
--- a/apps/files_trashbin/l10n/tr.js
+++ b/apps/files_trashbin/l10n/tr.js
@@ -23,6 +23,8 @@ OC.L10N.register(
"You" : "Siz",
"List of files that have been deleted." : "Silinmiş dosyaların listesi",
"No deleted files" : "Silinmiş bir dosya yok",
- "Files and folders you have deleted will show up here" : "Sildiğiniz dosya ve klasörler burada görüntülenir"
+ "Files and folders you have deleted will show up here" : "Sildiğiniz dosya ve klasörler burada görüntülenir",
+ "All files have been permanently deleted" : "Tüm dosyalar kalıcı olarak silindi",
+ "Failed to empty deleted files" : "Silinmiş dosyalar bölümü boşaltılamadı"
},
"nplurals=2; plural=(n > 1);");
diff --git a/apps/files_trashbin/l10n/tr.json b/apps/files_trashbin/l10n/tr.json
index 99f442027d9..0d86ecf3639 100644
--- a/apps/files_trashbin/l10n/tr.json
+++ b/apps/files_trashbin/l10n/tr.json
@@ -21,6 +21,8 @@
"You" : "Siz",
"List of files that have been deleted." : "Silinmiş dosyaların listesi",
"No deleted files" : "Silinmiş bir dosya yok",
- "Files and folders you have deleted will show up here" : "Sildiğiniz dosya ve klasörler burada görüntülenir"
+ "Files and folders you have deleted will show up here" : "Sildiğiniz dosya ve klasörler burada görüntülenir",
+ "All files have been permanently deleted" : "Tüm dosyalar kalıcı olarak silindi",
+ "Failed to empty deleted files" : "Silinmiş dosyalar bölümü boşaltılamadı"
},"pluralForm" :"nplurals=2; plural=(n > 1);"
} \ No newline at end of file
diff --git a/apps/files_trashbin/l10n/zh_TW.js b/apps/files_trashbin/l10n/zh_TW.js
index 26b9abd0e0f..4df774e705a 100644
--- a/apps/files_trashbin/l10n/zh_TW.js
+++ b/apps/files_trashbin/l10n/zh_TW.js
@@ -23,6 +23,8 @@ OC.L10N.register(
"You" : "您",
"List of files that have been deleted." : "刪除的檔案清單。",
"No deleted files" : "沒有刪除的檔案",
- "Files and folders you have deleted will show up here" : "您刪除的檔案與資料夾將會在此處顯示"
+ "Files and folders you have deleted will show up here" : "您刪除的檔案與資料夾將會在此處顯示",
+ "All files have been permanently deleted" : "所有檔案都已被永久刪除",
+ "Failed to empty deleted files" : "清空已刪除的檔案失敗"
},
"nplurals=1; plural=0;");
diff --git a/apps/files_trashbin/l10n/zh_TW.json b/apps/files_trashbin/l10n/zh_TW.json
index e9c0e9de42d..2d1d11079fd 100644
--- a/apps/files_trashbin/l10n/zh_TW.json
+++ b/apps/files_trashbin/l10n/zh_TW.json
@@ -21,6 +21,8 @@
"You" : "您",
"List of files that have been deleted." : "刪除的檔案清單。",
"No deleted files" : "沒有刪除的檔案",
- "Files and folders you have deleted will show up here" : "您刪除的檔案與資料夾將會在此處顯示"
+ "Files and folders you have deleted will show up here" : "您刪除的檔案與資料夾將會在此處顯示",
+ "All files have been permanently deleted" : "所有檔案都已被永久刪除",
+ "Failed to empty deleted files" : "清空已刪除的檔案失敗"
},"pluralForm" :"nplurals=1; plural=0;"
} \ No newline at end of file
diff --git a/apps/files_trashbin/lib/AppInfo/Application.php b/apps/files_trashbin/lib/AppInfo/Application.php
index d5b30a18def..76d566f4286 100644
--- a/apps/files_trashbin/lib/AppInfo/Application.php
+++ b/apps/files_trashbin/lib/AppInfo/Application.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
diff --git a/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php b/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php
index 5b97901b302..bb383dab78d 100644
--- a/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php
+++ b/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
diff --git a/apps/files_trashbin/lib/Capabilities.php b/apps/files_trashbin/lib/Capabilities.php
index 62be7bcb1a1..53c17a475ff 100644
--- a/apps/files_trashbin/lib/Capabilities.php
+++ b/apps/files_trashbin/lib/Capabilities.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
diff --git a/apps/files_trashbin/lib/Command/Expire.php b/apps/files_trashbin/lib/Command/Expire.php
index 6c89b6d736c..73a42cd4749 100644
--- a/apps/files_trashbin/lib/Command/Expire.php
+++ b/apps/files_trashbin/lib/Command/Expire.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
diff --git a/apps/files_trashbin/lib/Command/ExpireTrash.php b/apps/files_trashbin/lib/Command/ExpireTrash.php
index de1c2ab09b4..9b7fd3c04d8 100644
--- a/apps/files_trashbin/lib/Command/ExpireTrash.php
+++ b/apps/files_trashbin/lib/Command/ExpireTrash.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud GmbH.
diff --git a/apps/files_trashbin/lib/Command/RestoreAllFiles.php b/apps/files_trashbin/lib/Command/RestoreAllFiles.php
index cb4e7f97ecd..ce31f759c0e 100644
--- a/apps/files_trashbin/lib/Command/RestoreAllFiles.php
+++ b/apps/files_trashbin/lib/Command/RestoreAllFiles.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-only
diff --git a/apps/files_trashbin/lib/Events/MoveToTrashEvent.php b/apps/files_trashbin/lib/Events/MoveToTrashEvent.php
index 1596315dd20..0d776b606b1 100644
--- a/apps/files_trashbin/lib/Events/MoveToTrashEvent.php
+++ b/apps/files_trashbin/lib/Events/MoveToTrashEvent.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
diff --git a/apps/files_trashbin/lib/Exceptions/CopyRecursiveException.php b/apps/files_trashbin/lib/Exceptions/CopyRecursiveException.php
index 9da2631c97b..3ea1293e5d7 100644
--- a/apps/files_trashbin/lib/Exceptions/CopyRecursiveException.php
+++ b/apps/files_trashbin/lib/Exceptions/CopyRecursiveException.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
diff --git a/apps/files_trashbin/lib/Expiration.php b/apps/files_trashbin/lib/Expiration.php
index ed5d62aa294..7d03c3517ec 100644
--- a/apps/files_trashbin/lib/Expiration.php
+++ b/apps/files_trashbin/lib/Expiration.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
diff --git a/apps/files_trashbin/lib/Helper.php b/apps/files_trashbin/lib/Helper.php
index 50107b3bf71..746832e9280 100644
--- a/apps/files_trashbin/lib/Helper.php
+++ b/apps/files_trashbin/lib/Helper.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
diff --git a/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php b/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php
index e9213882804..36237ca080b 100644
--- a/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php
+++ b/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php
@@ -164,9 +164,9 @@ class TrashbinPlugin extends ServerPlugin {
}
$restoreFolder = dirname($fileInfo->getOriginalLocation());
$freeSpace = $this->view->free_space($restoreFolder);
- if ($freeSpace === FileInfo::SPACE_NOT_COMPUTED ||
- $freeSpace === FileInfo::SPACE_UNKNOWN ||
- $freeSpace === FileInfo::SPACE_UNLIMITED) {
+ if ($freeSpace === FileInfo::SPACE_NOT_COMPUTED
+ || $freeSpace === FileInfo::SPACE_UNKNOWN
+ || $freeSpace === FileInfo::SPACE_UNLIMITED) {
return true;
}
$filesize = $fileInfo->getSize();
diff --git a/apps/files_trashbin/lib/Storage.php b/apps/files_trashbin/lib/Storage.php
index 9ddb8e791fa..82b7af5a934 100644
--- a/apps/files_trashbin/lib/Storage.php
+++ b/apps/files_trashbin/lib/Storage.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
@@ -49,8 +50,8 @@ class Storage extends Wrapper {
} catch (GenericEncryptionException $e) {
// in case of a encryption exception we delete the file right away
$this->logger->info(
- "Can't move file " . $path .
- ' to the trash bin, therefore it was deleted right away');
+ "Can't move file " . $path
+ . ' to the trash bin, therefore it was deleted right away');
return $this->storage->unlink($path);
}
diff --git a/apps/files_trashbin/lib/Trash/BackendNotFoundException.php b/apps/files_trashbin/lib/Trash/BackendNotFoundException.php
index 8e23a04851a..292b6ee293c 100644
--- a/apps/files_trashbin/lib/Trash/BackendNotFoundException.php
+++ b/apps/files_trashbin/lib/Trash/BackendNotFoundException.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
diff --git a/apps/files_trashbin/lib/Trash/ITrashBackend.php b/apps/files_trashbin/lib/Trash/ITrashBackend.php
index f5d4657bfbc..11b3132bfba 100644
--- a/apps/files_trashbin/lib/Trash/ITrashBackend.php
+++ b/apps/files_trashbin/lib/Trash/ITrashBackend.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
diff --git a/apps/files_trashbin/lib/Trash/ITrashItem.php b/apps/files_trashbin/lib/Trash/ITrashItem.php
index f67276e6f54..299cac49a69 100644
--- a/apps/files_trashbin/lib/Trash/ITrashItem.php
+++ b/apps/files_trashbin/lib/Trash/ITrashItem.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
diff --git a/apps/files_trashbin/lib/Trash/ITrashManager.php b/apps/files_trashbin/lib/Trash/ITrashManager.php
index 4a2eaead11b..743ea01358a 100644
--- a/apps/files_trashbin/lib/Trash/ITrashManager.php
+++ b/apps/files_trashbin/lib/Trash/ITrashManager.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
diff --git a/apps/files_trashbin/lib/Trash/LegacyTrashBackend.php b/apps/files_trashbin/lib/Trash/LegacyTrashBackend.php
index 0fd370a6cf1..204defde35c 100644
--- a/apps/files_trashbin/lib/Trash/LegacyTrashBackend.php
+++ b/apps/files_trashbin/lib/Trash/LegacyTrashBackend.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
diff --git a/apps/files_trashbin/lib/Trash/TrashItem.php b/apps/files_trashbin/lib/Trash/TrashItem.php
index 31dbb10def2..2ae999a2069 100644
--- a/apps/files_trashbin/lib/Trash/TrashItem.php
+++ b/apps/files_trashbin/lib/Trash/TrashItem.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
diff --git a/apps/files_trashbin/lib/Trash/TrashManager.php b/apps/files_trashbin/lib/Trash/TrashManager.php
index bf3eaebdc2a..521a576c00a 100644
--- a/apps/files_trashbin/lib/Trash/TrashManager.php
+++ b/apps/files_trashbin/lib/Trash/TrashManager.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
@@ -60,8 +61,8 @@ class TrashManager implements ITrashManager {
$fullType = get_class($storage);
$foundType = array_reduce(array_keys($this->backends), function ($type, $registeredType) use ($storage) {
if (
- $storage->instanceOfStorage($registeredType) &&
- ($type === '' || is_subclass_of($registeredType, $type))
+ $storage->instanceOfStorage($registeredType)
+ && ($type === '' || is_subclass_of($registeredType, $type))
) {
return $registeredType;
} else {
diff --git a/apps/files_trashbin/lib/Trashbin.php b/apps/files_trashbin/lib/Trashbin.php
index 1951379cfcb..667066c2fca 100644
--- a/apps/files_trashbin/lib/Trashbin.php
+++ b/apps/files_trashbin/lib/Trashbin.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
@@ -467,9 +468,9 @@ class Trashbin implements IEventListener {
Server::get(LoggerInterface::class)->error('trash bin database inconsistent! ($user: ' . $user . ' $filename: ' . $filename . ', $timestamp: ' . $timestamp . ')', ['app' => 'files_trashbin']);
} else {
// if location no longer exists, restore file in the root directory
- if ($location !== '/' &&
- (!$view->is_dir('files/' . $location) ||
- !$view->isCreatable('files/' . $location))
+ if ($location !== '/'
+ && (!$view->is_dir('files/' . $location)
+ || !$view->isCreatable('files/' . $location))
) {
$location = '';
}