Renamed variable, no need for "orig_" prefix

This commit is contained in:
Roland Häder 2022-06-18 17:49:57 +02:00
parent a1a81cdc6b
commit 4e437190c5
Signed by: roland
GPG key ID: C82EDE5DDFA0BA77

View file

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