Skip to content

Commit

Permalink
2.11.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 1, 2017
1 parent cd6773f commit b471828
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions Core/lib/text.php
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,7 @@ function df_trim($s, $charlist = null, $throw = false) {return df_try(function()
* @used-by df_trim_ds_left()
* @used-by df_url_bp()
* @used-by \Df\Config\Settings::phpNameToKey()
* @used-by \Dfe\PostFinance\W\Event::cardNumber()
* @param string $s
* @param string $charlist [optional]
* @return string
Expand Down
3 changes: 3 additions & 0 deletions Payment/W/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ final function pid() {return $this->rr($this->k_pid());}
* @used-by \Df\Payment\W\Handler::r()
* @used-by \Df\PaypalClone\W\Event::validate()
* @used-by \Dfe\IPay88\W\Event::option()
* @used-by \Dfe\PostFinance\W\Event::cardNumber()
* @used-by \Dfe\PostFinance\W\Event::option()
* @used-by \Dfe\PostFinance\W\Event::optionTitle()
* @used-by \Dfe\Robokassa\W\Event::optionTitle()
* @param string|string[]|null $k [optional]
* @param string|null $d [optional]
Expand Down
10 changes: 10 additions & 0 deletions Payment/lib/card-formatter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
/**
* 2017-09-01
* @used-by \Df\StripeClone\CardFormatter::label()
* @used-by \Dfe\PostFinance\W\Event::cardNumber()
* @param string $last4
* @param string $brand
* @return string
*/
function dfp_card_format_last4($last4, $brand) {return "···· $last4 ($brand)";}
2 changes: 1 addition & 1 deletion StripeClone/CardFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ final function ii() {return [
* @see \Dfe\Moip\CardFormatter::label()
* @return string
*/
function label() {return "···· {$this->_c->last4()} ({$this->_c->brand()})";}
function label() {return dfp_card_format_last4($this->_c->last4(), $this->_c->brand());}

/**
* 2017-02-11
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/core"
,"version": "2.11.4"
,"version": "2.11.5"
,"description": "Mage2.PRO core package."
,"type": "magento2-module"
,"homepage": "https://mage2.pro"
Expand Down

0 comments on commit b471828

Please sign in to comment.