1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 13:46:42 +02:00

feat(macros): code styles and format updates

This commit is contained in:
Awilum
2021-08-14 17:45:12 +03:00
parent 304f336fcd
commit d44773086a

View File

@@ -8,7 +8,6 @@ declare(strict_types=1);
*/
use Atomastic\Arrays\Arrays;
use Atomastic\Macroable\Macroable;
if (! Arrays::hasMacro('onlyFromCollection')) {
/**
@@ -18,7 +17,7 @@ if (! Arrays::hasMacro('onlyFromCollection')) {
*
* @return Arrays Returns instance of The Arrays class.
*/
Arrays::macro('onlyFromCollection', function(array $keys) {
Arrays::macro('onlyFromCollection', function (array $keys) {
$result = [];
foreach ($this->toArray() as $key => $value) {
@@ -37,7 +36,7 @@ if (! Arrays::hasMacro('exceptFromCollection')) {
*
* @return Arrays Returns instance of The Arrays class.
*/
Arrays::macro('exceptFromCollection', function(array $keys) {
Arrays::macro('exceptFromCollection', function (array $keys) {
$result = [];
foreach ($this->toArray() as $key => $value) {
@@ -46,4 +45,4 @@ if (! Arrays::hasMacro('exceptFromCollection')) {
return arrays($result);
});
}
}