From df7fa8fc4a1ff4b00d2469a83ce6a1faea9c3171 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 14 Nov 2017 22:28:08 +0100 Subject: [PATCH] Continued: - ops, overwrote fileInstance, rename to fileInfoInstance MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../file_directories/io_stream/class_FileIoStream.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()); -- 2.39.5