Skip to content

Commit

Permalink
2.11.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 3, 2017
1 parent 751db7f commit 0490e55
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 9 deletions.
1 change: 1 addition & 0 deletions API/Response/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ final function __construct($r) {$this->_r = $r;}
* @used-by \Dfe\Dynamics365\API\Validator\JSON::message()
* @used-by \Dfe\Dynamics365\API\Validator\JSON::rs()
* @used-by \Dfe\Dynamics365\API\Validator\JSON::valid()
* @used-by \Dfe\Qiwi\API\Validator::code()
* @return mixed
*/
final protected function r() {return $this->_r;}
Expand Down
14 changes: 12 additions & 2 deletions Core/lib/array.php
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,16 @@ function dfa_key_case(array $a, $c) {return dfa_key_transform($a, function($k) u
mb_convert_case($k, $c, 'UTF-8')
;});}

/**
* 2017-09-03
* @used-by \Dfe\Qiwi\API\Validator::codes()
* @uses df_int()
* @see df_int_simple()
* @param array(int|string => mixed) $a
* @return array(int => mixed)
*/
function dfa_key_int(array $a) {return dfa_key_transform($a, 'df_int');}

/**
* 2017-02-01
* @param array(string => mixed) $a
Expand All @@ -809,11 +819,11 @@ function dfa_key_case(array $a, $c) {return dfa_key_transform($a, function($k) u
function dfa_key_lc(array $a) {return dfa_key_case($a, MB_CASE_LOWER);}

/**
* 2017-02-01
* Функция принимает аргументы в любом порядке.
* 2017-02-01 Функция принимает аргументы в любом порядке.
* @see df_map_kr()
* @used-by df_headers()
* @used-by dfa_key_case()
* @used-by dfa_key_int()
* @used-by \Df\Framework\Request::extra()
* @used-by \Df\Sentry\Client::tags_context()
* @used-by \Df\Sentry\Extra::adjust()
Expand Down
8 changes: 3 additions & 5 deletions Core/lib/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* @param string $prefix [optional]
* @return string
*/
function df_rgb2hex(array $rgb, $prefix = '') {
return $prefix . df_pad0(6, implode(array_map('dechex', df_int($rgb))));
}


function df_rgb2hex(array $rgb, $prefix = '') {return
$prefix . df_pad0(6, implode(array_map('dechex', df_int($rgb))))
;}
1 change: 1 addition & 0 deletions Core/lib/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* 2) Имя класса. «A\B\C»
* 3) Объект класса.
* @used-by \Dfe\PostFinance\W\Event::optionTitle()
* @used-by \Dfe\Qiwi\API\Validator::codes()
* @param string|object $m
* @param string $name
* @param bool $req [optional]
Expand Down
2 changes: 2 additions & 0 deletions Core/lib/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ function df_float_positive($v, $allow0 = false, $throw = true) {
function df_float_positive0($v) {return df_float_positive($v, $allow0 = true);}

/**
* @used-by dfa_key_int()
* @param mixed|mixed[] $v
* @param bool $allowNull [optional]
* @return int|int[]
Expand Down Expand Up @@ -580,6 +581,7 @@ function df_int($v, $allowNull = true) {
* 1) намеренно не проводит валидацию данных ради ускорения
* 2) работает только с массивами
* Ключи массива сохраняются: http://3v4l.org/NHgdK
* @see dfa_key_int()
* @used-by df_fetch_col_int()
* @used-by df_products_update()
* @used-by Df_Catalog_Model_Product_Exporter::applyRule()
Expand Down
3 changes: 2 additions & 1 deletion Directory/lib/locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function df_lang_ru(...$args) {return df_b($args, 'ru' === df_lang());}

/**
* 2017-09-03
* @used-by \Dfe\Qiwi\API\Validator::codes()
* @used-by \Dfe\Robokassa\Api\Options::p()
* @used-by \Dfe\Robokassa\Charge::pCharge()
* @return string
Expand All @@ -48,7 +49,7 @@ function df_lang_ru_en() {return df_lang_ru('ru', 'en');}
* @return string
*/
function df_locale($l) {
/** @var string $cached */
/** @var string $result */
if ($l) {
$result = $l;
}
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.8"
,"version": "2.11.9"
,"description": "Mage2.PRO core package."
,"type": "magento2-module"
,"homepage": "https://mage2.pro"
Expand Down

0 comments on commit 0490e55

Please sign in to comment.