-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
316c457
commit 5a0a540
Showing
3 changed files
with
2 additions
and
83 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,9 @@ | ||
<?php | ||
use Exception as E; | ||
use Inkifi\Core\Settings as S; | ||
use Magento\Framework\DataObject; | ||
use Magento\Sales\Model\Order as O; | ||
use Magento\Store\Model\Store; | ||
/** | ||
* 2018-08-16 | ||
* «Modify orders numeration for Mediaclip» | ||
* https://github.com/Inkifi-Connect/Media-Clip-Inkifi/issues/1 | ||
* @used-by \Mangoit\MediaclipHub\Controller\Index\OrderStatusUpdateEndpoint::execute() | ||
* @used-by \Mangoit\MediaclipHub\Controller\Index\PwintyOrderStatusUpdate::execute() | ||
* @param string $v | ||
* @return string | ||
*/ | ||
function ikf_eti($v) {return df_last(explode('-', $v));} | ||
|
||
/** | ||
* 2018-09-11 | ||
* @used-by \Mangoit\MediaclipHub\Controller\Index\RenewMediaclipToken::execute() | ||
* @param DataObject|mixed[]|mixed|E $v | ||
*/ | ||
function ikf_log($v) {df_log_l('Inkifi_Core', $v); df_sentry('Inkifi_Core', $v);} | ||
|
||
/** | ||
* 2018-08-16 | ||
* «Modify orders numeration for Mediaclip» | ||
* https://github.com/Inkifi-Connect/Media-Clip-Inkifi/issues/1 | ||
* @used-by \Mangoit\MediaclipHub\Controller\Index\MediaclipOrderUpdate::execute() | ||
* @used-by \Mangoit\MediaclipHub\Observer\CheckoutSuccess::post() | ||
* @param int|string|O $v | ||
* @return string | ||
*/ | ||
function ikf_ite($v) {return dfcf(function($v) { | ||
list($v, $s) = $v instanceof O ? [$v->getId(), $v->getStore()] : [$v, null]; /** @var Store|null $s */ | ||
return !df_contains(S::s()->id($s), 'staging') ? $v : "staging-$v"; | ||
}, [$v]);} | ||
function ikf_log($v) {df_log_l('Inkifi_Core', $v); df_sentry('Inkifi_Core', $v);} |