src/Config/Config.php
protected function upgrade541()
    {
        $result = true;
        $doSave = false;
        $configStore = $this->getConfigStore();
        $values = $configStore->load();
        array_walk_recursive($values, function(&$value) use (&$doSave) {
            if (is_string($value) && strpos($value, 'originalInvoiceSource::') !== false) {
                str_replace('originalInvoiceSource::', 'order::', $value);
                $doSave = true;
            }
        });
        if ($doSave) {
            $result = $this->save($values);
        }

        return $result;
    }
protected function upgrade541()
    {
        $result = true;
        $doSave = false;
        $configStore = $this->getConfigStore();
        $values = $configStore->load();
        array_walk_recursive($values, function(&$value) use (&$doSave) {
            if (is_string($value) && strpos($value, 'originalInvoiceSource::') !== false) {
                str_replace('originalInvoiceSource::', 'order::', $value);
                $doSave = true;
            }
        });
        if ($doSave) {
            $result = $this->save($values);
        }

        return $result;
    }
protected function upgrade541 ( ) { $ result = true ; $ doSave = false ; $ configStore = $ this -> getConfigStore ( ) ; $ values = $ configStore -> load ( ) ; array_walk_recursive ( $ values , function ( & $ value ) use ( & $ doSave ) { if ( is_string ( $ value ) && strpos ( $ value , 'originalInvoiceSource::' ) !== false ) { str_replace ( 'originalInvoiceSource::' , 'order::' , $ value ) ; $ doSave = true ; } } ) ; if ( $ doSave ) { $ result = $ this -> save ( $ values ) ; } return $ result ; }
5.4.1 upgrade.

- property source originalInvoiceSource renamed to order.

@return bool
5 . 4 . 1 upgrade .