Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jun 2, 2024
1 parent a5ba5dd commit 5a6b1a7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
16 changes: 1 addition & 15 deletions Core/lib/array/other.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,4 @@
* @used-by \TFC\Core\B\Home\Slider::p() (tradefurniturecompany.co.uk, https://github.com/tradefurniturecompany/core/issues/43)
* @param mixed|mixed[] $v
*/
function df_array($v):array {return is_array($v) ? $v : [$v];}

/**
* 2016-11-25
* @used-by \Df\Config\Source\SizeUnit::map()
* @used-by \Dfe\AmazonLogin\Source\Button\Native\Size::map()
* @used-by \Dfe\CheckoutCom\Source\Prefill::map()
* @used-by \Dfe\FacebookLogin\Source\Button\Size::map()
* @used-by \Dfe\ZohoCRM\Source\Domain::map()
* @used-by \KingPalm\B2B\Source\Type::map()
* @used-by df_a_to_options()
* @param string|int|int[]|string[] ...$a
* @return array(int|string => int|string)
*/
function dfa_combine_self(...$a):array {$a = df_args($a); return array_combine($a, $a);}
function df_array($v):array {return is_array($v) ? $v : [$v];}
14 changes: 14 additions & 0 deletions Core/lib/array/other/combine_self.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
/**
* 2016-11-25
* @used-by \Df\Config\Source\SizeUnit::map()
* @used-by \Dfe\AmazonLogin\Source\Button\Native\Size::map()
* @used-by \Dfe\CheckoutCom\Source\Prefill::map()
* @used-by \Dfe\FacebookLogin\Source\Button\Size::map()
* @used-by \Dfe\ZohoCRM\Source\Domain::map()
* @used-by \KingPalm\B2B\Source\Type::map()
* @used-by df_a_to_options()
* @param string|int|int[]|string[] ...$a
* @return array(int|string => int|string)
*/
function dfa_combine_self(...$a):array {$a = df_args($a); return array_combine($a, $a);}

0 comments on commit 5a6b1a7

Please sign in to comment.