Skip to content

Commit

Permalink
Merge pull request #75 from maxonfjvipon/#11-functions
Browse files Browse the repository at this point in the history
#74 - try to fix functions
  • Loading branch information
maxonfjvipon authored May 9, 2023
2 parents c1b94bb + 36a6840 commit 7ee13ff
Show file tree
Hide file tree
Showing 25 changed files with 615 additions and 22 deletions.
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@
"Maxonfjvipon\\ElegantElephant\\Support\\": "support"
},
"files": [
"src/Any/functions.php",
"src/Arr/functions.php",
"src/Logic/functions.php",
"src/Txt/functions.php"
"src/functions.php"
]
},
"autoload-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Any/AnyFork.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
use Maxonfjvipon\ElegantElephant\Logic;
use Maxonfjvipon\ElegantElephant\Logic\EnsureLogic;

use function Maxonfjvipon\ElegantElephant\Any\any_fork;
use function Maxonfjvipon\ElegantElephant\any_fork;

/**
* Conditional Any.
Expand Down
2 changes: 1 addition & 1 deletion src/Any/AtKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
use Maxonfjvipon\ElegantElephant\Num;
use Maxonfjvipon\ElegantElephant\Txt;

use function Maxonfjvipon\ElegantElephant\Any\at_key;
use function Maxonfjvipon\ElegantElephant\at_key;

/**
* At key.
Expand Down
2 changes: 1 addition & 1 deletion src/Any/AtValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
use Maxonfjvipon\ElegantElephant\Num;
use Maxonfjvipon\ElegantElephant\Txt;

use function Maxonfjvipon\ElegantElephant\Any\at_value;
use function Maxonfjvipon\ElegantElephant\at_value;

/**
* Key from array by element.
Expand Down
2 changes: 1 addition & 1 deletion src/Any/EnsureAny.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

use Exception;

use function Maxonfjvipon\ElegantElephant\Any\ensured_any;
use function Maxonfjvipon\ElegantElephant\ensured_any;

/**
* Ensured Any.
Expand Down
2 changes: 1 addition & 1 deletion src/Any/FirstOf.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
use Maxonfjvipon\ElegantElephant\Arr;
use Maxonfjvipon\ElegantElephant\Txt;

use function Maxonfjvipon\ElegantElephant\Any\first_of;
use function Maxonfjvipon\ElegantElephant\first_of;

/**
* First item.
Expand Down
2 changes: 1 addition & 1 deletion src/Any/LastOf.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
use Maxonfjvipon\ElegantElephant\Arr;
use Maxonfjvipon\ElegantElephant\Txt;

use function Maxonfjvipon\ElegantElephant\Any\last_of;
use function Maxonfjvipon\ElegantElephant\last_of;

/**
* Last of.
Expand Down
2 changes: 2 additions & 0 deletions src/Arr/ArrCombined.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
use Maxonfjvipon\ElegantElephant\Num;
use Maxonfjvipon\ElegantElephant\Txt;

use function Maxonfjvipon\ElegantElephant\array_combined;

/**
* Array combined of keys and values.
*/
Expand Down
3 changes: 1 addition & 2 deletions src/Arr/ArrExploded.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
namespace Maxonfjvipon\ElegantElephant\Arr;

use Maxonfjvipon\ElegantElephant\Txt;
use Maxonfjvipon\ElegantElephant\Txt\EnsureTxt;

use function Maxonfjvipon\ElegantElephant\Arr\array_exploded;
use function Maxonfjvipon\ElegantElephant\array_exploded;

/**
* Array exploded.
Expand Down
2 changes: 2 additions & 0 deletions src/Arr/ArrFiltered.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

use Maxonfjvipon\ElegantElephant\Arr;

use function Maxonfjvipon\ElegantElephant\array_filtered;

/**
* Filtered array.
*/
Expand Down
3 changes: 2 additions & 1 deletion src/Arr/ArrFlatten.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@

namespace Maxonfjvipon\ElegantElephant\Arr;

use Exception;
use Maxonfjvipon\ElegantElephant\Arr;

use function Maxonfjvipon\ElegantElephant\array_flatten;

/**
* Flatten array.
*/
Expand Down
3 changes: 1 addition & 2 deletions src/Arr/ArrMapped.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@

namespace Maxonfjvipon\ElegantElephant\Arr;

use Maxonfjvipon\ElegantElephant\Any\EnsureAny;
use Maxonfjvipon\ElegantElephant\Arr;

use function Maxonfjvipon\ElegantElephant\Arr\array_mapped;
use function Maxonfjvipon\ElegantElephant\array_mapped;

/**
* Mapped array.
Expand Down
2 changes: 2 additions & 0 deletions src/Arr/ArrMerged.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

use Maxonfjvipon\ElegantElephant\Arr;

use function Maxonfjvipon\ElegantElephant\array_merged;

/**
* Merged array.
*/
Expand Down
2 changes: 2 additions & 0 deletions src/Arr/ArrSingle.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
use Maxonfjvipon\ElegantElephant\Num;
use Maxonfjvipon\ElegantElephant\Txt;

use function Maxonfjvipon\ElegantElephant\array_single;

/**
* Single array element
*/
Expand Down
2 changes: 2 additions & 0 deletions src/Arr/ArrSorted.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

use Maxonfjvipon\ElegantElephant\Arr;

use function Maxonfjvipon\ElegantElephant\array_sorted;

/**
* Array sorted.
*/
Expand Down
2 changes: 2 additions & 0 deletions src/Arr/ArrWith.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

use Maxonfjvipon\ElegantElephant\Arr;

use function Maxonfjvipon\ElegantElephant\array_with;

/**
* Arr with an element.
*/
Expand Down
2 changes: 2 additions & 0 deletions src/Arr/ArrWithout.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
use Maxonfjvipon\ElegantElephant\Num;
use Maxonfjvipon\ElegantElephant\Txt;

use function Maxonfjvipon\ElegantElephant\array_without;

/**
* Array without elements by keys.
*/
Expand Down
2 changes: 2 additions & 0 deletions src/Arr/EnsureArr.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
use Exception;
use Maxonfjvipon\ElegantElephant\Arr;

use function Maxonfjvipon\ElegantElephant\ensured_array;

/**
* Ensure {@see Arr}
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Logic/EnsureLogic.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
use Exception;
use Maxonfjvipon\ElegantElephant\Logic;

use function Maxonfjvipon\ElegantElephant\Logic\ensured_bool;
use function Maxonfjvipon\ElegantElephant\ensured_bool;

/**
* Ensure logic.
Expand Down
Loading

0 comments on commit 7ee13ff

Please sign in to comment.