Skip to content

Commit

Permalink
Dependencies update
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Nov 2, 2023
1 parent 3528d07 commit fd51b6f
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 24 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ mu: vendor ## Mutation tests
.PHONY: tests
tests: vendor ## Run all tests
vendor/bin/phpunit --color
yarn test

.PHONY: cc
cc: vendor ## Show test coverage rates (HTML)
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
},
"require-dev": {
"ekino/phpstan-banned-code": "^1.0",
"infection/infection": "^0.26.20",
"infection/infection": "^0.27",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-strict-rules": "^1.0",
"phpunit/phpunit": "^10.1",
"qossmic/deptrac-shim": "^1.0",
"rector/rector": "^0.16",
"symplify/easy-coding-standard": "^11.0"
"rector/rector": "^0.18",
"symplify/easy-coding-standard": "^12.0"
},
"autoload": {
"psr-4": { "OTPHP\\": "src/" }
Expand Down
7 changes: 3 additions & 4 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,12 @@
'import_functions' => true,
]);

$config->services()
->remove(PhpUnitTestClassRequiresCoversFixer::class)
;

$config->parallel();
$config->paths([
__DIR__.'/src',
__DIR__.'/tests',
]);
$config->skip([
PhpUnitTestClassRequiresCoversFixer::class
]);
};
11 changes: 6 additions & 5 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Rector\Core\ValueObject\PhpVersion;
use Rector\Doctrine\Set\DoctrineSetList;
use Rector\Php74\Rector\Property\TypedPropertyRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList;
Expand All @@ -22,20 +23,20 @@
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
DoctrineSetList::DOCTRINE_CODE_QUALITY,
DoctrineSetList::ANNOTATIONS_TO_ATTRIBUTES,
PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD,
PHPUnitLevelSetList::UP_TO_PHPUNIT_100,
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
PHPUnitSetList::PHPUNIT_EXCEPTION,
PHPUnitSetList::REMOVE_MOCKS,
PHPUnitSetList::PHPUNIT_YIELD_DATA_PROVIDER,
PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES,
]);
$config->parallel();
$config->paths([
__DIR__ . '/src',
__DIR__ . '/tests',
]);
$config->skip([
PreferPHPUnitThisCallRector::class,
]);
$config->phpVersion(PhpVersion::PHP_81);
$config->parallel();
$config->importNames();
$config->importShortClasses();

};
4 changes: 2 additions & 2 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

namespace OTPHP;

use function assert;
use function count;
use InvalidArgumentException;
use Psr\Clock\ClockInterface;
use Throwable;
use function assert;
use function count;

/**
* This class is used to load OTP object from a provisioning Uri.
Expand Down
8 changes: 4 additions & 4 deletions src/OTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

namespace OTPHP;

use function assert;
use function chr;
use function count;
use Exception;
use InvalidArgumentException;
use function is_string;
use ParagonIE\ConstantTime\Base32;
use RuntimeException;
use function assert;
use function chr;
use function count;
use function is_string;
use const STR_PAD_LEFT;

abstract class OTP implements OTPInterface
Expand Down
2 changes: 1 addition & 1 deletion src/ParameterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace OTPHP;

use InvalidArgumentException;
use function array_key_exists;
use function assert;
use function in_array;
use InvalidArgumentException;
use function is_int;
use function is_string;

Expand Down
4 changes: 2 additions & 2 deletions src/TOTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace OTPHP;

use function assert;
use InvalidArgumentException;
use function is_int;
use Psr\Clock\ClockInterface;
use function assert;
use function is_int;

/**
* @see \OTPHP\Test\TOTPTest
Expand Down
2 changes: 1 addition & 1 deletion src/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace OTPHP;

use function array_key_exists;
use InvalidArgumentException;
use function array_key_exists;
use function is_string;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/TOTPTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace OTPHP\Test;

use function assert;
use DateTimeImmutable;
use InvalidArgumentException;
use OTPHP\InternalClock;
Expand All @@ -16,6 +15,7 @@
use PHPUnit\Framework\TestCase;
use Psr\Clock\ClockInterface;
use RuntimeException;
use function assert;

/**
* @internal
Expand Down

0 comments on commit fd51b6f

Please sign in to comment.