Skip to content

Commit

Permalink
style: fix cs vol.2
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Feb 9, 2024
1 parent 70732bb commit da1a46c
Show file tree
Hide file tree
Showing 50 changed files with 54 additions and 2 deletions.
2 changes: 2 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<arg name="colors" />
<arg value="n" />

<config name="php_version" value="80100"/>

<rule ref="PSR12" />

<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
Expand Down
1 change: 1 addition & 0 deletions src/Functional/ButLast.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Functional\Exceptions\InvalidArgumentException;
use Traversable;

use function is_array;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/Curry.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use ReflectionMethod;
use ReflectionFunction;
use Closure;

use function count;
use function is_array;
use function is_object;
Expand Down
1 change: 1 addition & 0 deletions src/Functional/CurryN.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

namespace Functional;

use function call_user_func_array;
use function count;

Expand Down
1 change: 1 addition & 0 deletions src/Functional/Exceptions/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

namespace Functional\Exceptions;

use function count;
use function get_class;
use function gettype;
Expand Down
1 change: 1 addition & 0 deletions src/Functional/Exceptions/MatchException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

namespace Functional\Exceptions;

use function count;
use function gettype;
use function is_array;
Expand Down
1 change: 1 addition & 0 deletions src/Functional/FirstIndexOf.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Functional\Exceptions\InvalidArgumentException;
use Traversable;

use function is_callable;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/FlatMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Functional\Exceptions\InvalidArgumentException;
use Traversable;

use function is_array;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/Flatten.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Functional\Exceptions\InvalidArgumentException;
use Traversable;

use function is_array;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/Flip.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

namespace Functional;

use function func_get_args;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Functional/Functional.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

final class Functional
{

/**
* @see \Function\ary
*/
Expand Down
1 change: 1 addition & 0 deletions src/Functional/GreaterThan.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

namespace Functional;

use Closure;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/GreaterThanOrEqual.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

namespace Functional;

use Closure;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Functional\Exceptions\InvalidArgumentException;
use Traversable;

use function is_float;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/IndexesOf.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Functional\Exceptions\InvalidArgumentException;
use Traversable;

use function is_callable;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/Invoke.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Functional\Exceptions\InvalidArgumentException;
use Traversable;

use function is_callable;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/InvokeFirst.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Functional\Exceptions\InvalidArgumentException;
use Traversable;

use function is_callable;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/InvokeIf.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

namespace Functional;

use function is_callable;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/InvokeLast.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Traversable;
use Functional\Exceptions\InvalidArgumentException;

use function is_callable;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/LastIndexOf.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Functional\Exceptions\InvalidArgumentException;
use Traversable;

use function is_callable;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/LessThan.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

namespace Functional;

use Closure;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/LessThanOrEqual.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

namespace Functional;

use Closure;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/LexicographicCompare.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

namespace Functional;

use Closure;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/Memoize.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace Functional;

use const E_USER_DEPRECATED;

use function array_key_exists;
use function is_callable;

Expand Down
1 change: 1 addition & 0 deletions src/Functional/PartialAny.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace Functional;

use Functional\Exceptions\InvalidArgumentException;

use function define;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/PartialMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace Functional;

use Functional\Exceptions\InvalidArgumentException;

use function is_callable;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/Partition.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Functional\Exceptions\InvalidArgumentException;
use Traversable;

use function count;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/Pick.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use ArrayAccess;
use Functional\Exceptions\InvalidArgumentException;

use function array_key_exists;
use function is_array;

Expand Down
1 change: 1 addition & 0 deletions src/Functional/Pluck.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use ArrayAccess;
use Functional\Exceptions\InvalidArgumentException;
use Traversable;

use function is_array;
use function is_object;

Expand Down
1 change: 1 addition & 0 deletions src/Functional/TakeLeft.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Functional\Exceptions\InvalidArgumentException;
use Traversable;

use function array_slice;
use function is_array;

Expand Down
1 change: 1 addition & 0 deletions src/Functional/TakeRight.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Functional\Exceptions\InvalidArgumentException;
use Traversable;

use function array_slice;
use function is_array;

Expand Down
1 change: 1 addition & 0 deletions src/Functional/Unique.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Functional\Exceptions\InvalidArgumentException;
use Traversable;

use function in_array;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/ValueToKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Functional\Exceptions\InvalidArgumentException;
use Traversable;
use WeakReference;

use function get_class;
use function gettype;

Expand Down
1 change: 1 addition & 0 deletions src/Functional/With.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace Functional;

use Functional\Exceptions\InvalidArgumentException;

use function is_callable;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/Zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Functional\Exceptions\InvalidArgumentException;
use Traversable;

use function is_callable;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Functional/ZipAll.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use Functional\Exceptions\InvalidArgumentException;
use Traversable;

use function is_callable;

/**
Expand Down
1 change: 1 addition & 0 deletions tests/Functional/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use PHPUnit\Framework\TestCase;
use Traversable;
use TypeError;

use function count;
use function func_get_args;
use function func_num_args;
Expand Down
2 changes: 2 additions & 0 deletions tests/Functional/GroupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
use Functional\Exceptions\InvalidArgumentException;

use function Functional\group;

use Exception;
use stdClass;

use function is_int;

class GroupTest extends AbstractTestCase
Expand Down
2 changes: 2 additions & 0 deletions tests/Functional/InvokeFirstTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
use Traversable;

use function Functional\invoke_first;

use stdClass;

use function func_get_args;

class InvokeFirstTest extends AbstractTestCase
Expand Down
2 changes: 2 additions & 0 deletions tests/Functional/InvokeIfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
namespace Functional\Tests;

use function Functional\invoke_if;

use stdClass;

use function func_get_args;

class InvokeIfTest extends AbstractTestCase
Expand Down
2 changes: 2 additions & 0 deletions tests/Functional/InvokeLastTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
use ArrayIterator;

use function Functional\invoke_last;

use stdClass;

use function func_get_args;

class InvokeLastTest extends AbstractTestCase
Expand Down
2 changes: 2 additions & 0 deletions tests/Functional/InvokeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
use Traversable;

use function Functional\invoke;

use stdClass;

use function func_get_args;

class InvokeTest extends AbstractTestCase
Expand Down
1 change: 1 addition & 0 deletions tests/Functional/OmitKeysTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use ArrayIterator;

use function Functional\omit_keys;

use stdclass;

class OmitKeysTest extends AbstractTestCase
Expand Down
1 change: 1 addition & 0 deletions tests/Functional/PartialAnyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use function Functional\;

use const Functional\;

use function defined;

class PartialAnyTest extends AbstractPartialTestCase
Expand Down
1 change: 0 additions & 1 deletion tests/Functional/PartialMethodTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

class PartialMethodTest extends AbstractPartialTestCase
{

public function testWithNoArgs(): void
{
$method = partial_method('execute');
Expand Down
1 change: 1 addition & 0 deletions tests/Functional/PluckTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Traversable;

use function Functional\pluck;

use DomainException;
use Exception;
use stdClass;
Expand Down
1 change: 1 addition & 0 deletions tests/Functional/SelectKeysTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use ArrayIterator;

use function Functional\select_keys;

use stdclass;

class SelectKeysTest extends AbstractTestCase
Expand Down
1 change: 1 addition & 0 deletions tests/Functional/TapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace Functional\Tests;

use function Functional\tap;

use stdClass;

class TapTest extends AbstractTestCase
Expand Down
Loading

0 comments on commit da1a46c

Please sign in to comment.