@@ -1462,36 +1462,28 @@ function ( $a, $b ) {
14621462 $ this ->logger ->add ( 'before perform conversion ' );
14631463 foreach ( $ dirlist as $ fileinfo ) {
14641464 // If item is a directory, then recurse, merge, and continue.
1465- $ this ->logger ->add ( 'before if item is a directory ' );
1466- if ( 'd ' === $ fileinfo ['type ' ] ) {
1465+ if ( 'd ' === $ fileinfo ['type ' ] ) {
14671466 $ filelist_add = $ this ->get_filelist ( $ dirpath . '/ ' . $ fileinfo ['name ' ] );
14681467
14691468 $ filelist = array_merge ( $ filelist , $ filelist_add );
14701469
14711470 continue ;
14721471 }
1473- $ this ->logger ->add ( 'after if item is a directory ' );
1474-
1472+
14751473 // Get the file path.
1476- $ this ->logger ->add ( 'before get the file path ' );
14771474 $ filepath = $ dirpath . '/ ' . $ fileinfo ['name ' ];
1478- $ this ->logger ->add ( 'after get the file path ' );
14791475
14801476 // The relative path inside the ZIP file.
1481- $ this ->logger ->add ( 'before relative path in ZIP ' );
14821477 $ relative_path = substr ( $ filepath , strlen ( $ this ->filelist_basedir ) + 1 );
1483- $ this ->logger ->add ( 'after relative path in ZIP ' );
1484-
1478+
14851479 // For files, add to the filelist array.
1486- $ this ->logger ->add ( 'before add files to filelist array ' );
14871480 $ filelist [] = [
14881481 $ filepath ,
14891482 $ relative_path ,
14901483 $ fileinfo ['size ' ],
14911484 ];
1492- $ this ->logger ->add ( 'before add files to filelist array ' );
14931485 }
1494- $ this ->logger ->add ( 'before perform conversion ' );
1486+ $ this ->logger ->add ( 'after perform conversion ' );
14951487
14961488 // Return the array.
14971489 $ this ->logger ->add ( 'before array return ' );
0 commit comments