Skip to content

Commit

Permalink
Remove unused use-statements and order them alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jan 15, 2024
1 parent cca1ce8 commit 0fa1dbe
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions .phpunit.cache/test-results
@@ -0,0 +1 @@
{"version":1,"defects":[],"times":{"SimpleSAML\\TestUtils\\TemplateTest::testSyntax":0.077,"SimpleSAML\\Test\\Module\\yubikey\\Controller\\YubikeyTest::testOtpNoState":0.012,"SimpleSAML\\Test\\Module\\yubikey\\Controller\\YubikeyTest::testOtpNoOtp":0.002,"SimpleSAML\\Test\\Module\\yubikey\\Controller\\YubikeyTest::testOtpFailed":0.001,"SimpleSAML\\Test\\Module\\yubikey\\Controller\\YubikeyTest::testOtpSucceeded":0.001,"SimpleSAML\\Test\\Module\\yubikey\\Controller\\YubikeyTest::testOtpUnexpectedException":0}}
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -28,7 +28,8 @@
"config": {
"allow-plugins": {
"composer/package-versions-deprecated": true,
"simplesamlphp/composer-module-installer": true
"simplesamlphp/composer-module-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
10 changes: 6 additions & 4 deletions phpunit.xml
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="tests/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="tests/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache">
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<clover outputFile="build/logs/clover.xml"/>
<html outputDirectory="build/coverage" lowUpperBound="35" highLowerBound="70"/>
Expand All @@ -17,4 +14,9 @@
</testsuite>
</testsuites>
<logging/>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
2 changes: 1 addition & 1 deletion src/Auth/Process/OTP.php
Expand Up @@ -14,8 +14,8 @@
use InvalidArgumentException;
use SimpleSAML\Auth;
use SimpleSAML\Configuration;
use SimpleSAML\Module;
use SimpleSAML\Logger;
use SimpleSAML\Module;
use SimpleSAML\Session;
use SimpleSAML\Utils;

Expand Down
2 changes: 1 addition & 1 deletion tests/src/Controller/YubikeyTest.php
Expand Up @@ -10,8 +10,8 @@
use SimpleSAML\Configuration;
use SimpleSAML\Error;
use SimpleSAML\HTTP\RunnableResponse;
use SimpleSAML\Module\yubikey\Controller;
use SimpleSAML\Module\yubikey\Auth\Process\OTP;
use SimpleSAML\Module\yubikey\Controller;
use SimpleSAML\Session;
use SimpleSAML\XHTML\Template;
use Symfony\Component\HttpFoundation\Request;
Expand Down

0 comments on commit 0fa1dbe

Please sign in to comment.