]> git.mxchange.org Git - friendica.git/commitdiff
Renamed variable, no need for "orig_" prefix
authorRoland Häder <roland@mxchange.org>
Sat, 18 Jun 2022 15:49:57 +0000 (17:49 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 18 Jun 2022 15:50:11 +0000 (17:50 +0200)
src/Model/Item.php

index d99f23fb968fd0ce057792b57daa7c488bbc58ae..10b14a4b466251c8c1e9a5154ea0e0ce8f32997b 100644 (file)
@@ -465,7 +465,7 @@ class Item
         * @param array $item The item fields that are to be inserted
         * @throws \Exception
         */
-       private static function spool($orig_item)
+       private static function spool(array $item)
        {
                // Now we store the data in the spool directory
                // We use "microtime" to keep the arrival order and "mt_rand" to avoid duplicates
@@ -475,7 +475,7 @@ class Item
                if ($spoolpath != '') {
                        $spool = $spoolpath . '/' . $file;
 
-                       file_put_contents($spool, json_encode($orig_item));
+                       file_put_contents($spool, json_encode($item));
                        Logger::warning("Item wasn't stored - Item was spooled into file", ['file' => $file]);
                }
        }