Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 14 Nov 2017 21:28:08 +0000 (22:28 +0100)
committerRoland Häder <roland@mxchange.org>
Tue, 14 Nov 2017 21:28:08 +0000 (22:28 +0100)
- ops, overwrote fileInstance, rename to fileInfoInstance

Signed-off-by: Roland Häder <roland@mxchange.org>
framework/main/classes/file_directories/io_stream/class_FileIoStream.php

index 00459c6..ae0f635 100644 (file)
@@ -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());