diff options
| author | 2024-11-28 17:11:04 +0100 | |
|---|---|---|
| committer | 2024-11-28 17:11:04 +0100 | |
| commit | 15745d42b779ad14efde2932ab116f45eee39246 (patch) | |
| tree | 2528a36184d8152d4f2d90dc73df680f84bbe1d1 /cli/export-zip-for-user.php | |
| parent | 604b186638276203c8495a3ee86da0cc240ab4d0 (diff) | |
Upgrade code to php 8.1 (#6748)
* revert
Fix code indentation
Fix code
Upgrade code to php 8.1
* fix remarques
* code review
* code review
* code review
* Apply suggestions from code review
* code review
* Fixes
* Many remainging updates of array syntax
* Lost case 'reading-list'
* Uneeded PHPDoc
---------
Co-authored-by: Luc Sanchez <l.sanchez-prestataire@alptis.fr>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'cli/export-zip-for-user.php')
| -rwxr-xr-x | cli/export-zip-for-user.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/export-zip-for-user.php b/cli/export-zip-for-user.php index 304acc392..e030274d2 100755 --- a/cli/export-zip-for-user.php +++ b/cli/export-zip-for-user.php @@ -33,11 +33,11 @@ $number_entries = $cliOptions->maxFeedEntries; $exported_files = []; // First, we generate the OPML file -list($filename, $content) = $export_service->generateOpml(); +[$filename, $content] = $export_service->generateOpml(); $exported_files[$filename] = $content; // Then, labelled and starred entries -list($filename, $content) = $export_service->generateStarredEntries('ST'); +[$filename, $content] = $export_service->generateStarredEntries('ST'); $exported_files[$filename] = $content; // And a list of entries based on the complete list of feeds @@ -46,7 +46,7 @@ $exported_files = array_merge($exported_files, $feeds_exported_files); // Finally, we compress all these files into a single Zip archive and we output // the content -list($filename, $content) = $export_service->zip($exported_files); +[$filename, $content] = $export_service->zip($exported_files); echo $content; invalidateHttpCache($username); |
