From: Roland Häder Date: Tue, 14 Nov 2017 21:28:08 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=df7fa8fc4a1ff4b00d2469a83ce6a1faea9c3171 Continued: - ops, overwrote fileInstance, rename to fileInfoInstance Signed-off-by: Roland Häder --- diff --git a/framework/main/classes/file_directories/io_stream/class_FileIoStream.php b/framework/main/classes/file_directories/io_stream/class_FileIoStream.php index 00459c62..ae0f6352 100644 --- a/framework/main/classes/file_directories/io_stream/class_FileIoStream.php +++ b/framework/main/classes/file_directories/io_stream/class_FileIoStream.php @@ -82,13 +82,13 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil /** * Saves data to a given local file and create missing directory structures * - * @param $fileInstance An instance of a SplFileInfo class + * @param $fileInfoInstance An instance of a SplFileInfo class * @param $dataArray The data we shall store to the file * @return void * @see FileOutputStreamer * @todo This method needs heavy rewrite */ - public final function saveFile (SplFileInfo $fileInstance, array $dataArray) { + public final function saveFile (SplFileInfo $fileInfoInstance, array $dataArray) { // Try it five times $dirName = ''; $fileInstance = NULL; @@ -96,7 +96,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil for ($idx = 0; $idx < 5; $idx++) { // Get a file output pointer try { - $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_output_class', array($fileInstance, 'wb')); + $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_output_class', array($fileInfoInstance, 'wb')); } catch (FileNotFoundException $e) { // Bail out ApplicationEntryPoint::exitApplication('The application has made a fatal error. Exception: ' . $e->__toString() . ' with message: ' . $e->getMessage());