From d44773086a6c7383925f26dc29d44ff95875a3ed Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 14 Aug 2021 17:45:12 +0300 Subject: [PATCH] feat(macros): code styles and format updates --- src/flextype/macros/macros.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/flextype/macros/macros.php b/src/flextype/macros/macros.php index 089e42eb..498f2297 100644 --- a/src/flextype/macros/macros.php +++ b/src/flextype/macros/macros.php @@ -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); }); -} \ No newline at end of file +}