@@ -40,7 +40,7 @@ private function downloadZip(OutputInterface $output, string $tag): string
4040
4141 $ path = (string ) tempnam (sys_get_temp_dir (), 'froala- ' . $ tag . '.zip ' );
4242 if (!@file_put_contents ($ path , $ zip )) {
43- throw new \RuntimeException (sprintf ('Unable to write Froala ZIP archive to "%s". ' , $ path ));
43+ throw new \RuntimeException (\ sprintf ('Unable to write Froala ZIP archive to "%s". ' , $ path ));
4444 }
4545
4646 $ output ->writeln (' Ok. ' );
@@ -56,7 +56,7 @@ private function extractZip(OutputInterface $output, string $zipPath, string $ou
5656 $ fileSystem ->exists ($ outputPath );
5757
5858 if ($ fileSystem ->exists ($ outputPath ) && !$ clear ) {
59- $ output ->writeln (sprintf ("\nThe directory \"%s \" already exists and the clear option is not enabled, aborting. " , $ outputPath ));
59+ $ output ->writeln (\ sprintf ("\nThe directory \"%s \" already exists and the clear option is not enabled, aborting. " , $ outputPath ));
6060 } else {
6161 if (is_dir ($ outputPath )) {
6262 $ fileSystem ->remove ($ outputPath );
@@ -65,11 +65,11 @@ private function extractZip(OutputInterface $output, string $zipPath, string $ou
6565
6666 $ zip = new \ZipArchive ();
6767 if (true !== $ zip ->open ($ zipPath )) {
68- throw new \RuntimeException (sprintf ('Cannot open zip file "%s". ' , $ zipPath ));
68+ throw new \RuntimeException (\ sprintf ('Cannot open zip file "%s". ' , $ zipPath ));
6969 }
7070 for ($ i = 0 ; $ i < $ zip ->numFiles ; ++$ i ) {
7171 $ filename = $ zip ->getNameIndex ($ i );
72- $ zipFile = sprintf ('zip://%s#%s ' , $ zipPath , $ filename );
72+ $ zipFile = \ sprintf ('zip://%s#%s ' , $ zipPath , $ filename );
7373 // Remove the first directory (eg. "wysiwyg-editor-master") from the file path
7474 $ explodedPath = explode ('/ ' , $ filename , 2 );
7575 $ realFilePath = $ explodedPath [1 ];
0 commit comments