Skip to content

Commit

Permalink
0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jan 11, 2019
1 parent 316c457 commit 5a0a540
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 83 deletions.
53 changes: 0 additions & 53 deletions Settings.php

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "inkifi/core"
,"version": "0.1.3"
,"version": "0.1.4"
,"description": "A custom module for inkifi.com"
,"type": "magento2-module"
,"homepage": "https://github.com/inkifi/core"
Expand Down
30 changes: 1 addition & 29 deletions lib/main.php
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);}

0 comments on commit 5a0a540

Please sign in to comment.